/third_party/rust/crates/proc-macro2/tests/ |
H A D | test.rs | 15 Ident::new("String", Span::call_site()).to_string(), in idents() 18 assert_eq!(Ident::new("fn", Span::call_site()).to_string(), "fn"); in idents() 19 assert_eq!(Ident::new("_", Span::call_site()).to_string(), "_"); in idents() 25 Ident::new_raw("String", Span::call_site()).to_string(), in raw_idents() 28 assert_eq!(Ident::new_raw("fn", Span::call_site()).to_string(), "r#fn"); in raw_idents() 34 Ident::new_raw("_", Span::call_site()); in ident_raw_underscore() 40 Ident::new_raw("super", Span::call_site()); in ident_raw_reserved() 46 Ident::new("", Span::call_site()); in ident_empty() 52 Ident::new("255", Span::call_site()); in ident_number() 58 Ident::new("a#", Span::call_site()); in ident_invalid() [all...] |
/third_party/rust/crates/cxx/gen/cmd/src/gen/ |
H A D | nested.rs | 137 visibility: Token), in make_api() 138 type_token: Token), in make_api() 141 cxx: ForeignName::parse(ident, Span::call_site()).unwrap(), in make_api() 142 rust: Ident::new(ident, Span::call_site()), in make_api() 151 semi_token: Token), in make_api()
|
/third_party/rust/crates/cxx/gen/src/ |
H A D | nested.rs | 137 visibility: Token), in make_api() 138 type_token: Token), in make_api() 141 cxx: ForeignName::parse(ident, Span::call_site()).unwrap(), in make_api() 142 rust: Ident::new(ident, Span::call_site()), in make_api() 151 semi_token: Token), in make_api()
|
/third_party/rust/crates/cxx/gen/lib/src/gen/ |
H A D | nested.rs | 137 visibility: Token), in make_api() 138 type_token: Token), in make_api() 141 cxx: ForeignName::parse(ident, Span::call_site()).unwrap(), in make_api() 142 rust: Ident::new(ident, Span::call_site()), in make_api() 151 semi_token: Token), in make_api()
|
/third_party/rust/crates/cxx/gen/build/src/gen/ |
H A D | nested.rs | 137 visibility: Token), in make_api() 138 type_token: Token), in make_api() 141 cxx: ForeignName::parse(ident, Span::call_site()).unwrap(), in make_api() 142 rust: Ident::new(ident, Span::call_site()), in make_api() 151 semi_token: Token), in make_api()
|
/third_party/rust/crates/syn/codegen/src/ |
H A D | snapshot.rs | 14 let ident = Ident::new(ty, Span::call_site()); in rust_type() 18 let ident = Ident::new(ty, Span::call_site()); in rust_type() 22 let ident = Ident::new(ty, Span::call_site()); in rust_type() 26 let ident = Ident::new(ty, Span::call_site()); in rust_type() 31 let punct = Ident::new(&ty.punct, Span::call_site()); in rust_type() 147 let ident = Ident::new(&node.ident, Span::call_site()); in expand_impl_body() 154 let variant = Ident::new(v, Span::call_site()); in expand_impl_body() 230 let ident = Ident::new(f, Span::call_site()); in expand_impl_body() 318 let ident = Ident::new(&node.ident, Span::call_site()); in expand_impl() 335 let ident = Ident::new(name, Span::call_site()); in expand_token_impl() [all...] |
H A D | clone.rs | 11 let ident = Ident::new(type_name, Span::call_site()); in expand_impl_body() 17 let variant = Ident::new(variant_name, Span::call_site()); in expand_impl_body() 61 let ident = Ident::new(f, Span::call_site()); in expand_impl_body() 78 let ident = Ident::new(&node.ident, Span::call_site()); in expand_impl()
|
H A D | hash.rs | 21 let ident = Ident::new(type_name, Span::call_site()); in expand_impl_body() 31 let variant = Ident::new(variant_name, Span::call_site()); in expand_impl_body() 100 let ident = Ident::new(f, Span::call_site()); in expand_impl_body() 125 let ident = Ident::new(&node.ident, Span::call_site()); in expand_impl()
|
H A D | eq.rs | 21 let ident = Ident::new(type_name, Span::call_site()); in expand_impl_body() 27 let variant = Ident::new(variant_name, Span::call_site()); in expand_impl_body() 93 let ident = Ident::new(f, Span::call_site()); in expand_impl_body() 116 let ident = Ident::new(&node.ident, Span::call_site()); in expand_impl()
|
H A D | visit.rs | 99 let ty = Ident::new(&s.ident, Span::call_site()); in node() 114 let variant_ident = Ident::new(variant, Span::call_site()); in node() 157 let id = Ident::new(field, Span::call_site()); in node()
|
/third_party/rust/crates/quote/tests/ |
H A D | test.rs | 21 tokens.append(Ident::new("X", Span::call_site())); in to_tokens() 48 let span = Span::call_site(); in test_quote_spanned_impl() 263 let foo = Ident::new("Foo", Span::call_site()); in test_ident() 264 let bar = Ident::new(&format!("Bar{}", 7), Span::call_site()); in test_ident() 391 let owned: Cow<Ident> = Cow::Owned(Ident::new("owned", Span::call_site())); in test_cow() 393 let ident = Ident::new("borrowed", Span::call_site()); in test_cow() 428 let id4 = format_ident!("Aa", span = Span::call_site()); in test_format_ident() 532 Span::call_site() in test_type_inference_for_span() 536 let span = Span::call_site(); in test_type_inference_for_span() 546 let proc_macro_span = proc_macro::Span::call_site(); in test_type_inference_for_span() [all...] |
/third_party/rust/crates/syn/tests/ |
H A D | test_item.rs | 15 TokenTree::Ident(Ident::new("fn", Span::call_site())), in test_macro_variable_attr() 16 TokenTree::Ident(Ident::new("f", Span::call_site())), in test_macro_variable_attr() 125 TokenTree::Ident(Ident::new("impl", Span::call_site())), in test_macro_variable_impl() 127 TokenTree::Ident(Ident::new("for", Span::call_site())), in test_macro_variable_impl()
|
H A D | test_ty.rs | 27 TokenTree::Ident(Ident::new("T", Span::call_site())), in test_macro_variable_type() 62 TokenTree::Ident(Ident::new("T", Span::call_site())), in test_macro_variable_type() 97 TokenTree::Ident(Ident::new("Option", Span::call_site())), in test_group_angle_brackets() 151 TokenTree::Ident(Ident::new("Item", Span::call_site())), in test_group_colons() 187 TokenTree::Ident(Ident::new("Element", Span::call_site())), in test_group_colons()
|
H A D | test_visibility.rs | 106 TokenTree::Ident(Ident::new("struct", Span::call_site())), in test_empty_group_vis() 107 TokenTree::Ident(Ident::new("S", Span::call_site())), in test_empty_group_vis() 116 Span::call_site(), in test_empty_group_vis()
|
H A D | test_stmt.rs | 64 TokenTree::Ident(Ident::new("async", Span::call_site())), in test_none_group() 65 TokenTree::Ident(Ident::new("fn", Span::call_site())), in test_none_group() 66 TokenTree::Ident(Ident::new("f", Span::call_site())), in test_none_group()
|
/third_party/rust/crates/cxx/gen/build/src/syntax/ |
H A D | discriminant.rs | 51 return Err(Error::new(Span::call_site(), msg)); in insert() 58 return Err(Error::new(Span::call_site(), msg)); in insert() 79 return Err(Error::new(Span::call_site(), msg)); in insert_next() 104 Err(Error::new(Span::call_site(), msg)) in inferred_repr() 143 return Err(Error::new(Span::call_site(), msg)); in insert() 219 Token).to_tokens(tokens); in to_tokens() 238 Span::call_site(), in from_str() 274 Err(Error::new(Span::call_site(), msg)) in parse_int_suffix()
|
/third_party/rust/crates/cxx/gen/lib/src/syntax/ |
H A D | discriminant.rs | 51 return Err(Error::new(Span::call_site(), msg)); in insert() 58 return Err(Error::new(Span::call_site(), msg)); in insert() 79 return Err(Error::new(Span::call_site(), msg)); in insert_next() 104 Err(Error::new(Span::call_site(), msg)) in inferred_repr() 143 return Err(Error::new(Span::call_site(), msg)); in insert() 219 Token).to_tokens(tokens); in to_tokens() 238 Span::call_site(), in from_str() 274 Err(Error::new(Span::call_site(), msg)) in parse_int_suffix()
|
/third_party/rust/crates/cxx/macro/src/syntax/ |
H A D | discriminant.rs | 51 return Err(Error::new(Span::call_site(), msg)); in insert() 58 return Err(Error::new(Span::call_site(), msg)); in insert() 79 return Err(Error::new(Span::call_site(), msg)); in insert_next() 104 Err(Error::new(Span::call_site(), msg)) in inferred_repr() 143 return Err(Error::new(Span::call_site(), msg)); in insert() 219 Token).to_tokens(tokens); in to_tokens() 238 Span::call_site(), in from_str() 274 Err(Error::new(Span::call_site(), msg)) in parse_int_suffix()
|
/third_party/rust/crates/cxx/syntax/ |
H A D | discriminant.rs | 51 return Err(Error::new(Span::call_site(), msg)); in insert() 58 return Err(Error::new(Span::call_site(), msg)); in insert() 79 return Err(Error::new(Span::call_site(), msg)); in insert_next() 104 Err(Error::new(Span::call_site(), msg)) in inferred_repr() 143 return Err(Error::new(Span::call_site(), msg)); in insert() 219 Token).to_tokens(tokens); in to_tokens() 238 Span::call_site(), in from_str() 274 Err(Error::new(Span::call_site(), msg)) in parse_int_suffix()
|
/third_party/rust/crates/cxx/gen/cmd/src/syntax/ |
H A D | discriminant.rs | 51 return Err(Error::new(Span::call_site(), msg)); in insert() 58 return Err(Error::new(Span::call_site(), msg)); in insert() 79 return Err(Error::new(Span::call_site(), msg)); in insert_next() 104 Err(Error::new(Span::call_site(), msg)) in inferred_repr() 143 return Err(Error::new(Span::call_site(), msg)); in insert() 219 Token).to_tokens(tokens); in to_tokens() 238 Span::call_site(), in from_str() 274 Err(Error::new(Span::call_site(), msg)) in parse_int_suffix()
|
/third_party/rust/crates/proc-macro-error/src/ |
H A D | lib.rs | 144 //! Shortcut for `abort!(Span::call_site(), ...)`. Expands to [`!`] (never type). 154 //! Shortcut for `emit_error!(Span::call_site(), ...)`. Expands to [`()`] (unit type). 166 //! Shortcut for `emit_warning!(Span::call_site(), ...)`. Expands to [`()`] (unit type). 199 //! `macro!(Span::call_site(), args...)`. 322 pub fn call_site() -> Self { in call_site() functions 323 SpanRange::single_span(Span::call_site()) in call_site() 331 /// If the stream is empty, the result is `SpanRange::call_site()`. If the stream 336 let first = spans.next().unwrap_or_else(|| Span::call_site()); in from_tokens() 531 .unwrap_or_else(Span::call_site); in FIRST_ARG_MUST_EITHER_BE_Span_OR_IMPLEMENT_ToTokens_OR_BE_SpanRange()
|
/third_party/rust/crates/proc-macro2/src/ |
H A D | fallback.rs | 48 pub(crate) fn call_site() -> Self { 50 span: Span::call_site(), 326 // Start with a single dummy file which all call_site() and def_site() 500 pub fn call_site() -> Self { in call_site() functions 505 pub fn call_site() -> Self { in call_site() functions 510 Span::call_site() in mixed_site() 515 Span::call_site() in def_site() 684 span: Span::call_site(), in new() 922 span: Span::call_site(), 1108 return Err(LexError::call_site()); in from_str() [all...] |
/third_party/rust/crates/clap/clap_derive/src/derives/ |
H A D | into_app.rs | 29 let app_var = Ident::new("__clap_app", Span::call_site()); in gen_for_struct() 69 let app_var = Ident::new("__clap_app", Span::call_site()); in gen_for_enum()
|
/third_party/rust/crates/proc-macro-error/proc-macro-error-attr/src/ |
H A D | settings.rs | 46 let span = other.map_or(Span::call_site(), |tt| tt.span()); 55 let span = other.map_or(Span::call_site(), |tt| tt.span());
|
/third_party/rust/crates/syn/src/ |
H A D | error.rs | 109 // it is Span::call_site if accessed from any other thread. 194 let start = iter.next().map_or_else(Span::call_site, |t| t.span()); in new_spanned() 207 /// Spans are not thread-safe so this function returns `Span::call_site()` 213 None => return Span::call_site(), in span() 279 None => (Span::call_site(), Span::call_site()), in to_compile_error()
|