Lines Matching refs:syn
6 use syn;
7 use syn::punctuated::Punctuated;
13 pub ident: syn::Ident,
19 pub generics: &'a syn::Generics,
21 pub original: &'a syn::DeriveInput,
34 pub ident: syn::Ident,
38 pub original: &'a syn::Variant,
43 pub member: syn::Member,
45 pub ty: &'a syn::Type,
46 pub original: &'a syn::Field,
65 item: &'a syn::DeriveInput, in from_ast()
71 syn::Data::Enum(data) => Data::Enum(enum_from_ast(cx, &data.variants, attrs.default())), in from_ast()
72 syn::Data::Struct(data) => { in from_ast()
76 syn::Data::Union(_) => { in from_ast()
140 variants: &'a Punctuated<syn::Variant, Token![,]>, in enum_from_ast()
162 fields: &'a syn::Fields, in struct_from_ast()
167 syn::Fields::Named(fields) => ( in struct_from_ast()
171 syn::Fields::Unnamed(fields) if fields.unnamed.len() == 1 => ( in struct_from_ast()
175 syn::Fields::Unnamed(fields) => ( in struct_from_ast()
179 syn::Fields::Unit => (Style::Unit, Vec::new()), in struct_from_ast()
185 fields: &'a Punctuated<syn::Field, Token![,]>, in fields_from_ast()
194 Some(ident) => syn::Member::Named(ident.clone()), in fields_from_ast()
195 None => syn::Member::Unnamed(i.into()), in fields_from_ast()