/third_party/rust/crates/syn/src/ |
H A D | lifetime.rs | 11 /// Lifetime names must conform to the following rules: 19 pub struct Lifetime { structure names 24 impl Lifetime { impls 33 /// # use syn::Lifetime; 35 /// # fn f() -> Lifetime { 36 /// Lifetime::new("'a", Span::call_site()) 55 Lifetime { in new() 73 impl Display for Lifetime { 80 impl Clone for Lifetime { 82 Lifetime { in clone() 119 pub fn Lifetime(marker: lookahead::TokenMarker) -> Lifetime { Lifetime() functions [all...] |
H A D | generics.rs | 40 Lifetime(LifetimeParam), 55 pub lifetime: Lifetime, 57 pub bounds: Punctuated<Lifetime, Token![+]>, 185 if let GenericParam::Lifetime(lifetime) = next { in next() 203 if let GenericParam::Lifetime(lifetime) = next { in next() 422 pub fn new(lifetime: Lifetime) -> Self { in new() 451 Lifetime(Lifetime), 501 Lifetime(PredicateLifetime), 512 pub lifetime: Lifetime, [all...] |
H A D | path.rs | 170 Lifetime(Lifetime), 293 if input.peek(Lifetime) && !input.peek2(Token![+]) { in parse() 294 return Ok(GenericArgument::Lifetime(input.parse()?)); in parse() 712 GenericArgument::Lifetime(lt) => lt.to_tokens(tokens), in to_tokens() 755 GenericArgument::Lifetime(_) => { in to_tokens() 779 GenericArgument::Lifetime(_) => {} in to_tokens()
|
H A D | ty.rs | 188 pub lifetime: Option<Lifetime>, 366 if content.peek(Lifetime) { 437 other @ (TypeParamBound::Lifetime(_) 508 || input.peek(Lifetime) 563 } else if lookahead.peek(Lifetime) { 813 TypeParamBound::Lifetime(lifetime) => { in parse_bounds() 853 TypeParamBound::Lifetime(lifetime) => {
|
H A D | expr.rs | 314 pub label: Option<Lifetime>, 375 pub label: Option<Lifetime>, 867 pub name: Lifetime, 1184 || input.peek(Lifetime) // labeled loop in can_begin_expr() 1642 && (input.peek3(Lifetime) || input.peek3(Token![>])) in atom_expr() 1694 } else if input.peek(Lifetime) { in atom_expr() 1976 && !(input.peek2(Token![<]) && (input.peek3(Lifetime) || input.peek3(Token![>]))) 1991 } else if input.peek(Lifetime) { 2546 if input.peek(Lifetime) { in parse() 2571 let label: Option<Lifetime> in expr_break() [all...] |
/third_party/rust/crates/serde/serde_derive/src/ |
H A D | bound.rs | 202 syn::GenericArgument::Lifetime(_) in visit_path_arguments() 230 syn::TypeParamBound::Lifetime(_) | syn::TypeParamBound::Verbatim(_) => {} in visit_type_param_bound() 338 let bound = syn::Lifetime::new(lifetime, Span::call_site()); in with_lifetime_bound() 346 let params = Some(syn::GenericParam::Lifetime(def)) in with_lifetime_bound() 350 syn::GenericParam::Lifetime(param) => { in with_lifetime_bound() 356 .push(syn::TypeParamBound::Lifetime(bound.clone())); in with_lifetime_bound() 392 syn::GenericParam::Lifetime(param) => { in type_of_item() 393 syn::GenericArgument::Lifetime(param.lifetime.clone()) in type_of_item()
|
H A D | de.rs | 226 Borrowed(BTreeSet<syn::Lifetime>), 231 fn de_lifetime(&self) -> syn::Lifetime { in de_lifetime() 233 BorrowedLifetimes::Borrowed(_) => syn::Lifetime::new("'de", Span::call_site()), in de_lifetime() 234 BorrowedLifetimes::Static => syn::Lifetime::new("'static", Span::call_site()), in de_lifetime() 242 lifetime: syn::Lifetime::new("'de", Span::call_site()), in de_lifetime_param() 3022 generics.params = Some(syn::GenericParam::Lifetime(de_lifetime)) in to_tokens() 3041 syn::GenericParam::Lifetime(param) => { in to_tokens() 3045 param.bounds.push(syn::TypeParamBound::Lifetime( in to_tokens() 3052 generics.params = Some(syn::GenericParam::Lifetime(place_lifetime)) in to_tokens() 3057 generics.params = Some(syn::GenericParam::Lifetime(de_lifetim in to_tokens() [all...] |
/third_party/rust/crates/quote/src/ |
H A D | runtime.rs | 300 struct Lifetime<'a> { in push_lifetime() structure names 305 impl<'a> Iterator for Lifetime<'a> { 323 tokens.extend(Lifetime { 331 struct Lifetime<'a> { in push_lifetime_spanned() structure names 337 impl<'a> Iterator for Lifetime<'a> { 357 tokens.extend(Lifetime {
|
/third_party/rust/crates/cxx/gen/build/src/syntax/ |
H A D | mod.rs | 41 use syn::{Attribute, Expr, Generics, Lifetime, LitInt, Token, Type as RustType}; 177 pub lifetimes: Punctuated<Lifetime, Token![,]>, 207 pub lifetime: Option<Lifetime>, 253 pub lifetime: Option<Lifetime>, 270 pub lifetime: Option<Lifetime>,
|
H A D | check.rs | 11 use syn::{GenericParam, Generics, Lifetime}; 612 fn check_reserved_lifetime(cx: &mut Check, lifetime: &Lifetime) { in check_reserved_lifetime() 631 if let GenericParam::Lifetime(def) = generic_param { in check_generics()
|
/third_party/rust/crates/cxx/gen/lib/src/syntax/ |
H A D | mod.rs | 41 use syn::{Attribute, Expr, Generics, Lifetime, LitInt, Token, Type as RustType}; 177 pub lifetimes: Punctuated<Lifetime, Token![,]>, 207 pub lifetime: Option<Lifetime>, 253 pub lifetime: Option<Lifetime>, 270 pub lifetime: Option<Lifetime>,
|
H A D | check.rs | 11 use syn::{GenericParam, Generics, Lifetime}; 612 fn check_reserved_lifetime(cx: &mut Check, lifetime: &Lifetime) { in check_reserved_lifetime() 631 if let GenericParam::Lifetime(def) = generic_param { in check_generics()
|
/third_party/rust/crates/cxx/macro/src/syntax/ |
H A D | mod.rs | 41 use syn::{Attribute, Expr, Generics, Lifetime, LitInt, Token, Type as RustType}; 177 pub lifetimes: Punctuated<Lifetime, Token![,]>, 207 pub lifetime: Option<Lifetime>, 253 pub lifetime: Option<Lifetime>, 270 pub lifetime: Option<Lifetime>,
|
H A D | check.rs | 11 use syn::{GenericParam, Generics, Lifetime}; 612 fn check_reserved_lifetime(cx: &mut Check, lifetime: &Lifetime) { in check_reserved_lifetime() 631 if let GenericParam::Lifetime(def) = generic_param { in check_generics()
|
/third_party/rust/crates/cxx/syntax/ |
H A D | mod.rs | 41 use syn::{Attribute, Expr, Generics, Lifetime, LitInt, Token, Type as RustType}; 177 pub lifetimes: Punctuated<Lifetime, Token![,]>, 207 pub lifetime: Option<Lifetime>, 253 pub lifetime: Option<Lifetime>, 270 pub lifetime: Option<Lifetime>,
|
H A D | check.rs | 11 use syn::{GenericParam, Generics, Lifetime}; 612 fn check_reserved_lifetime(cx: &mut Check, lifetime: &Lifetime) { in check_reserved_lifetime() 631 if let GenericParam::Lifetime(def) = generic_param { in check_generics()
|
/third_party/rust/crates/cxx/gen/cmd/src/syntax/ |
H A D | mod.rs | 41 use syn::{Attribute, Expr, Generics, Lifetime, LitInt, Token, Type as RustType}; 177 pub lifetimes: Punctuated<Lifetime, Token![,]>, 207 pub lifetime: Option<Lifetime>, 253 pub lifetime: Option<Lifetime>, 270 pub lifetime: Option<Lifetime>,
|
H A D | check.rs | 11 use syn::{GenericParam, Generics, Lifetime}; 612 fn check_reserved_lifetime(cx: &mut Check, lifetime: &Lifetime) { in check_reserved_lifetime() 631 if let GenericParam::Lifetime(def) = generic_param { in check_generics()
|
/third_party/rust/crates/serde/serde_derive_internals/src/ |
H A D | receiver.rs | 184 GenericArgument::Lifetime(_) in visit_path_arguments_mut() 212 TypeParamBound::Lifetime(_) | TypeParamBound::Verbatim(_) => {} in visit_type_param_bound_mut() 225 GenericParam::Lifetime(_) | GenericParam::Const(_) => {} in visit_generics_mut() 238 WherePredicate::Lifetime(_) => {} in visit_generics_mut()
|
H A D | attr.rs | 11 use syn::{parse_quote, token, Ident, Lifetime, Token}; 808 lifetimes: Option<BTreeSet<syn::Lifetime>>, 1044 borrowed_lifetimes: BTreeSet<syn::Lifetime>, 1370 pub fn borrowed_lifetimes(&self) -> &BTreeSet<syn::Lifetime> { in borrowed_lifetimes() 1600 ) -> syn::Result<BTreeSet<syn::Lifetime>> { in parse_lit_into_lifetimes() 1609 let lifetime: Lifetime = input.parse()?; in parse_lit_into_lifetimes() 1688 (syn::GenericArgument::Lifetime(_), syn::GenericArgument::Type(arg)) => elem(arg), in is_cow() 1783 ) -> Result<BTreeSet<syn::Lifetime>, ()> { in borrowable_lifetimes() 1795 fn collect_lifetimes(ty: &syn::Type, out: &mut BTreeSet<syn::Lifetime>) { in collect_lifetimes() 1824 syn::GenericArgument::Lifetime(lifetim in collect_lifetimes() [all...] |
/third_party/rust/crates/serde/serde_derive/src/internals/ |
H A D | receiver.rs | 184 GenericArgument::Lifetime(_) in visit_path_arguments_mut() 212 TypeParamBound::Lifetime(_) | TypeParamBound::Verbatim(_) => {} in visit_type_param_bound_mut() 225 GenericParam::Lifetime(_) | GenericParam::Const(_) => {} in visit_generics_mut() 238 WherePredicate::Lifetime(_) => {} in visit_generics_mut()
|
H A D | attr.rs | 11 use syn::{parse_quote, token, Ident, Lifetime, Token}; 808 lifetimes: Option<BTreeSet<syn::Lifetime>>, 1044 borrowed_lifetimes: BTreeSet<syn::Lifetime>, 1370 pub fn borrowed_lifetimes(&self) -> &BTreeSet<syn::Lifetime> { in borrowed_lifetimes() 1600 ) -> syn::Result<BTreeSet<syn::Lifetime>> { in parse_lit_into_lifetimes() 1609 let lifetime: Lifetime = input.parse()?; in parse_lit_into_lifetimes() 1688 (syn::GenericArgument::Lifetime(_), syn::GenericArgument::Type(arg)) => elem(arg), in is_cow() 1783 ) -> Result<BTreeSet<syn::Lifetime>, ()> { in borrowable_lifetimes() 1795 fn collect_lifetimes(ty: &syn::Type, out: &mut BTreeSet<syn::Lifetime>) { in collect_lifetimes() 1824 syn::GenericArgument::Lifetime(lifetim in collect_lifetimes() [all...] |
/third_party/rust/crates/cxx/macro/src/ |
H A D | generics.rs | 6 use syn::{Lifetime, Token}; 85 let lifetime = Lifetime::new("'_", lifetime.span()); in to_tokens()
|
/third_party/rust/crates/syn/src/gen/ |
H A D | clone.rs | 926 GenericArgument::Lifetime(v0) => GenericArgument::Lifetime(v0.clone()), in clone() 940 GenericParam::Lifetime(v0) => GenericParam::Lifetime(v0.clone()), in clone() 1963 TypeParamBound::Lifetime(v0) => TypeParamBound::Lifetime(v0.clone()), in clone() 2177 WherePredicate::Lifetime(v0) => WherePredicate::Lifetime(v0.clone()), in clone()
|
/third_party/rust/crates/syn/tests/common/ |
H A D | eq.rs | 91 use rustc_ast::ast::Lifetime; 489 spanless_eq_struct!(Lifetime; id ident); 556 spanless_eq_enum!(GenericArg; Lifetime(0) Type(0) Const(0)); 559 spanless_eq_enum!(GenericParamKind; Lifetime Type(default) Const(ty kw_span default));
|