File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ extern crate regex;
19
19
mod derive_enum;
20
20
mod derive_input_object;
21
21
mod derive_object;
22
- mod derive_object_impl;
23
22
mod derive_scalar_value;
23
+ mod derive_object_impl;
24
24
mod util;
25
25
26
26
use proc_macro:: TokenStream ;
@@ -62,13 +62,6 @@ pub fn derive_object(input: TokenStream) -> TokenStream {
62
62
gen. into ( )
63
63
}
64
64
65
- #[ proc_macro_attribute]
66
- pub fn gql_object ( _metadata : TokenStream , input : TokenStream ) -> TokenStream {
67
- let ast = syn:: parse :: < syn:: Item > ( input) . unwrap ( ) ;
68
- let gen = derive_object_impl:: impl_gql_object ( ast) ;
69
- gen. into ( )
70
- }
71
-
72
65
#[ proc_macro_derive( GraphQLScalarValue ) ]
73
66
pub fn derive_scalar_value ( input : TokenStream ) -> TokenStream {
74
67
let ast = syn:: parse :: < syn:: DeriveInput > ( input) . unwrap ( ) ;
@@ -89,3 +82,10 @@ pub fn derive_scalar_value_internal(input: TokenStream) -> TokenStream {
89
82
let gen = derive_scalar_value:: impl_scalar_value ( & ast, true ) ;
90
83
gen. into ( )
91
84
}
85
+
86
+ #[ proc_macro_attribute]
87
+ pub fn gql_object ( _metadata : TokenStream , input : TokenStream ) -> TokenStream {
88
+ let ast = syn:: parse :: < syn:: Item > ( input) . unwrap ( ) ;
89
+ let gen = derive_object_impl:: impl_gql_object ( ast) ;
90
+ gen. into ( )
91
+ }
You can’t perform that action at this time.
0 commit comments