Home
last modified time | relevance | path

Searched refs:enum_token (Results 1 – 14 of 14) sorted by relevance

/external/rust/crates/syn/src/
Dderive.rs72 pub enum_token: Token![enum],
122 let enum_token = input.parse::<Token![enum]>()?; in parse() localVariable
135 enum_token, in parse()
240 Data::Enum(d) => d.enum_token.to_tokens(tokens), in to_tokens()
Ditem.rs128 pub enum_token: Token![enum],
407 enum_token: data.enum_token, in from()
449 enum_token: input.enum_token, in from()
2038 let enum_token = input.parse::<Token![enum]>()?; in parse() localVariable
2045 enum_token, in parse()
2922 self.enum_token.to_tokens(tokens); in to_tokens()
/external/rust/cxx/syntax/
Dparse.rs204 let enum_token = item.enum_token; in parse_enum() localVariable
207 let span = quote!(#vis #enum_token #ident #generics); in parse_enum()
222 let enum_token = item.enum_token; in parse_enum() localVariable
223 let visibility = visibility_pub(&item.vis, enum_token.span); in parse_enum()
231 let span = quote_spanned!(brace_token.span=> #enum_token {}); in parse_enum()
251 enum_token, in parse_enum()
Dcheck.rs621 let enum_token = enm.enum_token; in span_for_enum_error() localVariable
624 quote!(#enum_token #brace_token) in span_for_enum_error()
Dmod.rs109 pub enum_token: Token![enum], field
Dtokens.rs198 self.enum_token.to_tokens(tokens); in to_tokens()
/external/rust/crates/serde_derive/src/internals/
Dattr.rs387 syn::Data::Enum(syn::DataEnum { enum_token, .. }) => cx.error_spanned_by( in from_ast()
388 enum_token, in from_ast()
413 syn::Data::Enum(syn::DataEnum { enum_token, .. }) => cx in from_ast()
415 enum_token, in from_ast()
/external/rust/crates/thiserror-impl/src/
Dexpand.rs408 Data::Enum(data) => data.enum_token.span(), in spanned_error_trait()
/external/rust/crates/syn/src/gen/
Dclone.rs161 enum_token: self.enum_token.clone(), in clone()
1083 enum_token: self.enum_token.clone(), in clone()
Dfold.rs987 enum_token: Token![enum](tokens_helper(f, &node.enum_token.span)), in fold_data_enum()
1912 enum_token: Token![enum](tokens_helper(f, &node.enum_token.span)), in fold_item_enum()
Ddebug.rs315 formatter.field("enum_token", &self.enum_token); in fmt()
1561 formatter.field("enum_token", &self.enum_token); in fmt()
Dvisit_mut.rs1045 tokens_helper(v, &mut node.enum_token.span); in visit_data_enum_mut()
2229 tokens_helper(v, &mut node.enum_token.span); in visit_item_enum_mut()
Dvisit.rs1041 tokens_helper(v, &node.enum_token.span); in visit_data_enum()
2223 tokens_helper(v, &node.enum_token.span); in visit_item_enum()
/external/rust/cxx/macro/src/
Dexpand.rs310 let struct_token = Token![struct](enm.enum_token.span); in expand_enum()