/third_party/rust/crates/syn/tests/ |
H A D | test_derive_input.rs | 12 use syn::{Data, DeriveInput}; 20 snapshot!(input as DeriveInput, @r###" in test_unit() 21 DeriveInput { in test_unit() 43 snapshot!(input as DeriveInput, @r###" in test_struct() 44 DeriveInput { in test_struct() 139 snapshot!(input as DeriveInput, @r###" in test_union() 140 DeriveInput { in test_union() 200 snapshot!(input as DeriveInput, @r###" in test_enum() 201 DeriveInput { in test_enum() 353 syn::parse2::<DeriveInput>(inpu in test_attr_with_non_mod_style_path() [all...] |
H A D | test_generics.rs | 11 use syn::{DeriveInput, ItemFn, TypeParamBound, WhereClause, WherePredicate}; 19 snapshot!(input as DeriveInput, @r###" in test_split_for_impl() 20 DeriveInput { in test_split_for_impl()
|
H A D | test_visibility.rs | 8 use syn::{DeriveInput, Result, Visibility}; 125 snapshot!(tokens as DeriveInput, @r###" in test_empty_group_vis() 126 DeriveInput { in test_empty_group_vis()
|
/third_party/rust/crates/clap/clap_derive/src/ |
H A D | lib.rs | 22 use syn::{parse_macro_input, DeriveInput}; 37 let input: DeriveInput = parse_macro_input!(input); in value_enum() 54 let input: DeriveInput = parse_macro_input!(input); in parser() 86 let input: DeriveInput = parse_macro_input!(input); in subcommand() 98 let input: DeriveInput = parse_macro_input!(input); in args()
|
H A D | item.rs | 20 use syn::DeriveInput; 55 pub fn from_args_struct(input: &DeriveInput, name: Name) -> Result<Self, syn::Error> { in from_args_struct() 72 pub fn from_subcommand_enum(input: &DeriveInput, name: Name) -> Result<Self, syn::Error> { in from_subcommand_enum() 89 pub fn from_value_enum(input: &DeriveInput, name: Name) -> Result<Self, syn::Error> { in from_value_enum()
|
/third_party/rust/crates/serde/serde_derive/src/ |
H A D | lib.rs | 74 use syn::DeriveInput; 89 let mut input = parse_macro_input!(input as DeriveInput); in derive_serialize() 97 let mut input = parse_macro_input!(input as DeriveInput); in derive_deserialize()
|
H A D | ser.rs | 10 pub fn expand_derive_serialize(input: &mut syn::DeriveInput) -> syn::Result<TokenStream> { in expand_derive_serialize()
|
/third_party/rust/crates/syn/src/ |
H A D | derive.rs | 7 pub struct DeriveInput { structure names 67 impl Parse for DeriveInput { 78 Ok(DeriveInput { in parse() 97 Ok(DeriveInput { in parse() 116 Ok(DeriveInput { in parse() 203 impl ToTokens for DeriveInput {
|
H A D | item.rs | 2 use crate::derive::{Data, DataEnum, DataStruct, DataUnion, DeriveInput}; 333 impl From<DeriveInput> for Item { 334 fn from(input: DeriveInput) -> Item { in from() 366 impl From<ItemStruct> for DeriveInput { 367 fn from(input: ItemStruct) -> DeriveInput { in from() 368 DeriveInput { in from() 382 impl From<ItemEnum> for DeriveInput { 383 fn from(input: ItemEnum) -> DeriveInput { in from() 384 DeriveInput { in from() 398 impl From<ItemUnion> for DeriveInput { [all...] |
H A D | lib.rs | 22 //! [`syn::DeriveInput`] which is any of the three legal input items to a 46 //! [`syn::DeriveInput`]: DeriveInput 77 //! use syn::{parse_macro_input, DeriveInput}; 84 //! let input = parse_macro_input!(input as DeriveInput); 342 pub use crate::derive::{Data, DataEnum, DataStruct, DataUnion, DeriveInput}; 881 /// use syn::DeriveInput; 888 /// let ast: DeriveInput = syn::parse(input).unwrap();
|
/third_party/rust/crates/syn/examples/heapsize/heapsize_derive/src/ |
H A D | lib.rs | 5 parse_macro_input, parse_quote, Data, DeriveInput, Fields, GenericParam, Generics, Index, 11 let input = parse_macro_input!(input as DeriveInput); in derive_heap_size()
|
/third_party/rust/crates/clap/clap_derive/src/derives/ |
H A D | value_enum.rs | 14 use syn::{spanned::Spanned, Data, DeriveInput, Fields, Ident, Variant}; 18 pub fn derive_value_enum(input: &DeriveInput) -> Result<TokenStream, syn::Error> { in derive_value_enum()
|
H A D | parser.rs | 20 self, punctuated::Punctuated, token::Comma, Data, DataStruct, DeriveInput, Field, Fields, 28 pub fn derive_parser(input: &DeriveInput) -> Result<TokenStream, syn::Error> { in derive_parser()
|
H A D | subcommand.rs | 17 use syn::{spanned::Spanned, Data, DeriveInput, FieldsUnnamed, Generics, Variant}; 23 pub fn derive_subcommand(input: &DeriveInput) -> Result<TokenStream, syn::Error> { in derive_subcommand()
|
H A D | args.rs | 19 punctuated::Punctuated, spanned::Spanned, token::Comma, Data, DataStruct, DeriveInput, Field, 26 pub fn derive_args(input: &DeriveInput) -> Result<TokenStream, syn::Error> { in derive_args()
|
/third_party/rust/crates/serde/serde_derive_internals/src/ |
H A D | ast.rs | 19 pub original: &'a syn::DeriveInput, 63 item: &'a syn::DeriveInput, in from_ast()
|
H A D | receiver.rs | 7 parse_quote, Data, DeriveInput, Expr, ExprPath, GenericArgument, GenericParam, Generics, Macro, 11 pub fn replace_receiver(input: &mut DeriveInput) { in replace_receiver()
|
H A D | attr.rs | 287 pub fn from_ast(cx: &Ctxt, item: &syn::DeriveInput) -> Self { in from_ast() 688 item: &syn::DeriveInput, in decide_tag() 749 item: &syn::DeriveInput, in decide_identifier()
|
/third_party/rust/crates/serde/serde_derive/src/internals/ |
H A D | ast.rs | 19 pub original: &'a syn::DeriveInput, 63 item: &'a syn::DeriveInput, in from_ast()
|
H A D | receiver.rs | 7 parse_quote, Data, DeriveInput, Expr, ExprPath, GenericArgument, GenericParam, Generics, Macro, 11 pub fn replace_receiver(input: &mut DeriveInput) { in replace_receiver()
|
H A D | attr.rs | 287 pub fn from_ast(cx: &Ctxt, item: &syn::DeriveInput) -> Self { in from_ast() 688 item: &syn::DeriveInput, in decide_tag() 749 item: &syn::DeriveInput, in decide_identifier()
|
/third_party/rust/crates/syn/codegen/src/ |
H A D | parse.rs | 10 parse_quote, Attribute, Data, DataEnum, DataStruct, DeriveInput, Fields, GenericArgument, 64 ast: DeriveInput, 605 ast: DeriveInput { in do_load_file()
|
/third_party/rust/crates/syn/src/gen/ |
H A D | visit.rs | 126 fn visit_derive_input(&mut self, i: &'ast DeriveInput) { in visit_derive_input() 1257 pub fn visit_derive_input<'ast, V>(v: &mut V, node: &'ast DeriveInput) in visit_derive_input()
|
H A D | clone.rs | 215 impl Clone for DeriveInput { 217 DeriveInput { in clone()
|
H A D | fold.rs | 127 fn fold_derive_input(&mut self, i: DeriveInput) -> DeriveInput { in fold_derive_input() 1186 pub fn fold_derive_input<F>(f: &mut F, node: DeriveInput) -> DeriveInput in fold_derive_input() 1190 DeriveInput { in fold_derive_input()
|