]> git.proxmox.com Git - rustc.git/blob - src/vendor/syn-0.13.11/src/gen/visit.rs
New upstream version 1.29.0+dfsg1
[rustc.git] / src / vendor / syn-0.13.11 / src / gen / visit.rs
1 // THIS FILE IS AUTOMATICALLY GENERATED; DO NOT EDIT
2
3 #![cfg_attr(rustfmt, rustfmt_skip)]
4
5 #![cfg_attr(feature = "cargo-clippy", allow(match_same_arms))]
6
7 use *;
8 #[cfg(any(feature = "full", feature = "derive"))]
9 use punctuated::Punctuated;
10 use proc_macro2::Span;
11 #[cfg(any(feature = "full", feature = "derive"))]
12 use gen::helper::visit::*;
13
14
15 #[cfg(feature = "full")]
16 macro_rules! full {
17 ($e:expr) => { $e }
18 }
19
20 #[cfg(all(feature = "derive", not(feature = "full")))]
21 macro_rules! full {
22 ($e:expr) => { unreachable!() }
23 }
24
25
26 /// Syntax tree traversal to walk a shared borrow of a syntax tree.
27 ///
28 /// See the [module documentation] for details.
29 ///
30 /// [module documentation]: index.html
31 ///
32 /// *This trait is available if Syn is built with the `"visit"` feature.*
33 pub trait Visit<'ast> {
34 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
35 fn visit_abi(&mut self, i: &'ast Abi) { visit_abi(self, i) }
36 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
37 fn visit_angle_bracketed_generic_arguments(&mut self, i: &'ast AngleBracketedGenericArguments) { visit_angle_bracketed_generic_arguments(self, i) }
38 # [ cfg ( feature = "full" ) ]
39 fn visit_arg_captured(&mut self, i: &'ast ArgCaptured) { visit_arg_captured(self, i) }
40 # [ cfg ( feature = "full" ) ]
41 fn visit_arg_self(&mut self, i: &'ast ArgSelf) { visit_arg_self(self, i) }
42 # [ cfg ( feature = "full" ) ]
43 fn visit_arg_self_ref(&mut self, i: &'ast ArgSelfRef) { visit_arg_self_ref(self, i) }
44 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
45 fn visit_arm(&mut self, i: &'ast Arm) { visit_arm(self, i) }
46 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
47 fn visit_attr_style(&mut self, i: &'ast AttrStyle) { visit_attr_style(self, i) }
48 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
49 fn visit_attribute(&mut self, i: &'ast Attribute) { visit_attribute(self, i) }
50 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
51 fn visit_bare_fn_arg(&mut self, i: &'ast BareFnArg) { visit_bare_fn_arg(self, i) }
52 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
53 fn visit_bare_fn_arg_name(&mut self, i: &'ast BareFnArgName) { visit_bare_fn_arg_name(self, i) }
54 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
55 fn visit_bin_op(&mut self, i: &'ast BinOp) { visit_bin_op(self, i) }
56 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
57 fn visit_binding(&mut self, i: &'ast Binding) { visit_binding(self, i) }
58 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
59 fn visit_block(&mut self, i: &'ast Block) { visit_block(self, i) }
60 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
61 fn visit_bound_lifetimes(&mut self, i: &'ast BoundLifetimes) { visit_bound_lifetimes(self, i) }
62 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
63 fn visit_const_param(&mut self, i: &'ast ConstParam) { visit_const_param(self, i) }
64 # [ cfg ( feature = "derive" ) ]
65 fn visit_data(&mut self, i: &'ast Data) { visit_data(self, i) }
66 # [ cfg ( feature = "derive" ) ]
67 fn visit_data_enum(&mut self, i: &'ast DataEnum) { visit_data_enum(self, i) }
68 # [ cfg ( feature = "derive" ) ]
69 fn visit_data_struct(&mut self, i: &'ast DataStruct) { visit_data_struct(self, i) }
70 # [ cfg ( feature = "derive" ) ]
71 fn visit_data_union(&mut self, i: &'ast DataUnion) { visit_data_union(self, i) }
72 # [ cfg ( feature = "derive" ) ]
73 fn visit_derive_input(&mut self, i: &'ast DeriveInput) { visit_derive_input(self, i) }
74 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
75 fn visit_expr(&mut self, i: &'ast Expr) { visit_expr(self, i) }
76 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
77 fn visit_expr_array(&mut self, i: &'ast ExprArray) { visit_expr_array(self, i) }
78 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
79 fn visit_expr_assign(&mut self, i: &'ast ExprAssign) { visit_expr_assign(self, i) }
80 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
81 fn visit_expr_assign_op(&mut self, i: &'ast ExprAssignOp) { visit_expr_assign_op(self, i) }
82 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
83 fn visit_expr_binary(&mut self, i: &'ast ExprBinary) { visit_expr_binary(self, i) }
84 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
85 fn visit_expr_block(&mut self, i: &'ast ExprBlock) { visit_expr_block(self, i) }
86 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
87 fn visit_expr_box(&mut self, i: &'ast ExprBox) { visit_expr_box(self, i) }
88 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
89 fn visit_expr_break(&mut self, i: &'ast ExprBreak) { visit_expr_break(self, i) }
90 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
91 fn visit_expr_call(&mut self, i: &'ast ExprCall) { visit_expr_call(self, i) }
92 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
93 fn visit_expr_cast(&mut self, i: &'ast ExprCast) { visit_expr_cast(self, i) }
94 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
95 fn visit_expr_catch(&mut self, i: &'ast ExprCatch) { visit_expr_catch(self, i) }
96 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
97 fn visit_expr_closure(&mut self, i: &'ast ExprClosure) { visit_expr_closure(self, i) }
98 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
99 fn visit_expr_continue(&mut self, i: &'ast ExprContinue) { visit_expr_continue(self, i) }
100 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
101 fn visit_expr_field(&mut self, i: &'ast ExprField) { visit_expr_field(self, i) }
102 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
103 fn visit_expr_for_loop(&mut self, i: &'ast ExprForLoop) { visit_expr_for_loop(self, i) }
104 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
105 fn visit_expr_group(&mut self, i: &'ast ExprGroup) { visit_expr_group(self, i) }
106 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
107 fn visit_expr_if(&mut self, i: &'ast ExprIf) { visit_expr_if(self, i) }
108 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
109 fn visit_expr_if_let(&mut self, i: &'ast ExprIfLet) { visit_expr_if_let(self, i) }
110 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
111 fn visit_expr_in_place(&mut self, i: &'ast ExprInPlace) { visit_expr_in_place(self, i) }
112 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
113 fn visit_expr_index(&mut self, i: &'ast ExprIndex) { visit_expr_index(self, i) }
114 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
115 fn visit_expr_lit(&mut self, i: &'ast ExprLit) { visit_expr_lit(self, i) }
116 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
117 fn visit_expr_loop(&mut self, i: &'ast ExprLoop) { visit_expr_loop(self, i) }
118 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
119 fn visit_expr_macro(&mut self, i: &'ast ExprMacro) { visit_expr_macro(self, i) }
120 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
121 fn visit_expr_match(&mut self, i: &'ast ExprMatch) { visit_expr_match(self, i) }
122 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
123 fn visit_expr_method_call(&mut self, i: &'ast ExprMethodCall) { visit_expr_method_call(self, i) }
124 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
125 fn visit_expr_paren(&mut self, i: &'ast ExprParen) { visit_expr_paren(self, i) }
126 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
127 fn visit_expr_path(&mut self, i: &'ast ExprPath) { visit_expr_path(self, i) }
128 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
129 fn visit_expr_range(&mut self, i: &'ast ExprRange) { visit_expr_range(self, i) }
130 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
131 fn visit_expr_reference(&mut self, i: &'ast ExprReference) { visit_expr_reference(self, i) }
132 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
133 fn visit_expr_repeat(&mut self, i: &'ast ExprRepeat) { visit_expr_repeat(self, i) }
134 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
135 fn visit_expr_return(&mut self, i: &'ast ExprReturn) { visit_expr_return(self, i) }
136 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
137 fn visit_expr_struct(&mut self, i: &'ast ExprStruct) { visit_expr_struct(self, i) }
138 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
139 fn visit_expr_try(&mut self, i: &'ast ExprTry) { visit_expr_try(self, i) }
140 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
141 fn visit_expr_tuple(&mut self, i: &'ast ExprTuple) { visit_expr_tuple(self, i) }
142 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
143 fn visit_expr_type(&mut self, i: &'ast ExprType) { visit_expr_type(self, i) }
144 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
145 fn visit_expr_unary(&mut self, i: &'ast ExprUnary) { visit_expr_unary(self, i) }
146 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
147 fn visit_expr_unsafe(&mut self, i: &'ast ExprUnsafe) { visit_expr_unsafe(self, i) }
148 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
149 fn visit_expr_verbatim(&mut self, i: &'ast ExprVerbatim) { visit_expr_verbatim(self, i) }
150 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
151 fn visit_expr_while(&mut self, i: &'ast ExprWhile) { visit_expr_while(self, i) }
152 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
153 fn visit_expr_while_let(&mut self, i: &'ast ExprWhileLet) { visit_expr_while_let(self, i) }
154 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
155 fn visit_expr_yield(&mut self, i: &'ast ExprYield) { visit_expr_yield(self, i) }
156 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
157 fn visit_field(&mut self, i: &'ast Field) { visit_field(self, i) }
158 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
159 fn visit_field_pat(&mut self, i: &'ast FieldPat) { visit_field_pat(self, i) }
160 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
161 fn visit_field_value(&mut self, i: &'ast FieldValue) { visit_field_value(self, i) }
162 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
163 fn visit_fields(&mut self, i: &'ast Fields) { visit_fields(self, i) }
164 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
165 fn visit_fields_named(&mut self, i: &'ast FieldsNamed) { visit_fields_named(self, i) }
166 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
167 fn visit_fields_unnamed(&mut self, i: &'ast FieldsUnnamed) { visit_fields_unnamed(self, i) }
168 # [ cfg ( feature = "full" ) ]
169 fn visit_file(&mut self, i: &'ast File) { visit_file(self, i) }
170 # [ cfg ( feature = "full" ) ]
171 fn visit_fn_arg(&mut self, i: &'ast FnArg) { visit_fn_arg(self, i) }
172 # [ cfg ( feature = "full" ) ]
173 fn visit_fn_decl(&mut self, i: &'ast FnDecl) { visit_fn_decl(self, i) }
174 # [ cfg ( feature = "full" ) ]
175 fn visit_foreign_item(&mut self, i: &'ast ForeignItem) { visit_foreign_item(self, i) }
176 # [ cfg ( feature = "full" ) ]
177 fn visit_foreign_item_fn(&mut self, i: &'ast ForeignItemFn) { visit_foreign_item_fn(self, i) }
178 # [ cfg ( feature = "full" ) ]
179 fn visit_foreign_item_static(&mut self, i: &'ast ForeignItemStatic) { visit_foreign_item_static(self, i) }
180 # [ cfg ( feature = "full" ) ]
181 fn visit_foreign_item_type(&mut self, i: &'ast ForeignItemType) { visit_foreign_item_type(self, i) }
182 # [ cfg ( feature = "full" ) ]
183 fn visit_foreign_item_verbatim(&mut self, i: &'ast ForeignItemVerbatim) { visit_foreign_item_verbatim(self, i) }
184 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
185 fn visit_generic_argument(&mut self, i: &'ast GenericArgument) { visit_generic_argument(self, i) }
186 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
187 fn visit_generic_method_argument(&mut self, i: &'ast GenericMethodArgument) { visit_generic_method_argument(self, i) }
188 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
189 fn visit_generic_param(&mut self, i: &'ast GenericParam) { visit_generic_param(self, i) }
190 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
191 fn visit_generics(&mut self, i: &'ast Generics) { visit_generics(self, i) }
192
193 fn visit_ident(&mut self, i: &'ast Ident) { visit_ident(self, i) }
194 # [ cfg ( feature = "full" ) ]
195 fn visit_impl_item(&mut self, i: &'ast ImplItem) { visit_impl_item(self, i) }
196 # [ cfg ( feature = "full" ) ]
197 fn visit_impl_item_const(&mut self, i: &'ast ImplItemConst) { visit_impl_item_const(self, i) }
198 # [ cfg ( feature = "full" ) ]
199 fn visit_impl_item_macro(&mut self, i: &'ast ImplItemMacro) { visit_impl_item_macro(self, i) }
200 # [ cfg ( feature = "full" ) ]
201 fn visit_impl_item_method(&mut self, i: &'ast ImplItemMethod) { visit_impl_item_method(self, i) }
202 # [ cfg ( feature = "full" ) ]
203 fn visit_impl_item_type(&mut self, i: &'ast ImplItemType) { visit_impl_item_type(self, i) }
204 # [ cfg ( feature = "full" ) ]
205 fn visit_impl_item_verbatim(&mut self, i: &'ast ImplItemVerbatim) { visit_impl_item_verbatim(self, i) }
206 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
207 fn visit_index(&mut self, i: &'ast Index) { visit_index(self, i) }
208 # [ cfg ( feature = "full" ) ]
209 fn visit_item(&mut self, i: &'ast Item) { visit_item(self, i) }
210 # [ cfg ( feature = "full" ) ]
211 fn visit_item_const(&mut self, i: &'ast ItemConst) { visit_item_const(self, i) }
212 # [ cfg ( feature = "full" ) ]
213 fn visit_item_enum(&mut self, i: &'ast ItemEnum) { visit_item_enum(self, i) }
214 # [ cfg ( feature = "full" ) ]
215 fn visit_item_extern_crate(&mut self, i: &'ast ItemExternCrate) { visit_item_extern_crate(self, i) }
216 # [ cfg ( feature = "full" ) ]
217 fn visit_item_fn(&mut self, i: &'ast ItemFn) { visit_item_fn(self, i) }
218 # [ cfg ( feature = "full" ) ]
219 fn visit_item_foreign_mod(&mut self, i: &'ast ItemForeignMod) { visit_item_foreign_mod(self, i) }
220 # [ cfg ( feature = "full" ) ]
221 fn visit_item_impl(&mut self, i: &'ast ItemImpl) { visit_item_impl(self, i) }
222 # [ cfg ( feature = "full" ) ]
223 fn visit_item_macro(&mut self, i: &'ast ItemMacro) { visit_item_macro(self, i) }
224 # [ cfg ( feature = "full" ) ]
225 fn visit_item_macro2(&mut self, i: &'ast ItemMacro2) { visit_item_macro2(self, i) }
226 # [ cfg ( feature = "full" ) ]
227 fn visit_item_mod(&mut self, i: &'ast ItemMod) { visit_item_mod(self, i) }
228 # [ cfg ( feature = "full" ) ]
229 fn visit_item_static(&mut self, i: &'ast ItemStatic) { visit_item_static(self, i) }
230 # [ cfg ( feature = "full" ) ]
231 fn visit_item_struct(&mut self, i: &'ast ItemStruct) { visit_item_struct(self, i) }
232 # [ cfg ( feature = "full" ) ]
233 fn visit_item_trait(&mut self, i: &'ast ItemTrait) { visit_item_trait(self, i) }
234 # [ cfg ( feature = "full" ) ]
235 fn visit_item_type(&mut self, i: &'ast ItemType) { visit_item_type(self, i) }
236 # [ cfg ( feature = "full" ) ]
237 fn visit_item_union(&mut self, i: &'ast ItemUnion) { visit_item_union(self, i) }
238 # [ cfg ( feature = "full" ) ]
239 fn visit_item_use(&mut self, i: &'ast ItemUse) { visit_item_use(self, i) }
240 # [ cfg ( feature = "full" ) ]
241 fn visit_item_verbatim(&mut self, i: &'ast ItemVerbatim) { visit_item_verbatim(self, i) }
242 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
243 fn visit_label(&mut self, i: &'ast Label) { visit_label(self, i) }
244 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
245 fn visit_lifetime(&mut self, i: &'ast Lifetime) { visit_lifetime(self, i) }
246 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
247 fn visit_lifetime_def(&mut self, i: &'ast LifetimeDef) { visit_lifetime_def(self, i) }
248 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
249 fn visit_lit(&mut self, i: &'ast Lit) { visit_lit(self, i) }
250 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
251 fn visit_lit_bool(&mut self, i: &'ast LitBool) { visit_lit_bool(self, i) }
252 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
253 fn visit_lit_byte(&mut self, i: &'ast LitByte) { visit_lit_byte(self, i) }
254 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
255 fn visit_lit_byte_str(&mut self, i: &'ast LitByteStr) { visit_lit_byte_str(self, i) }
256 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
257 fn visit_lit_char(&mut self, i: &'ast LitChar) { visit_lit_char(self, i) }
258 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
259 fn visit_lit_float(&mut self, i: &'ast LitFloat) { visit_lit_float(self, i) }
260 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
261 fn visit_lit_int(&mut self, i: &'ast LitInt) { visit_lit_int(self, i) }
262 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
263 fn visit_lit_str(&mut self, i: &'ast LitStr) { visit_lit_str(self, i) }
264 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
265 fn visit_lit_verbatim(&mut self, i: &'ast LitVerbatim) { visit_lit_verbatim(self, i) }
266 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
267 fn visit_local(&mut self, i: &'ast Local) { visit_local(self, i) }
268 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
269 fn visit_macro(&mut self, i: &'ast Macro) { visit_macro(self, i) }
270 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
271 fn visit_macro_delimiter(&mut self, i: &'ast MacroDelimiter) { visit_macro_delimiter(self, i) }
272 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
273 fn visit_member(&mut self, i: &'ast Member) { visit_member(self, i) }
274 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
275 fn visit_meta(&mut self, i: &'ast Meta) { visit_meta(self, i) }
276 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
277 fn visit_meta_list(&mut self, i: &'ast MetaList) { visit_meta_list(self, i) }
278 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
279 fn visit_meta_name_value(&mut self, i: &'ast MetaNameValue) { visit_meta_name_value(self, i) }
280 # [ cfg ( feature = "full" ) ]
281 fn visit_method_sig(&mut self, i: &'ast MethodSig) { visit_method_sig(self, i) }
282 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
283 fn visit_method_turbofish(&mut self, i: &'ast MethodTurbofish) { visit_method_turbofish(self, i) }
284 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
285 fn visit_nested_meta(&mut self, i: &'ast NestedMeta) { visit_nested_meta(self, i) }
286 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
287 fn visit_parenthesized_generic_arguments(&mut self, i: &'ast ParenthesizedGenericArguments) { visit_parenthesized_generic_arguments(self, i) }
288 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
289 fn visit_pat(&mut self, i: &'ast Pat) { visit_pat(self, i) }
290 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
291 fn visit_pat_box(&mut self, i: &'ast PatBox) { visit_pat_box(self, i) }
292 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
293 fn visit_pat_ident(&mut self, i: &'ast PatIdent) { visit_pat_ident(self, i) }
294 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
295 fn visit_pat_lit(&mut self, i: &'ast PatLit) { visit_pat_lit(self, i) }
296 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
297 fn visit_pat_macro(&mut self, i: &'ast PatMacro) { visit_pat_macro(self, i) }
298 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
299 fn visit_pat_path(&mut self, i: &'ast PatPath) { visit_pat_path(self, i) }
300 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
301 fn visit_pat_range(&mut self, i: &'ast PatRange) { visit_pat_range(self, i) }
302 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
303 fn visit_pat_ref(&mut self, i: &'ast PatRef) { visit_pat_ref(self, i) }
304 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
305 fn visit_pat_slice(&mut self, i: &'ast PatSlice) { visit_pat_slice(self, i) }
306 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
307 fn visit_pat_struct(&mut self, i: &'ast PatStruct) { visit_pat_struct(self, i) }
308 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
309 fn visit_pat_tuple(&mut self, i: &'ast PatTuple) { visit_pat_tuple(self, i) }
310 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
311 fn visit_pat_tuple_struct(&mut self, i: &'ast PatTupleStruct) { visit_pat_tuple_struct(self, i) }
312 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
313 fn visit_pat_verbatim(&mut self, i: &'ast PatVerbatim) { visit_pat_verbatim(self, i) }
314 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
315 fn visit_pat_wild(&mut self, i: &'ast PatWild) { visit_pat_wild(self, i) }
316 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
317 fn visit_path(&mut self, i: &'ast Path) { visit_path(self, i) }
318 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
319 fn visit_path_arguments(&mut self, i: &'ast PathArguments) { visit_path_arguments(self, i) }
320 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
321 fn visit_path_segment(&mut self, i: &'ast PathSegment) { visit_path_segment(self, i) }
322 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
323 fn visit_predicate_eq(&mut self, i: &'ast PredicateEq) { visit_predicate_eq(self, i) }
324 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
325 fn visit_predicate_lifetime(&mut self, i: &'ast PredicateLifetime) { visit_predicate_lifetime(self, i) }
326 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
327 fn visit_predicate_type(&mut self, i: &'ast PredicateType) { visit_predicate_type(self, i) }
328 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
329 fn visit_qself(&mut self, i: &'ast QSelf) { visit_qself(self, i) }
330 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
331 fn visit_range_limits(&mut self, i: &'ast RangeLimits) { visit_range_limits(self, i) }
332 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
333 fn visit_return_type(&mut self, i: &'ast ReturnType) { visit_return_type(self, i) }
334
335 fn visit_span(&mut self, i: &'ast Span) { visit_span(self, i) }
336 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
337 fn visit_stmt(&mut self, i: &'ast Stmt) { visit_stmt(self, i) }
338 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
339 fn visit_trait_bound(&mut self, i: &'ast TraitBound) { visit_trait_bound(self, i) }
340 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
341 fn visit_trait_bound_modifier(&mut self, i: &'ast TraitBoundModifier) { visit_trait_bound_modifier(self, i) }
342 # [ cfg ( feature = "full" ) ]
343 fn visit_trait_item(&mut self, i: &'ast TraitItem) { visit_trait_item(self, i) }
344 # [ cfg ( feature = "full" ) ]
345 fn visit_trait_item_const(&mut self, i: &'ast TraitItemConst) { visit_trait_item_const(self, i) }
346 # [ cfg ( feature = "full" ) ]
347 fn visit_trait_item_macro(&mut self, i: &'ast TraitItemMacro) { visit_trait_item_macro(self, i) }
348 # [ cfg ( feature = "full" ) ]
349 fn visit_trait_item_method(&mut self, i: &'ast TraitItemMethod) { visit_trait_item_method(self, i) }
350 # [ cfg ( feature = "full" ) ]
351 fn visit_trait_item_type(&mut self, i: &'ast TraitItemType) { visit_trait_item_type(self, i) }
352 # [ cfg ( feature = "full" ) ]
353 fn visit_trait_item_verbatim(&mut self, i: &'ast TraitItemVerbatim) { visit_trait_item_verbatim(self, i) }
354 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
355 fn visit_type(&mut self, i: &'ast Type) { visit_type(self, i) }
356 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
357 fn visit_type_array(&mut self, i: &'ast TypeArray) { visit_type_array(self, i) }
358 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
359 fn visit_type_bare_fn(&mut self, i: &'ast TypeBareFn) { visit_type_bare_fn(self, i) }
360 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
361 fn visit_type_group(&mut self, i: &'ast TypeGroup) { visit_type_group(self, i) }
362 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
363 fn visit_type_impl_trait(&mut self, i: &'ast TypeImplTrait) { visit_type_impl_trait(self, i) }
364 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
365 fn visit_type_infer(&mut self, i: &'ast TypeInfer) { visit_type_infer(self, i) }
366 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
367 fn visit_type_macro(&mut self, i: &'ast TypeMacro) { visit_type_macro(self, i) }
368 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
369 fn visit_type_never(&mut self, i: &'ast TypeNever) { visit_type_never(self, i) }
370 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
371 fn visit_type_param(&mut self, i: &'ast TypeParam) { visit_type_param(self, i) }
372 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
373 fn visit_type_param_bound(&mut self, i: &'ast TypeParamBound) { visit_type_param_bound(self, i) }
374 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
375 fn visit_type_paren(&mut self, i: &'ast TypeParen) { visit_type_paren(self, i) }
376 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
377 fn visit_type_path(&mut self, i: &'ast TypePath) { visit_type_path(self, i) }
378 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
379 fn visit_type_ptr(&mut self, i: &'ast TypePtr) { visit_type_ptr(self, i) }
380 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
381 fn visit_type_reference(&mut self, i: &'ast TypeReference) { visit_type_reference(self, i) }
382 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
383 fn visit_type_slice(&mut self, i: &'ast TypeSlice) { visit_type_slice(self, i) }
384 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
385 fn visit_type_trait_object(&mut self, i: &'ast TypeTraitObject) { visit_type_trait_object(self, i) }
386 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
387 fn visit_type_tuple(&mut self, i: &'ast TypeTuple) { visit_type_tuple(self, i) }
388 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
389 fn visit_type_verbatim(&mut self, i: &'ast TypeVerbatim) { visit_type_verbatim(self, i) }
390 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
391 fn visit_un_op(&mut self, i: &'ast UnOp) { visit_un_op(self, i) }
392 # [ cfg ( feature = "full" ) ]
393 fn visit_use_glob(&mut self, i: &'ast UseGlob) { visit_use_glob(self, i) }
394 # [ cfg ( feature = "full" ) ]
395 fn visit_use_group(&mut self, i: &'ast UseGroup) { visit_use_group(self, i) }
396 # [ cfg ( feature = "full" ) ]
397 fn visit_use_name(&mut self, i: &'ast UseName) { visit_use_name(self, i) }
398 # [ cfg ( feature = "full" ) ]
399 fn visit_use_path(&mut self, i: &'ast UsePath) { visit_use_path(self, i) }
400 # [ cfg ( feature = "full" ) ]
401 fn visit_use_rename(&mut self, i: &'ast UseRename) { visit_use_rename(self, i) }
402 # [ cfg ( feature = "full" ) ]
403 fn visit_use_tree(&mut self, i: &'ast UseTree) { visit_use_tree(self, i) }
404 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
405 fn visit_variant(&mut self, i: &'ast Variant) { visit_variant(self, i) }
406 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
407 fn visit_vis_crate(&mut self, i: &'ast VisCrate) { visit_vis_crate(self, i) }
408 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
409 fn visit_vis_public(&mut self, i: &'ast VisPublic) { visit_vis_public(self, i) }
410 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
411 fn visit_vis_restricted(&mut self, i: &'ast VisRestricted) { visit_vis_restricted(self, i) }
412 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
413 fn visit_visibility(&mut self, i: &'ast Visibility) { visit_visibility(self, i) }
414 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
415 fn visit_where_clause(&mut self, i: &'ast WhereClause) { visit_where_clause(self, i) }
416 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
417 fn visit_where_predicate(&mut self, i: &'ast WherePredicate) { visit_where_predicate(self, i) }
418
419 }
420
421 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
422 pub fn visit_abi<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Abi) {
423 tokens_helper(_visitor, &(& _i . extern_token).0);
424 if let Some(ref it) = _i . name { _visitor.visit_lit_str(it) };
425 }
426 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
427 pub fn visit_angle_bracketed_generic_arguments<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast AngleBracketedGenericArguments) {
428 if let Some(ref it) = _i . colon2_token { tokens_helper(_visitor, &(it).0) };
429 tokens_helper(_visitor, &(& _i . lt_token).0);
430 for el in Punctuated::pairs(& _i . args) { let it = el.value(); _visitor.visit_generic_argument(it) };
431 tokens_helper(_visitor, &(& _i . gt_token).0);
432 }
433 # [ cfg ( feature = "full" ) ]
434 pub fn visit_arg_captured<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ArgCaptured) {
435 _visitor.visit_pat(& _i . pat);
436 tokens_helper(_visitor, &(& _i . colon_token).0);
437 _visitor.visit_type(& _i . ty);
438 }
439 # [ cfg ( feature = "full" ) ]
440 pub fn visit_arg_self<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ArgSelf) {
441 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
442 tokens_helper(_visitor, &(& _i . self_token).0);
443 }
444 # [ cfg ( feature = "full" ) ]
445 pub fn visit_arg_self_ref<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ArgSelfRef) {
446 tokens_helper(_visitor, &(& _i . and_token).0);
447 if let Some(ref it) = _i . lifetime { _visitor.visit_lifetime(it) };
448 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
449 tokens_helper(_visitor, &(& _i . self_token).0);
450 }
451 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
452 pub fn visit_arm<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Arm) {
453 for it in & _i . attrs { _visitor.visit_attribute(it) };
454 if let Some(ref it) = _i . leading_vert { tokens_helper(_visitor, &(it).0) };
455 for el in Punctuated::pairs(& _i . pats) { let it = el.value(); _visitor.visit_pat(it) };
456 if let Some(ref it) = _i . guard {
457 tokens_helper(_visitor, &(& ( it ) . 0).0);
458 _visitor.visit_expr(& * ( it ) . 1);
459 };
460 tokens_helper(_visitor, &(& _i . fat_arrow_token).0);
461 _visitor.visit_expr(& * _i . body);
462 if let Some(ref it) = _i . comma { tokens_helper(_visitor, &(it).0) };
463 }
464 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
465 pub fn visit_attr_style<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast AttrStyle) {
466 match *_i {
467 AttrStyle::Outer => { }
468 AttrStyle::Inner(ref _binding_0, ) => {
469 tokens_helper(_visitor, &(_binding_0).0);
470 }
471 }
472 }
473 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
474 pub fn visit_attribute<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Attribute) {
475 tokens_helper(_visitor, &(& _i . pound_token).0);
476 _visitor.visit_attr_style(& _i . style);
477 tokens_helper(_visitor, &(& _i . bracket_token).0);
478 _visitor.visit_path(& _i . path);
479 // Skipped field _i . tts;
480 // Skipped field _i . is_sugared_doc;
481 }
482 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
483 pub fn visit_bare_fn_arg<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast BareFnArg) {
484 if let Some(ref it) = _i . name {
485 _visitor.visit_bare_fn_arg_name(& ( it ) . 0);
486 tokens_helper(_visitor, &(& ( it ) . 1).0);
487 };
488 _visitor.visit_type(& _i . ty);
489 }
490 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
491 pub fn visit_bare_fn_arg_name<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast BareFnArgName) {
492 match *_i {
493 BareFnArgName::Named(ref _binding_0, ) => {
494 _visitor.visit_ident(_binding_0);
495 }
496 BareFnArgName::Wild(ref _binding_0, ) => {
497 tokens_helper(_visitor, &(_binding_0).0);
498 }
499 }
500 }
501 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
502 pub fn visit_bin_op<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast BinOp) {
503 match *_i {
504 BinOp::Add(ref _binding_0, ) => {
505 tokens_helper(_visitor, &(_binding_0).0);
506 }
507 BinOp::Sub(ref _binding_0, ) => {
508 tokens_helper(_visitor, &(_binding_0).0);
509 }
510 BinOp::Mul(ref _binding_0, ) => {
511 tokens_helper(_visitor, &(_binding_0).0);
512 }
513 BinOp::Div(ref _binding_0, ) => {
514 tokens_helper(_visitor, &(_binding_0).0);
515 }
516 BinOp::Rem(ref _binding_0, ) => {
517 tokens_helper(_visitor, &(_binding_0).0);
518 }
519 BinOp::And(ref _binding_0, ) => {
520 tokens_helper(_visitor, &(_binding_0).0);
521 }
522 BinOp::Or(ref _binding_0, ) => {
523 tokens_helper(_visitor, &(_binding_0).0);
524 }
525 BinOp::BitXor(ref _binding_0, ) => {
526 tokens_helper(_visitor, &(_binding_0).0);
527 }
528 BinOp::BitAnd(ref _binding_0, ) => {
529 tokens_helper(_visitor, &(_binding_0).0);
530 }
531 BinOp::BitOr(ref _binding_0, ) => {
532 tokens_helper(_visitor, &(_binding_0).0);
533 }
534 BinOp::Shl(ref _binding_0, ) => {
535 tokens_helper(_visitor, &(_binding_0).0);
536 }
537 BinOp::Shr(ref _binding_0, ) => {
538 tokens_helper(_visitor, &(_binding_0).0);
539 }
540 BinOp::Eq(ref _binding_0, ) => {
541 tokens_helper(_visitor, &(_binding_0).0);
542 }
543 BinOp::Lt(ref _binding_0, ) => {
544 tokens_helper(_visitor, &(_binding_0).0);
545 }
546 BinOp::Le(ref _binding_0, ) => {
547 tokens_helper(_visitor, &(_binding_0).0);
548 }
549 BinOp::Ne(ref _binding_0, ) => {
550 tokens_helper(_visitor, &(_binding_0).0);
551 }
552 BinOp::Ge(ref _binding_0, ) => {
553 tokens_helper(_visitor, &(_binding_0).0);
554 }
555 BinOp::Gt(ref _binding_0, ) => {
556 tokens_helper(_visitor, &(_binding_0).0);
557 }
558 BinOp::AddEq(ref _binding_0, ) => {
559 tokens_helper(_visitor, &(_binding_0).0);
560 }
561 BinOp::SubEq(ref _binding_0, ) => {
562 tokens_helper(_visitor, &(_binding_0).0);
563 }
564 BinOp::MulEq(ref _binding_0, ) => {
565 tokens_helper(_visitor, &(_binding_0).0);
566 }
567 BinOp::DivEq(ref _binding_0, ) => {
568 tokens_helper(_visitor, &(_binding_0).0);
569 }
570 BinOp::RemEq(ref _binding_0, ) => {
571 tokens_helper(_visitor, &(_binding_0).0);
572 }
573 BinOp::BitXorEq(ref _binding_0, ) => {
574 tokens_helper(_visitor, &(_binding_0).0);
575 }
576 BinOp::BitAndEq(ref _binding_0, ) => {
577 tokens_helper(_visitor, &(_binding_0).0);
578 }
579 BinOp::BitOrEq(ref _binding_0, ) => {
580 tokens_helper(_visitor, &(_binding_0).0);
581 }
582 BinOp::ShlEq(ref _binding_0, ) => {
583 tokens_helper(_visitor, &(_binding_0).0);
584 }
585 BinOp::ShrEq(ref _binding_0, ) => {
586 tokens_helper(_visitor, &(_binding_0).0);
587 }
588 }
589 }
590 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
591 pub fn visit_binding<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Binding) {
592 _visitor.visit_ident(& _i . ident);
593 tokens_helper(_visitor, &(& _i . eq_token).0);
594 _visitor.visit_type(& _i . ty);
595 }
596 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
597 pub fn visit_block<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Block) {
598 tokens_helper(_visitor, &(& _i . brace_token).0);
599 for it in & _i . stmts { _visitor.visit_stmt(it) };
600 }
601 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
602 pub fn visit_bound_lifetimes<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast BoundLifetimes) {
603 tokens_helper(_visitor, &(& _i . for_token).0);
604 tokens_helper(_visitor, &(& _i . lt_token).0);
605 for el in Punctuated::pairs(& _i . lifetimes) { let it = el.value(); _visitor.visit_lifetime_def(it) };
606 tokens_helper(_visitor, &(& _i . gt_token).0);
607 }
608 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
609 pub fn visit_const_param<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ConstParam) {
610 for it in & _i . attrs { _visitor.visit_attribute(it) };
611 tokens_helper(_visitor, &(& _i . const_token).0);
612 _visitor.visit_ident(& _i . ident);
613 tokens_helper(_visitor, &(& _i . colon_token).0);
614 _visitor.visit_type(& _i . ty);
615 if let Some(ref it) = _i . eq_token { tokens_helper(_visitor, &(it).0) };
616 if let Some(ref it) = _i . default { _visitor.visit_expr(it) };
617 }
618 # [ cfg ( feature = "derive" ) ]
619 pub fn visit_data<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Data) {
620 match *_i {
621 Data::Struct(ref _binding_0, ) => {
622 _visitor.visit_data_struct(_binding_0);
623 }
624 Data::Enum(ref _binding_0, ) => {
625 _visitor.visit_data_enum(_binding_0);
626 }
627 Data::Union(ref _binding_0, ) => {
628 _visitor.visit_data_union(_binding_0);
629 }
630 }
631 }
632 # [ cfg ( feature = "derive" ) ]
633 pub fn visit_data_enum<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast DataEnum) {
634 tokens_helper(_visitor, &(& _i . enum_token).0);
635 tokens_helper(_visitor, &(& _i . brace_token).0);
636 for el in Punctuated::pairs(& _i . variants) { let it = el.value(); _visitor.visit_variant(it) };
637 }
638 # [ cfg ( feature = "derive" ) ]
639 pub fn visit_data_struct<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast DataStruct) {
640 tokens_helper(_visitor, &(& _i . struct_token).0);
641 _visitor.visit_fields(& _i . fields);
642 if let Some(ref it) = _i . semi_token { tokens_helper(_visitor, &(it).0) };
643 }
644 # [ cfg ( feature = "derive" ) ]
645 pub fn visit_data_union<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast DataUnion) {
646 tokens_helper(_visitor, &(& _i . union_token).0);
647 _visitor.visit_fields_named(& _i . fields);
648 }
649 # [ cfg ( feature = "derive" ) ]
650 pub fn visit_derive_input<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast DeriveInput) {
651 for it in & _i . attrs { _visitor.visit_attribute(it) };
652 _visitor.visit_visibility(& _i . vis);
653 _visitor.visit_ident(& _i . ident);
654 _visitor.visit_generics(& _i . generics);
655 _visitor.visit_data(& _i . data);
656 }
657 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
658 pub fn visit_expr<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Expr) {
659 match *_i {
660 Expr::Box(ref _binding_0, ) => {
661 full!(_visitor.visit_expr_box(_binding_0));
662 }
663 Expr::InPlace(ref _binding_0, ) => {
664 full!(_visitor.visit_expr_in_place(_binding_0));
665 }
666 Expr::Array(ref _binding_0, ) => {
667 full!(_visitor.visit_expr_array(_binding_0));
668 }
669 Expr::Call(ref _binding_0, ) => {
670 _visitor.visit_expr_call(_binding_0);
671 }
672 Expr::MethodCall(ref _binding_0, ) => {
673 full!(_visitor.visit_expr_method_call(_binding_0));
674 }
675 Expr::Tuple(ref _binding_0, ) => {
676 full!(_visitor.visit_expr_tuple(_binding_0));
677 }
678 Expr::Binary(ref _binding_0, ) => {
679 _visitor.visit_expr_binary(_binding_0);
680 }
681 Expr::Unary(ref _binding_0, ) => {
682 _visitor.visit_expr_unary(_binding_0);
683 }
684 Expr::Lit(ref _binding_0, ) => {
685 _visitor.visit_expr_lit(_binding_0);
686 }
687 Expr::Cast(ref _binding_0, ) => {
688 _visitor.visit_expr_cast(_binding_0);
689 }
690 Expr::Type(ref _binding_0, ) => {
691 full!(_visitor.visit_expr_type(_binding_0));
692 }
693 Expr::If(ref _binding_0, ) => {
694 full!(_visitor.visit_expr_if(_binding_0));
695 }
696 Expr::IfLet(ref _binding_0, ) => {
697 full!(_visitor.visit_expr_if_let(_binding_0));
698 }
699 Expr::While(ref _binding_0, ) => {
700 full!(_visitor.visit_expr_while(_binding_0));
701 }
702 Expr::WhileLet(ref _binding_0, ) => {
703 full!(_visitor.visit_expr_while_let(_binding_0));
704 }
705 Expr::ForLoop(ref _binding_0, ) => {
706 full!(_visitor.visit_expr_for_loop(_binding_0));
707 }
708 Expr::Loop(ref _binding_0, ) => {
709 full!(_visitor.visit_expr_loop(_binding_0));
710 }
711 Expr::Match(ref _binding_0, ) => {
712 full!(_visitor.visit_expr_match(_binding_0));
713 }
714 Expr::Closure(ref _binding_0, ) => {
715 full!(_visitor.visit_expr_closure(_binding_0));
716 }
717 Expr::Unsafe(ref _binding_0, ) => {
718 full!(_visitor.visit_expr_unsafe(_binding_0));
719 }
720 Expr::Block(ref _binding_0, ) => {
721 full!(_visitor.visit_expr_block(_binding_0));
722 }
723 Expr::Assign(ref _binding_0, ) => {
724 full!(_visitor.visit_expr_assign(_binding_0));
725 }
726 Expr::AssignOp(ref _binding_0, ) => {
727 full!(_visitor.visit_expr_assign_op(_binding_0));
728 }
729 Expr::Field(ref _binding_0, ) => {
730 full!(_visitor.visit_expr_field(_binding_0));
731 }
732 Expr::Index(ref _binding_0, ) => {
733 _visitor.visit_expr_index(_binding_0);
734 }
735 Expr::Range(ref _binding_0, ) => {
736 full!(_visitor.visit_expr_range(_binding_0));
737 }
738 Expr::Path(ref _binding_0, ) => {
739 _visitor.visit_expr_path(_binding_0);
740 }
741 Expr::Reference(ref _binding_0, ) => {
742 full!(_visitor.visit_expr_reference(_binding_0));
743 }
744 Expr::Break(ref _binding_0, ) => {
745 full!(_visitor.visit_expr_break(_binding_0));
746 }
747 Expr::Continue(ref _binding_0, ) => {
748 full!(_visitor.visit_expr_continue(_binding_0));
749 }
750 Expr::Return(ref _binding_0, ) => {
751 full!(_visitor.visit_expr_return(_binding_0));
752 }
753 Expr::Macro(ref _binding_0, ) => {
754 full!(_visitor.visit_expr_macro(_binding_0));
755 }
756 Expr::Struct(ref _binding_0, ) => {
757 full!(_visitor.visit_expr_struct(_binding_0));
758 }
759 Expr::Repeat(ref _binding_0, ) => {
760 full!(_visitor.visit_expr_repeat(_binding_0));
761 }
762 Expr::Paren(ref _binding_0, ) => {
763 _visitor.visit_expr_paren(_binding_0);
764 }
765 Expr::Group(ref _binding_0, ) => {
766 full!(_visitor.visit_expr_group(_binding_0));
767 }
768 Expr::Try(ref _binding_0, ) => {
769 full!(_visitor.visit_expr_try(_binding_0));
770 }
771 Expr::Catch(ref _binding_0, ) => {
772 full!(_visitor.visit_expr_catch(_binding_0));
773 }
774 Expr::Yield(ref _binding_0, ) => {
775 full!(_visitor.visit_expr_yield(_binding_0));
776 }
777 Expr::Verbatim(ref _binding_0, ) => {
778 _visitor.visit_expr_verbatim(_binding_0);
779 }
780 }
781 }
782 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
783 pub fn visit_expr_array<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprArray) {
784 for it in & _i . attrs { _visitor.visit_attribute(it) };
785 tokens_helper(_visitor, &(& _i . bracket_token).0);
786 for el in Punctuated::pairs(& _i . elems) { let it = el.value(); _visitor.visit_expr(it) };
787 }
788 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
789 pub fn visit_expr_assign<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprAssign) {
790 for it in & _i . attrs { _visitor.visit_attribute(it) };
791 _visitor.visit_expr(& * _i . left);
792 tokens_helper(_visitor, &(& _i . eq_token).0);
793 _visitor.visit_expr(& * _i . right);
794 }
795 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
796 pub fn visit_expr_assign_op<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprAssignOp) {
797 for it in & _i . attrs { _visitor.visit_attribute(it) };
798 _visitor.visit_expr(& * _i . left);
799 _visitor.visit_bin_op(& _i . op);
800 _visitor.visit_expr(& * _i . right);
801 }
802 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
803 pub fn visit_expr_binary<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprBinary) {
804 for it in & _i . attrs { _visitor.visit_attribute(it) };
805 _visitor.visit_expr(& * _i . left);
806 _visitor.visit_bin_op(& _i . op);
807 _visitor.visit_expr(& * _i . right);
808 }
809 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
810 pub fn visit_expr_block<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprBlock) {
811 for it in & _i . attrs { _visitor.visit_attribute(it) };
812 _visitor.visit_block(& _i . block);
813 }
814 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
815 pub fn visit_expr_box<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprBox) {
816 for it in & _i . attrs { _visitor.visit_attribute(it) };
817 tokens_helper(_visitor, &(& _i . box_token).0);
818 _visitor.visit_expr(& * _i . expr);
819 }
820 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
821 pub fn visit_expr_break<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprBreak) {
822 for it in & _i . attrs { _visitor.visit_attribute(it) };
823 tokens_helper(_visitor, &(& _i . break_token).0);
824 if let Some(ref it) = _i . label { _visitor.visit_lifetime(it) };
825 if let Some(ref it) = _i . expr { _visitor.visit_expr(& * * it) };
826 }
827 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
828 pub fn visit_expr_call<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprCall) {
829 for it in & _i . attrs { _visitor.visit_attribute(it) };
830 _visitor.visit_expr(& * _i . func);
831 tokens_helper(_visitor, &(& _i . paren_token).0);
832 for el in Punctuated::pairs(& _i . args) { let it = el.value(); _visitor.visit_expr(it) };
833 }
834 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
835 pub fn visit_expr_cast<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprCast) {
836 for it in & _i . attrs { _visitor.visit_attribute(it) };
837 _visitor.visit_expr(& * _i . expr);
838 tokens_helper(_visitor, &(& _i . as_token).0);
839 _visitor.visit_type(& * _i . ty);
840 }
841 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
842 pub fn visit_expr_catch<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprCatch) {
843 for it in & _i . attrs { _visitor.visit_attribute(it) };
844 tokens_helper(_visitor, &(& _i . do_token).0);
845 tokens_helper(_visitor, &(& _i . catch_token).0);
846 _visitor.visit_block(& _i . block);
847 }
848 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
849 pub fn visit_expr_closure<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprClosure) {
850 for it in & _i . attrs { _visitor.visit_attribute(it) };
851 if let Some(ref it) = _i . movability { tokens_helper(_visitor, &(it).0) };
852 if let Some(ref it) = _i . capture { tokens_helper(_visitor, &(it).0) };
853 tokens_helper(_visitor, &(& _i . or1_token).0);
854 for el in Punctuated::pairs(& _i . inputs) { let it = el.value(); _visitor.visit_fn_arg(it) };
855 tokens_helper(_visitor, &(& _i . or2_token).0);
856 _visitor.visit_return_type(& _i . output);
857 _visitor.visit_expr(& * _i . body);
858 }
859 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
860 pub fn visit_expr_continue<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprContinue) {
861 for it in & _i . attrs { _visitor.visit_attribute(it) };
862 tokens_helper(_visitor, &(& _i . continue_token).0);
863 if let Some(ref it) = _i . label { _visitor.visit_lifetime(it) };
864 }
865 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
866 pub fn visit_expr_field<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprField) {
867 for it in & _i . attrs { _visitor.visit_attribute(it) };
868 _visitor.visit_expr(& * _i . base);
869 tokens_helper(_visitor, &(& _i . dot_token).0);
870 _visitor.visit_member(& _i . member);
871 }
872 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
873 pub fn visit_expr_for_loop<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprForLoop) {
874 for it in & _i . attrs { _visitor.visit_attribute(it) };
875 if let Some(ref it) = _i . label { _visitor.visit_label(it) };
876 tokens_helper(_visitor, &(& _i . for_token).0);
877 _visitor.visit_pat(& * _i . pat);
878 tokens_helper(_visitor, &(& _i . in_token).0);
879 _visitor.visit_expr(& * _i . expr);
880 _visitor.visit_block(& _i . body);
881 }
882 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
883 pub fn visit_expr_group<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprGroup) {
884 for it in & _i . attrs { _visitor.visit_attribute(it) };
885 tokens_helper(_visitor, &(& _i . group_token).0);
886 _visitor.visit_expr(& * _i . expr);
887 }
888 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
889 pub fn visit_expr_if<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprIf) {
890 for it in & _i . attrs { _visitor.visit_attribute(it) };
891 tokens_helper(_visitor, &(& _i . if_token).0);
892 _visitor.visit_expr(& * _i . cond);
893 _visitor.visit_block(& _i . then_branch);
894 if let Some(ref it) = _i . else_branch {
895 tokens_helper(_visitor, &(& ( it ) . 0).0);
896 _visitor.visit_expr(& * ( it ) . 1);
897 };
898 }
899 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
900 pub fn visit_expr_if_let<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprIfLet) {
901 for it in & _i . attrs { _visitor.visit_attribute(it) };
902 tokens_helper(_visitor, &(& _i . if_token).0);
903 tokens_helper(_visitor, &(& _i . let_token).0);
904 for el in Punctuated::pairs(& _i . pats) { let it = el.value(); _visitor.visit_pat(it) };
905 tokens_helper(_visitor, &(& _i . eq_token).0);
906 _visitor.visit_expr(& * _i . expr);
907 _visitor.visit_block(& _i . then_branch);
908 if let Some(ref it) = _i . else_branch {
909 tokens_helper(_visitor, &(& ( it ) . 0).0);
910 _visitor.visit_expr(& * ( it ) . 1);
911 };
912 }
913 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
914 pub fn visit_expr_in_place<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprInPlace) {
915 for it in & _i . attrs { _visitor.visit_attribute(it) };
916 _visitor.visit_expr(& * _i . place);
917 tokens_helper(_visitor, &(& _i . arrow_token).0);
918 _visitor.visit_expr(& * _i . value);
919 }
920 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
921 pub fn visit_expr_index<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprIndex) {
922 for it in & _i . attrs { _visitor.visit_attribute(it) };
923 _visitor.visit_expr(& * _i . expr);
924 tokens_helper(_visitor, &(& _i . bracket_token).0);
925 _visitor.visit_expr(& * _i . index);
926 }
927 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
928 pub fn visit_expr_lit<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprLit) {
929 for it in & _i . attrs { _visitor.visit_attribute(it) };
930 _visitor.visit_lit(& _i . lit);
931 }
932 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
933 pub fn visit_expr_loop<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprLoop) {
934 for it in & _i . attrs { _visitor.visit_attribute(it) };
935 if let Some(ref it) = _i . label { _visitor.visit_label(it) };
936 tokens_helper(_visitor, &(& _i . loop_token).0);
937 _visitor.visit_block(& _i . body);
938 }
939 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
940 pub fn visit_expr_macro<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprMacro) {
941 for it in & _i . attrs { _visitor.visit_attribute(it) };
942 _visitor.visit_macro(& _i . mac);
943 }
944 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
945 pub fn visit_expr_match<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprMatch) {
946 for it in & _i . attrs { _visitor.visit_attribute(it) };
947 tokens_helper(_visitor, &(& _i . match_token).0);
948 _visitor.visit_expr(& * _i . expr);
949 tokens_helper(_visitor, &(& _i . brace_token).0);
950 for it in & _i . arms { _visitor.visit_arm(it) };
951 }
952 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
953 pub fn visit_expr_method_call<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprMethodCall) {
954 for it in & _i . attrs { _visitor.visit_attribute(it) };
955 _visitor.visit_expr(& * _i . receiver);
956 tokens_helper(_visitor, &(& _i . dot_token).0);
957 _visitor.visit_ident(& _i . method);
958 if let Some(ref it) = _i . turbofish { _visitor.visit_method_turbofish(it) };
959 tokens_helper(_visitor, &(& _i . paren_token).0);
960 for el in Punctuated::pairs(& _i . args) { let it = el.value(); _visitor.visit_expr(it) };
961 }
962 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
963 pub fn visit_expr_paren<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprParen) {
964 for it in & _i . attrs { _visitor.visit_attribute(it) };
965 tokens_helper(_visitor, &(& _i . paren_token).0);
966 _visitor.visit_expr(& * _i . expr);
967 }
968 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
969 pub fn visit_expr_path<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprPath) {
970 for it in & _i . attrs { _visitor.visit_attribute(it) };
971 if let Some(ref it) = _i . qself { _visitor.visit_qself(it) };
972 _visitor.visit_path(& _i . path);
973 }
974 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
975 pub fn visit_expr_range<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprRange) {
976 for it in & _i . attrs { _visitor.visit_attribute(it) };
977 if let Some(ref it) = _i . from { _visitor.visit_expr(& * * it) };
978 _visitor.visit_range_limits(& _i . limits);
979 if let Some(ref it) = _i . to { _visitor.visit_expr(& * * it) };
980 }
981 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
982 pub fn visit_expr_reference<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprReference) {
983 for it in & _i . attrs { _visitor.visit_attribute(it) };
984 tokens_helper(_visitor, &(& _i . and_token).0);
985 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
986 _visitor.visit_expr(& * _i . expr);
987 }
988 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
989 pub fn visit_expr_repeat<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprRepeat) {
990 for it in & _i . attrs { _visitor.visit_attribute(it) };
991 tokens_helper(_visitor, &(& _i . bracket_token).0);
992 _visitor.visit_expr(& * _i . expr);
993 tokens_helper(_visitor, &(& _i . semi_token).0);
994 _visitor.visit_expr(& * _i . len);
995 }
996 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
997 pub fn visit_expr_return<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprReturn) {
998 for it in & _i . attrs { _visitor.visit_attribute(it) };
999 tokens_helper(_visitor, &(& _i . return_token).0);
1000 if let Some(ref it) = _i . expr { _visitor.visit_expr(& * * it) };
1001 }
1002 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1003 pub fn visit_expr_struct<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprStruct) {
1004 for it in & _i . attrs { _visitor.visit_attribute(it) };
1005 _visitor.visit_path(& _i . path);
1006 tokens_helper(_visitor, &(& _i . brace_token).0);
1007 for el in Punctuated::pairs(& _i . fields) { let it = el.value(); _visitor.visit_field_value(it) };
1008 if let Some(ref it) = _i . dot2_token { tokens_helper(_visitor, &(it).0) };
1009 if let Some(ref it) = _i . rest { _visitor.visit_expr(& * * it) };
1010 }
1011 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1012 pub fn visit_expr_try<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprTry) {
1013 for it in & _i . attrs { _visitor.visit_attribute(it) };
1014 _visitor.visit_expr(& * _i . expr);
1015 tokens_helper(_visitor, &(& _i . question_token).0);
1016 }
1017 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1018 pub fn visit_expr_tuple<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprTuple) {
1019 for it in & _i . attrs { _visitor.visit_attribute(it) };
1020 tokens_helper(_visitor, &(& _i . paren_token).0);
1021 for el in Punctuated::pairs(& _i . elems) { let it = el.value(); _visitor.visit_expr(it) };
1022 }
1023 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1024 pub fn visit_expr_type<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprType) {
1025 for it in & _i . attrs { _visitor.visit_attribute(it) };
1026 _visitor.visit_expr(& * _i . expr);
1027 tokens_helper(_visitor, &(& _i . colon_token).0);
1028 _visitor.visit_type(& * _i . ty);
1029 }
1030 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1031 pub fn visit_expr_unary<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprUnary) {
1032 for it in & _i . attrs { _visitor.visit_attribute(it) };
1033 _visitor.visit_un_op(& _i . op);
1034 _visitor.visit_expr(& * _i . expr);
1035 }
1036 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1037 pub fn visit_expr_unsafe<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprUnsafe) {
1038 for it in & _i . attrs { _visitor.visit_attribute(it) };
1039 tokens_helper(_visitor, &(& _i . unsafe_token).0);
1040 _visitor.visit_block(& _i . block);
1041 }
1042 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1043 pub fn visit_expr_verbatim<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprVerbatim) {
1044 // Skipped field _i . tts;
1045 }
1046 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1047 pub fn visit_expr_while<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprWhile) {
1048 for it in & _i . attrs { _visitor.visit_attribute(it) };
1049 if let Some(ref it) = _i . label { _visitor.visit_label(it) };
1050 tokens_helper(_visitor, &(& _i . while_token).0);
1051 _visitor.visit_expr(& * _i . cond);
1052 _visitor.visit_block(& _i . body);
1053 }
1054 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1055 pub fn visit_expr_while_let<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprWhileLet) {
1056 for it in & _i . attrs { _visitor.visit_attribute(it) };
1057 if let Some(ref it) = _i . label { _visitor.visit_label(it) };
1058 tokens_helper(_visitor, &(& _i . while_token).0);
1059 tokens_helper(_visitor, &(& _i . let_token).0);
1060 for el in Punctuated::pairs(& _i . pats) { let it = el.value(); _visitor.visit_pat(it) };
1061 tokens_helper(_visitor, &(& _i . eq_token).0);
1062 _visitor.visit_expr(& * _i . expr);
1063 _visitor.visit_block(& _i . body);
1064 }
1065 # [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1066 pub fn visit_expr_yield<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprYield) {
1067 for it in & _i . attrs { _visitor.visit_attribute(it) };
1068 tokens_helper(_visitor, &(& _i . yield_token).0);
1069 if let Some(ref it) = _i . expr { _visitor.visit_expr(& * * it) };
1070 }
1071 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1072 pub fn visit_field<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Field) {
1073 for it in & _i . attrs { _visitor.visit_attribute(it) };
1074 _visitor.visit_visibility(& _i . vis);
1075 if let Some(ref it) = _i . ident { _visitor.visit_ident(it) };
1076 if let Some(ref it) = _i . colon_token { tokens_helper(_visitor, &(it).0) };
1077 _visitor.visit_type(& _i . ty);
1078 }
1079 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1080 pub fn visit_field_pat<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast FieldPat) {
1081 for it in & _i . attrs { _visitor.visit_attribute(it) };
1082 _visitor.visit_member(& _i . member);
1083 if let Some(ref it) = _i . colon_token { tokens_helper(_visitor, &(it).0) };
1084 _visitor.visit_pat(& * _i . pat);
1085 }
1086 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1087 pub fn visit_field_value<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast FieldValue) {
1088 for it in & _i . attrs { _visitor.visit_attribute(it) };
1089 _visitor.visit_member(& _i . member);
1090 if let Some(ref it) = _i . colon_token { tokens_helper(_visitor, &(it).0) };
1091 _visitor.visit_expr(& _i . expr);
1092 }
1093 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1094 pub fn visit_fields<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Fields) {
1095 match *_i {
1096 Fields::Named(ref _binding_0, ) => {
1097 _visitor.visit_fields_named(_binding_0);
1098 }
1099 Fields::Unnamed(ref _binding_0, ) => {
1100 _visitor.visit_fields_unnamed(_binding_0);
1101 }
1102 Fields::Unit => { }
1103 }
1104 }
1105 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1106 pub fn visit_fields_named<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast FieldsNamed) {
1107 tokens_helper(_visitor, &(& _i . brace_token).0);
1108 for el in Punctuated::pairs(& _i . named) { let it = el.value(); _visitor.visit_field(it) };
1109 }
1110 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1111 pub fn visit_fields_unnamed<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast FieldsUnnamed) {
1112 tokens_helper(_visitor, &(& _i . paren_token).0);
1113 for el in Punctuated::pairs(& _i . unnamed) { let it = el.value(); _visitor.visit_field(it) };
1114 }
1115 # [ cfg ( feature = "full" ) ]
1116 pub fn visit_file<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast File) {
1117 // Skipped field _i . shebang;
1118 for it in & _i . attrs { _visitor.visit_attribute(it) };
1119 for it in & _i . items { _visitor.visit_item(it) };
1120 }
1121 # [ cfg ( feature = "full" ) ]
1122 pub fn visit_fn_arg<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast FnArg) {
1123 match *_i {
1124 FnArg::SelfRef(ref _binding_0, ) => {
1125 _visitor.visit_arg_self_ref(_binding_0);
1126 }
1127 FnArg::SelfValue(ref _binding_0, ) => {
1128 _visitor.visit_arg_self(_binding_0);
1129 }
1130 FnArg::Captured(ref _binding_0, ) => {
1131 _visitor.visit_arg_captured(_binding_0);
1132 }
1133 FnArg::Inferred(ref _binding_0, ) => {
1134 _visitor.visit_pat(_binding_0);
1135 }
1136 FnArg::Ignored(ref _binding_0, ) => {
1137 _visitor.visit_type(_binding_0);
1138 }
1139 }
1140 }
1141 # [ cfg ( feature = "full" ) ]
1142 pub fn visit_fn_decl<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast FnDecl) {
1143 tokens_helper(_visitor, &(& _i . fn_token).0);
1144 _visitor.visit_generics(& _i . generics);
1145 tokens_helper(_visitor, &(& _i . paren_token).0);
1146 for el in Punctuated::pairs(& _i . inputs) { let it = el.value(); _visitor.visit_fn_arg(it) };
1147 if let Some(ref it) = _i . variadic { tokens_helper(_visitor, &(it).0) };
1148 _visitor.visit_return_type(& _i . output);
1149 }
1150 # [ cfg ( feature = "full" ) ]
1151 pub fn visit_foreign_item<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ForeignItem) {
1152 match *_i {
1153 ForeignItem::Fn(ref _binding_0, ) => {
1154 _visitor.visit_foreign_item_fn(_binding_0);
1155 }
1156 ForeignItem::Static(ref _binding_0, ) => {
1157 _visitor.visit_foreign_item_static(_binding_0);
1158 }
1159 ForeignItem::Type(ref _binding_0, ) => {
1160 _visitor.visit_foreign_item_type(_binding_0);
1161 }
1162 ForeignItem::Verbatim(ref _binding_0, ) => {
1163 _visitor.visit_foreign_item_verbatim(_binding_0);
1164 }
1165 }
1166 }
1167 # [ cfg ( feature = "full" ) ]
1168 pub fn visit_foreign_item_fn<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ForeignItemFn) {
1169 for it in & _i . attrs { _visitor.visit_attribute(it) };
1170 _visitor.visit_visibility(& _i . vis);
1171 _visitor.visit_ident(& _i . ident);
1172 _visitor.visit_fn_decl(& * _i . decl);
1173 tokens_helper(_visitor, &(& _i . semi_token).0);
1174 }
1175 # [ cfg ( feature = "full" ) ]
1176 pub fn visit_foreign_item_static<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ForeignItemStatic) {
1177 for it in & _i . attrs { _visitor.visit_attribute(it) };
1178 _visitor.visit_visibility(& _i . vis);
1179 tokens_helper(_visitor, &(& _i . static_token).0);
1180 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
1181 _visitor.visit_ident(& _i . ident);
1182 tokens_helper(_visitor, &(& _i . colon_token).0);
1183 _visitor.visit_type(& * _i . ty);
1184 tokens_helper(_visitor, &(& _i . semi_token).0);
1185 }
1186 # [ cfg ( feature = "full" ) ]
1187 pub fn visit_foreign_item_type<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ForeignItemType) {
1188 for it in & _i . attrs { _visitor.visit_attribute(it) };
1189 _visitor.visit_visibility(& _i . vis);
1190 tokens_helper(_visitor, &(& _i . type_token).0);
1191 _visitor.visit_ident(& _i . ident);
1192 tokens_helper(_visitor, &(& _i . semi_token).0);
1193 }
1194 # [ cfg ( feature = "full" ) ]
1195 pub fn visit_foreign_item_verbatim<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ForeignItemVerbatim) {
1196 // Skipped field _i . tts;
1197 }
1198 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1199 pub fn visit_generic_argument<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast GenericArgument) {
1200 match *_i {
1201 GenericArgument::Lifetime(ref _binding_0, ) => {
1202 _visitor.visit_lifetime(_binding_0);
1203 }
1204 GenericArgument::Type(ref _binding_0, ) => {
1205 _visitor.visit_type(_binding_0);
1206 }
1207 GenericArgument::Binding(ref _binding_0, ) => {
1208 _visitor.visit_binding(_binding_0);
1209 }
1210 GenericArgument::Const(ref _binding_0, ) => {
1211 _visitor.visit_expr(_binding_0);
1212 }
1213 }
1214 }
1215 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1216 pub fn visit_generic_method_argument<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast GenericMethodArgument) {
1217 match *_i {
1218 GenericMethodArgument::Type(ref _binding_0, ) => {
1219 _visitor.visit_type(_binding_0);
1220 }
1221 GenericMethodArgument::Const(ref _binding_0, ) => {
1222 _visitor.visit_expr(_binding_0);
1223 }
1224 }
1225 }
1226 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1227 pub fn visit_generic_param<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast GenericParam) {
1228 match *_i {
1229 GenericParam::Type(ref _binding_0, ) => {
1230 _visitor.visit_type_param(_binding_0);
1231 }
1232 GenericParam::Lifetime(ref _binding_0, ) => {
1233 _visitor.visit_lifetime_def(_binding_0);
1234 }
1235 GenericParam::Const(ref _binding_0, ) => {
1236 _visitor.visit_const_param(_binding_0);
1237 }
1238 }
1239 }
1240 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1241 pub fn visit_generics<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Generics) {
1242 if let Some(ref it) = _i . lt_token { tokens_helper(_visitor, &(it).0) };
1243 for el in Punctuated::pairs(& _i . params) { let it = el.value(); _visitor.visit_generic_param(it) };
1244 if let Some(ref it) = _i . gt_token { tokens_helper(_visitor, &(it).0) };
1245 if let Some(ref it) = _i . where_clause { _visitor.visit_where_clause(it) };
1246 }
1247
1248 pub fn visit_ident<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Ident) {
1249 // Skipped field _i . term;
1250 }
1251 # [ cfg ( feature = "full" ) ]
1252 pub fn visit_impl_item<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ImplItem) {
1253 match *_i {
1254 ImplItem::Const(ref _binding_0, ) => {
1255 _visitor.visit_impl_item_const(_binding_0);
1256 }
1257 ImplItem::Method(ref _binding_0, ) => {
1258 _visitor.visit_impl_item_method(_binding_0);
1259 }
1260 ImplItem::Type(ref _binding_0, ) => {
1261 _visitor.visit_impl_item_type(_binding_0);
1262 }
1263 ImplItem::Macro(ref _binding_0, ) => {
1264 _visitor.visit_impl_item_macro(_binding_0);
1265 }
1266 ImplItem::Verbatim(ref _binding_0, ) => {
1267 _visitor.visit_impl_item_verbatim(_binding_0);
1268 }
1269 }
1270 }
1271 # [ cfg ( feature = "full" ) ]
1272 pub fn visit_impl_item_const<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ImplItemConst) {
1273 for it in & _i . attrs { _visitor.visit_attribute(it) };
1274 _visitor.visit_visibility(& _i . vis);
1275 if let Some(ref it) = _i . defaultness { tokens_helper(_visitor, &(it).0) };
1276 tokens_helper(_visitor, &(& _i . const_token).0);
1277 _visitor.visit_ident(& _i . ident);
1278 tokens_helper(_visitor, &(& _i . colon_token).0);
1279 _visitor.visit_type(& _i . ty);
1280 tokens_helper(_visitor, &(& _i . eq_token).0);
1281 _visitor.visit_expr(& _i . expr);
1282 tokens_helper(_visitor, &(& _i . semi_token).0);
1283 }
1284 # [ cfg ( feature = "full" ) ]
1285 pub fn visit_impl_item_macro<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ImplItemMacro) {
1286 for it in & _i . attrs { _visitor.visit_attribute(it) };
1287 _visitor.visit_macro(& _i . mac);
1288 if let Some(ref it) = _i . semi_token { tokens_helper(_visitor, &(it).0) };
1289 }
1290 # [ cfg ( feature = "full" ) ]
1291 pub fn visit_impl_item_method<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ImplItemMethod) {
1292 for it in & _i . attrs { _visitor.visit_attribute(it) };
1293 _visitor.visit_visibility(& _i . vis);
1294 if let Some(ref it) = _i . defaultness { tokens_helper(_visitor, &(it).0) };
1295 _visitor.visit_method_sig(& _i . sig);
1296 _visitor.visit_block(& _i . block);
1297 }
1298 # [ cfg ( feature = "full" ) ]
1299 pub fn visit_impl_item_type<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ImplItemType) {
1300 for it in & _i . attrs { _visitor.visit_attribute(it) };
1301 _visitor.visit_visibility(& _i . vis);
1302 if let Some(ref it) = _i . defaultness { tokens_helper(_visitor, &(it).0) };
1303 tokens_helper(_visitor, &(& _i . type_token).0);
1304 _visitor.visit_ident(& _i . ident);
1305 _visitor.visit_generics(& _i . generics);
1306 tokens_helper(_visitor, &(& _i . eq_token).0);
1307 _visitor.visit_type(& _i . ty);
1308 tokens_helper(_visitor, &(& _i . semi_token).0);
1309 }
1310 # [ cfg ( feature = "full" ) ]
1311 pub fn visit_impl_item_verbatim<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ImplItemVerbatim) {
1312 // Skipped field _i . tts;
1313 }
1314 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1315 pub fn visit_index<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Index) {
1316 // Skipped field _i . index;
1317 _visitor.visit_span(& _i . span);
1318 }
1319 # [ cfg ( feature = "full" ) ]
1320 pub fn visit_item<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Item) {
1321 match *_i {
1322 Item::ExternCrate(ref _binding_0, ) => {
1323 _visitor.visit_item_extern_crate(_binding_0);
1324 }
1325 Item::Use(ref _binding_0, ) => {
1326 _visitor.visit_item_use(_binding_0);
1327 }
1328 Item::Static(ref _binding_0, ) => {
1329 _visitor.visit_item_static(_binding_0);
1330 }
1331 Item::Const(ref _binding_0, ) => {
1332 _visitor.visit_item_const(_binding_0);
1333 }
1334 Item::Fn(ref _binding_0, ) => {
1335 _visitor.visit_item_fn(_binding_0);
1336 }
1337 Item::Mod(ref _binding_0, ) => {
1338 _visitor.visit_item_mod(_binding_0);
1339 }
1340 Item::ForeignMod(ref _binding_0, ) => {
1341 _visitor.visit_item_foreign_mod(_binding_0);
1342 }
1343 Item::Type(ref _binding_0, ) => {
1344 _visitor.visit_item_type(_binding_0);
1345 }
1346 Item::Struct(ref _binding_0, ) => {
1347 _visitor.visit_item_struct(_binding_0);
1348 }
1349 Item::Enum(ref _binding_0, ) => {
1350 _visitor.visit_item_enum(_binding_0);
1351 }
1352 Item::Union(ref _binding_0, ) => {
1353 _visitor.visit_item_union(_binding_0);
1354 }
1355 Item::Trait(ref _binding_0, ) => {
1356 _visitor.visit_item_trait(_binding_0);
1357 }
1358 Item::Impl(ref _binding_0, ) => {
1359 _visitor.visit_item_impl(_binding_0);
1360 }
1361 Item::Macro(ref _binding_0, ) => {
1362 _visitor.visit_item_macro(_binding_0);
1363 }
1364 Item::Macro2(ref _binding_0, ) => {
1365 _visitor.visit_item_macro2(_binding_0);
1366 }
1367 Item::Verbatim(ref _binding_0, ) => {
1368 _visitor.visit_item_verbatim(_binding_0);
1369 }
1370 }
1371 }
1372 # [ cfg ( feature = "full" ) ]
1373 pub fn visit_item_const<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemConst) {
1374 for it in & _i . attrs { _visitor.visit_attribute(it) };
1375 _visitor.visit_visibility(& _i . vis);
1376 tokens_helper(_visitor, &(& _i . const_token).0);
1377 _visitor.visit_ident(& _i . ident);
1378 tokens_helper(_visitor, &(& _i . colon_token).0);
1379 _visitor.visit_type(& * _i . ty);
1380 tokens_helper(_visitor, &(& _i . eq_token).0);
1381 _visitor.visit_expr(& * _i . expr);
1382 tokens_helper(_visitor, &(& _i . semi_token).0);
1383 }
1384 # [ cfg ( feature = "full" ) ]
1385 pub fn visit_item_enum<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemEnum) {
1386 for it in & _i . attrs { _visitor.visit_attribute(it) };
1387 _visitor.visit_visibility(& _i . vis);
1388 tokens_helper(_visitor, &(& _i . enum_token).0);
1389 _visitor.visit_ident(& _i . ident);
1390 _visitor.visit_generics(& _i . generics);
1391 tokens_helper(_visitor, &(& _i . brace_token).0);
1392 for el in Punctuated::pairs(& _i . variants) { let it = el.value(); _visitor.visit_variant(it) };
1393 }
1394 # [ cfg ( feature = "full" ) ]
1395 pub fn visit_item_extern_crate<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemExternCrate) {
1396 for it in & _i . attrs { _visitor.visit_attribute(it) };
1397 _visitor.visit_visibility(& _i . vis);
1398 tokens_helper(_visitor, &(& _i . extern_token).0);
1399 tokens_helper(_visitor, &(& _i . crate_token).0);
1400 _visitor.visit_ident(& _i . ident);
1401 if let Some(ref it) = _i . rename {
1402 tokens_helper(_visitor, &(& ( it ) . 0).0);
1403 _visitor.visit_ident(& ( it ) . 1);
1404 };
1405 tokens_helper(_visitor, &(& _i . semi_token).0);
1406 }
1407 # [ cfg ( feature = "full" ) ]
1408 pub fn visit_item_fn<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemFn) {
1409 for it in & _i . attrs { _visitor.visit_attribute(it) };
1410 _visitor.visit_visibility(& _i . vis);
1411 if let Some(ref it) = _i . constness { tokens_helper(_visitor, &(it).0) };
1412 if let Some(ref it) = _i . unsafety { tokens_helper(_visitor, &(it).0) };
1413 if let Some(ref it) = _i . abi { _visitor.visit_abi(it) };
1414 _visitor.visit_ident(& _i . ident);
1415 _visitor.visit_fn_decl(& * _i . decl);
1416 _visitor.visit_block(& * _i . block);
1417 }
1418 # [ cfg ( feature = "full" ) ]
1419 pub fn visit_item_foreign_mod<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemForeignMod) {
1420 for it in & _i . attrs { _visitor.visit_attribute(it) };
1421 _visitor.visit_abi(& _i . abi);
1422 tokens_helper(_visitor, &(& _i . brace_token).0);
1423 for it in & _i . items { _visitor.visit_foreign_item(it) };
1424 }
1425 # [ cfg ( feature = "full" ) ]
1426 pub fn visit_item_impl<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemImpl) {
1427 for it in & _i . attrs { _visitor.visit_attribute(it) };
1428 if let Some(ref it) = _i . defaultness { tokens_helper(_visitor, &(it).0) };
1429 if let Some(ref it) = _i . unsafety { tokens_helper(_visitor, &(it).0) };
1430 tokens_helper(_visitor, &(& _i . impl_token).0);
1431 _visitor.visit_generics(& _i . generics);
1432 if let Some(ref it) = _i . trait_ {
1433 if let Some(ref it) = ( it ) . 0 { tokens_helper(_visitor, &(it).0) };
1434 _visitor.visit_path(& ( it ) . 1);
1435 tokens_helper(_visitor, &(& ( it ) . 2).0);
1436 };
1437 _visitor.visit_type(& * _i . self_ty);
1438 tokens_helper(_visitor, &(& _i . brace_token).0);
1439 for it in & _i . items { _visitor.visit_impl_item(it) };
1440 }
1441 # [ cfg ( feature = "full" ) ]
1442 pub fn visit_item_macro<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemMacro) {
1443 for it in & _i . attrs { _visitor.visit_attribute(it) };
1444 if let Some(ref it) = _i . ident { _visitor.visit_ident(it) };
1445 _visitor.visit_macro(& _i . mac);
1446 if let Some(ref it) = _i . semi_token { tokens_helper(_visitor, &(it).0) };
1447 }
1448 # [ cfg ( feature = "full" ) ]
1449 pub fn visit_item_macro2<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemMacro2) {
1450 for it in & _i . attrs { _visitor.visit_attribute(it) };
1451 _visitor.visit_visibility(& _i . vis);
1452 tokens_helper(_visitor, &(& _i . macro_token).0);
1453 _visitor.visit_ident(& _i . ident);
1454 tokens_helper(_visitor, &(& _i . paren_token).0);
1455 // Skipped field _i . args;
1456 tokens_helper(_visitor, &(& _i . brace_token).0);
1457 // Skipped field _i . body;
1458 }
1459 # [ cfg ( feature = "full" ) ]
1460 pub fn visit_item_mod<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemMod) {
1461 for it in & _i . attrs { _visitor.visit_attribute(it) };
1462 _visitor.visit_visibility(& _i . vis);
1463 tokens_helper(_visitor, &(& _i . mod_token).0);
1464 _visitor.visit_ident(& _i . ident);
1465 if let Some(ref it) = _i . content {
1466 tokens_helper(_visitor, &(& ( it ) . 0).0);
1467 for it in & ( it ) . 1 { _visitor.visit_item(it) };
1468 };
1469 if let Some(ref it) = _i . semi { tokens_helper(_visitor, &(it).0) };
1470 }
1471 # [ cfg ( feature = "full" ) ]
1472 pub fn visit_item_static<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemStatic) {
1473 for it in & _i . attrs { _visitor.visit_attribute(it) };
1474 _visitor.visit_visibility(& _i . vis);
1475 tokens_helper(_visitor, &(& _i . static_token).0);
1476 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
1477 _visitor.visit_ident(& _i . ident);
1478 tokens_helper(_visitor, &(& _i . colon_token).0);
1479 _visitor.visit_type(& * _i . ty);
1480 tokens_helper(_visitor, &(& _i . eq_token).0);
1481 _visitor.visit_expr(& * _i . expr);
1482 tokens_helper(_visitor, &(& _i . semi_token).0);
1483 }
1484 # [ cfg ( feature = "full" ) ]
1485 pub fn visit_item_struct<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemStruct) {
1486 for it in & _i . attrs { _visitor.visit_attribute(it) };
1487 _visitor.visit_visibility(& _i . vis);
1488 tokens_helper(_visitor, &(& _i . struct_token).0);
1489 _visitor.visit_ident(& _i . ident);
1490 _visitor.visit_generics(& _i . generics);
1491 _visitor.visit_fields(& _i . fields);
1492 if let Some(ref it) = _i . semi_token { tokens_helper(_visitor, &(it).0) };
1493 }
1494 # [ cfg ( feature = "full" ) ]
1495 pub fn visit_item_trait<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemTrait) {
1496 for it in & _i . attrs { _visitor.visit_attribute(it) };
1497 _visitor.visit_visibility(& _i . vis);
1498 if let Some(ref it) = _i . unsafety { tokens_helper(_visitor, &(it).0) };
1499 if let Some(ref it) = _i . auto_token { tokens_helper(_visitor, &(it).0) };
1500 tokens_helper(_visitor, &(& _i . trait_token).0);
1501 _visitor.visit_ident(& _i . ident);
1502 _visitor.visit_generics(& _i . generics);
1503 if let Some(ref it) = _i . colon_token { tokens_helper(_visitor, &(it).0) };
1504 for el in Punctuated::pairs(& _i . supertraits) { let it = el.value(); _visitor.visit_type_param_bound(it) };
1505 tokens_helper(_visitor, &(& _i . brace_token).0);
1506 for it in & _i . items { _visitor.visit_trait_item(it) };
1507 }
1508 # [ cfg ( feature = "full" ) ]
1509 pub fn visit_item_type<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemType) {
1510 for it in & _i . attrs { _visitor.visit_attribute(it) };
1511 _visitor.visit_visibility(& _i . vis);
1512 tokens_helper(_visitor, &(& _i . type_token).0);
1513 _visitor.visit_ident(& _i . ident);
1514 _visitor.visit_generics(& _i . generics);
1515 tokens_helper(_visitor, &(& _i . eq_token).0);
1516 _visitor.visit_type(& * _i . ty);
1517 tokens_helper(_visitor, &(& _i . semi_token).0);
1518 }
1519 # [ cfg ( feature = "full" ) ]
1520 pub fn visit_item_union<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemUnion) {
1521 for it in & _i . attrs { _visitor.visit_attribute(it) };
1522 _visitor.visit_visibility(& _i . vis);
1523 tokens_helper(_visitor, &(& _i . union_token).0);
1524 _visitor.visit_ident(& _i . ident);
1525 _visitor.visit_generics(& _i . generics);
1526 _visitor.visit_fields_named(& _i . fields);
1527 }
1528 # [ cfg ( feature = "full" ) ]
1529 pub fn visit_item_use<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemUse) {
1530 for it in & _i . attrs { _visitor.visit_attribute(it) };
1531 _visitor.visit_visibility(& _i . vis);
1532 tokens_helper(_visitor, &(& _i . use_token).0);
1533 if let Some(ref it) = _i . leading_colon { tokens_helper(_visitor, &(it).0) };
1534 _visitor.visit_use_tree(& _i . tree);
1535 tokens_helper(_visitor, &(& _i . semi_token).0);
1536 }
1537 # [ cfg ( feature = "full" ) ]
1538 pub fn visit_item_verbatim<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemVerbatim) {
1539 // Skipped field _i . tts;
1540 }
1541 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1542 pub fn visit_label<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Label) {
1543 _visitor.visit_lifetime(& _i . name);
1544 tokens_helper(_visitor, &(& _i . colon_token).0);
1545 }
1546 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1547 pub fn visit_lifetime<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Lifetime) {
1548 // Skipped field _i . term;
1549 }
1550 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1551 pub fn visit_lifetime_def<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LifetimeDef) {
1552 for it in & _i . attrs { _visitor.visit_attribute(it) };
1553 _visitor.visit_lifetime(& _i . lifetime);
1554 if let Some(ref it) = _i . colon_token { tokens_helper(_visitor, &(it).0) };
1555 for el in Punctuated::pairs(& _i . bounds) { let it = el.value(); _visitor.visit_lifetime(it) };
1556 }
1557 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1558 pub fn visit_lit<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Lit) {
1559 match *_i {
1560 Lit::Str(ref _binding_0, ) => {
1561 _visitor.visit_lit_str(_binding_0);
1562 }
1563 Lit::ByteStr(ref _binding_0, ) => {
1564 _visitor.visit_lit_byte_str(_binding_0);
1565 }
1566 Lit::Byte(ref _binding_0, ) => {
1567 _visitor.visit_lit_byte(_binding_0);
1568 }
1569 Lit::Char(ref _binding_0, ) => {
1570 _visitor.visit_lit_char(_binding_0);
1571 }
1572 Lit::Int(ref _binding_0, ) => {
1573 _visitor.visit_lit_int(_binding_0);
1574 }
1575 Lit::Float(ref _binding_0, ) => {
1576 _visitor.visit_lit_float(_binding_0);
1577 }
1578 Lit::Bool(ref _binding_0, ) => {
1579 _visitor.visit_lit_bool(_binding_0);
1580 }
1581 Lit::Verbatim(ref _binding_0, ) => {
1582 _visitor.visit_lit_verbatim(_binding_0);
1583 }
1584 }
1585 }
1586 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1587 pub fn visit_lit_bool<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitBool) {
1588 // Skipped field _i . value;
1589 _visitor.visit_span(& _i . span);
1590 }
1591 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1592 pub fn visit_lit_byte<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitByte) {
1593 // Skipped field _i . token;
1594 }
1595 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1596 pub fn visit_lit_byte_str<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitByteStr) {
1597 // Skipped field _i . token;
1598 }
1599 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1600 pub fn visit_lit_char<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitChar) {
1601 // Skipped field _i . token;
1602 }
1603 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1604 pub fn visit_lit_float<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitFloat) {
1605 // Skipped field _i . token;
1606 }
1607 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1608 pub fn visit_lit_int<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitInt) {
1609 // Skipped field _i . token;
1610 }
1611 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1612 pub fn visit_lit_str<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitStr) {
1613 // Skipped field _i . token;
1614 }
1615 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1616 pub fn visit_lit_verbatim<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitVerbatim) {
1617 // Skipped field _i . token;
1618 }
1619 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1620 pub fn visit_local<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Local) {
1621 for it in & _i . attrs { _visitor.visit_attribute(it) };
1622 tokens_helper(_visitor, &(& _i . let_token).0);
1623 for el in Punctuated::pairs(& _i . pats) { let it = el.value(); _visitor.visit_pat(it) };
1624 if let Some(ref it) = _i . ty {
1625 tokens_helper(_visitor, &(& ( it ) . 0).0);
1626 _visitor.visit_type(& * ( it ) . 1);
1627 };
1628 if let Some(ref it) = _i . init {
1629 tokens_helper(_visitor, &(& ( it ) . 0).0);
1630 _visitor.visit_expr(& * ( it ) . 1);
1631 };
1632 tokens_helper(_visitor, &(& _i . semi_token).0);
1633 }
1634 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1635 pub fn visit_macro<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Macro) {
1636 _visitor.visit_path(& _i . path);
1637 tokens_helper(_visitor, &(& _i . bang_token).0);
1638 _visitor.visit_macro_delimiter(& _i . delimiter);
1639 // Skipped field _i . tts;
1640 }
1641 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1642 pub fn visit_macro_delimiter<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast MacroDelimiter) {
1643 match *_i {
1644 MacroDelimiter::Paren(ref _binding_0, ) => {
1645 tokens_helper(_visitor, &(_binding_0).0);
1646 }
1647 MacroDelimiter::Brace(ref _binding_0, ) => {
1648 tokens_helper(_visitor, &(_binding_0).0);
1649 }
1650 MacroDelimiter::Bracket(ref _binding_0, ) => {
1651 tokens_helper(_visitor, &(_binding_0).0);
1652 }
1653 }
1654 }
1655 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1656 pub fn visit_member<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Member) {
1657 match *_i {
1658 Member::Named(ref _binding_0, ) => {
1659 _visitor.visit_ident(_binding_0);
1660 }
1661 Member::Unnamed(ref _binding_0, ) => {
1662 _visitor.visit_index(_binding_0);
1663 }
1664 }
1665 }
1666 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1667 pub fn visit_meta<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Meta) {
1668 match *_i {
1669 Meta::Word(ref _binding_0, ) => {
1670 _visitor.visit_ident(_binding_0);
1671 }
1672 Meta::List(ref _binding_0, ) => {
1673 _visitor.visit_meta_list(_binding_0);
1674 }
1675 Meta::NameValue(ref _binding_0, ) => {
1676 _visitor.visit_meta_name_value(_binding_0);
1677 }
1678 }
1679 }
1680 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1681 pub fn visit_meta_list<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast MetaList) {
1682 _visitor.visit_ident(& _i . ident);
1683 tokens_helper(_visitor, &(& _i . paren_token).0);
1684 for el in Punctuated::pairs(& _i . nested) { let it = el.value(); _visitor.visit_nested_meta(it) };
1685 }
1686 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1687 pub fn visit_meta_name_value<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast MetaNameValue) {
1688 _visitor.visit_ident(& _i . ident);
1689 tokens_helper(_visitor, &(& _i . eq_token).0);
1690 _visitor.visit_lit(& _i . lit);
1691 }
1692 # [ cfg ( feature = "full" ) ]
1693 pub fn visit_method_sig<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast MethodSig) {
1694 if let Some(ref it) = _i . constness { tokens_helper(_visitor, &(it).0) };
1695 if let Some(ref it) = _i . unsafety { tokens_helper(_visitor, &(it).0) };
1696 if let Some(ref it) = _i . abi { _visitor.visit_abi(it) };
1697 _visitor.visit_ident(& _i . ident);
1698 _visitor.visit_fn_decl(& _i . decl);
1699 }
1700 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1701 pub fn visit_method_turbofish<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast MethodTurbofish) {
1702 tokens_helper(_visitor, &(& _i . colon2_token).0);
1703 tokens_helper(_visitor, &(& _i . lt_token).0);
1704 for el in Punctuated::pairs(& _i . args) { let it = el.value(); _visitor.visit_generic_method_argument(it) };
1705 tokens_helper(_visitor, &(& _i . gt_token).0);
1706 }
1707 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1708 pub fn visit_nested_meta<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast NestedMeta) {
1709 match *_i {
1710 NestedMeta::Meta(ref _binding_0, ) => {
1711 _visitor.visit_meta(_binding_0);
1712 }
1713 NestedMeta::Literal(ref _binding_0, ) => {
1714 _visitor.visit_lit(_binding_0);
1715 }
1716 }
1717 }
1718 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1719 pub fn visit_parenthesized_generic_arguments<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ParenthesizedGenericArguments) {
1720 tokens_helper(_visitor, &(& _i . paren_token).0);
1721 for el in Punctuated::pairs(& _i . inputs) { let it = el.value(); _visitor.visit_type(it) };
1722 _visitor.visit_return_type(& _i . output);
1723 }
1724 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1725 pub fn visit_pat<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Pat) {
1726 match *_i {
1727 Pat::Wild(ref _binding_0, ) => {
1728 _visitor.visit_pat_wild(_binding_0);
1729 }
1730 Pat::Ident(ref _binding_0, ) => {
1731 _visitor.visit_pat_ident(_binding_0);
1732 }
1733 Pat::Struct(ref _binding_0, ) => {
1734 _visitor.visit_pat_struct(_binding_0);
1735 }
1736 Pat::TupleStruct(ref _binding_0, ) => {
1737 _visitor.visit_pat_tuple_struct(_binding_0);
1738 }
1739 Pat::Path(ref _binding_0, ) => {
1740 _visitor.visit_pat_path(_binding_0);
1741 }
1742 Pat::Tuple(ref _binding_0, ) => {
1743 _visitor.visit_pat_tuple(_binding_0);
1744 }
1745 Pat::Box(ref _binding_0, ) => {
1746 _visitor.visit_pat_box(_binding_0);
1747 }
1748 Pat::Ref(ref _binding_0, ) => {
1749 _visitor.visit_pat_ref(_binding_0);
1750 }
1751 Pat::Lit(ref _binding_0, ) => {
1752 _visitor.visit_pat_lit(_binding_0);
1753 }
1754 Pat::Range(ref _binding_0, ) => {
1755 _visitor.visit_pat_range(_binding_0);
1756 }
1757 Pat::Slice(ref _binding_0, ) => {
1758 _visitor.visit_pat_slice(_binding_0);
1759 }
1760 Pat::Macro(ref _binding_0, ) => {
1761 _visitor.visit_pat_macro(_binding_0);
1762 }
1763 Pat::Verbatim(ref _binding_0, ) => {
1764 _visitor.visit_pat_verbatim(_binding_0);
1765 }
1766 }
1767 }
1768 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1769 pub fn visit_pat_box<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatBox) {
1770 tokens_helper(_visitor, &(& _i . box_token).0);
1771 _visitor.visit_pat(& * _i . pat);
1772 }
1773 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1774 pub fn visit_pat_ident<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatIdent) {
1775 if let Some(ref it) = _i . by_ref { tokens_helper(_visitor, &(it).0) };
1776 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
1777 _visitor.visit_ident(& _i . ident);
1778 if let Some(ref it) = _i . subpat {
1779 tokens_helper(_visitor, &(& ( it ) . 0).0);
1780 _visitor.visit_pat(& * ( it ) . 1);
1781 };
1782 }
1783 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1784 pub fn visit_pat_lit<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatLit) {
1785 _visitor.visit_expr(& * _i . expr);
1786 }
1787 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1788 pub fn visit_pat_macro<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatMacro) {
1789 _visitor.visit_macro(& _i . mac);
1790 }
1791 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1792 pub fn visit_pat_path<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatPath) {
1793 if let Some(ref it) = _i . qself { _visitor.visit_qself(it) };
1794 _visitor.visit_path(& _i . path);
1795 }
1796 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1797 pub fn visit_pat_range<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatRange) {
1798 _visitor.visit_expr(& * _i . lo);
1799 _visitor.visit_range_limits(& _i . limits);
1800 _visitor.visit_expr(& * _i . hi);
1801 }
1802 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1803 pub fn visit_pat_ref<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatRef) {
1804 tokens_helper(_visitor, &(& _i . and_token).0);
1805 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
1806 _visitor.visit_pat(& * _i . pat);
1807 }
1808 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1809 pub fn visit_pat_slice<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatSlice) {
1810 tokens_helper(_visitor, &(& _i . bracket_token).0);
1811 for el in Punctuated::pairs(& _i . front) { let it = el.value(); _visitor.visit_pat(it) };
1812 if let Some(ref it) = _i . middle { _visitor.visit_pat(& * * it) };
1813 if let Some(ref it) = _i . dot2_token { tokens_helper(_visitor, &(it).0) };
1814 if let Some(ref it) = _i . comma_token { tokens_helper(_visitor, &(it).0) };
1815 for el in Punctuated::pairs(& _i . back) { let it = el.value(); _visitor.visit_pat(it) };
1816 }
1817 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1818 pub fn visit_pat_struct<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatStruct) {
1819 _visitor.visit_path(& _i . path);
1820 tokens_helper(_visitor, &(& _i . brace_token).0);
1821 for el in Punctuated::pairs(& _i . fields) { let it = el.value(); _visitor.visit_field_pat(it) };
1822 if let Some(ref it) = _i . dot2_token { tokens_helper(_visitor, &(it).0) };
1823 }
1824 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1825 pub fn visit_pat_tuple<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatTuple) {
1826 tokens_helper(_visitor, &(& _i . paren_token).0);
1827 for el in Punctuated::pairs(& _i . front) { let it = el.value(); _visitor.visit_pat(it) };
1828 if let Some(ref it) = _i . dot2_token { tokens_helper(_visitor, &(it).0) };
1829 if let Some(ref it) = _i . comma_token { tokens_helper(_visitor, &(it).0) };
1830 for el in Punctuated::pairs(& _i . back) { let it = el.value(); _visitor.visit_pat(it) };
1831 }
1832 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1833 pub fn visit_pat_tuple_struct<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatTupleStruct) {
1834 _visitor.visit_path(& _i . path);
1835 _visitor.visit_pat_tuple(& _i . pat);
1836 }
1837 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1838 pub fn visit_pat_verbatim<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatVerbatim) {
1839 // Skipped field _i . tts;
1840 }
1841 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1842 pub fn visit_pat_wild<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatWild) {
1843 tokens_helper(_visitor, &(& _i . underscore_token).0);
1844 }
1845 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1846 pub fn visit_path<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Path) {
1847 if let Some(ref it) = _i . leading_colon { tokens_helper(_visitor, &(it).0) };
1848 for el in Punctuated::pairs(& _i . segments) { let it = el.value(); _visitor.visit_path_segment(it) };
1849 }
1850 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1851 pub fn visit_path_arguments<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PathArguments) {
1852 match *_i {
1853 PathArguments::None => { }
1854 PathArguments::AngleBracketed(ref _binding_0, ) => {
1855 _visitor.visit_angle_bracketed_generic_arguments(_binding_0);
1856 }
1857 PathArguments::Parenthesized(ref _binding_0, ) => {
1858 _visitor.visit_parenthesized_generic_arguments(_binding_0);
1859 }
1860 }
1861 }
1862 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1863 pub fn visit_path_segment<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PathSegment) {
1864 _visitor.visit_ident(& _i . ident);
1865 _visitor.visit_path_arguments(& _i . arguments);
1866 }
1867 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1868 pub fn visit_predicate_eq<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PredicateEq) {
1869 _visitor.visit_type(& _i . lhs_ty);
1870 tokens_helper(_visitor, &(& _i . eq_token).0);
1871 _visitor.visit_type(& _i . rhs_ty);
1872 }
1873 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1874 pub fn visit_predicate_lifetime<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PredicateLifetime) {
1875 _visitor.visit_lifetime(& _i . lifetime);
1876 if let Some(ref it) = _i . colon_token { tokens_helper(_visitor, &(it).0) };
1877 for el in Punctuated::pairs(& _i . bounds) { let it = el.value(); _visitor.visit_lifetime(it) };
1878 }
1879 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1880 pub fn visit_predicate_type<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PredicateType) {
1881 if let Some(ref it) = _i . lifetimes { _visitor.visit_bound_lifetimes(it) };
1882 _visitor.visit_type(& _i . bounded_ty);
1883 tokens_helper(_visitor, &(& _i . colon_token).0);
1884 for el in Punctuated::pairs(& _i . bounds) { let it = el.value(); _visitor.visit_type_param_bound(it) };
1885 }
1886 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1887 pub fn visit_qself<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast QSelf) {
1888 tokens_helper(_visitor, &(& _i . lt_token).0);
1889 _visitor.visit_type(& * _i . ty);
1890 // Skipped field _i . position;
1891 if let Some(ref it) = _i . as_token { tokens_helper(_visitor, &(it).0) };
1892 tokens_helper(_visitor, &(& _i . gt_token).0);
1893 }
1894 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1895 pub fn visit_range_limits<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast RangeLimits) {
1896 match *_i {
1897 RangeLimits::HalfOpen(ref _binding_0, ) => {
1898 tokens_helper(_visitor, &(_binding_0).0);
1899 }
1900 RangeLimits::Closed(ref _binding_0, ) => {
1901 tokens_helper(_visitor, &(_binding_0).0);
1902 }
1903 }
1904 }
1905 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1906 pub fn visit_return_type<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ReturnType) {
1907 match *_i {
1908 ReturnType::Default => { }
1909 ReturnType::Type(ref _binding_0, ref _binding_1, ) => {
1910 tokens_helper(_visitor, &(_binding_0).0);
1911 _visitor.visit_type(& * * _binding_1);
1912 }
1913 }
1914 }
1915
1916 pub fn visit_span<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Span) {
1917 }
1918 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
1919 pub fn visit_stmt<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Stmt) {
1920 match *_i {
1921 Stmt::Local(ref _binding_0, ) => {
1922 _visitor.visit_local(_binding_0);
1923 }
1924 Stmt::Item(ref _binding_0, ) => {
1925 _visitor.visit_item(_binding_0);
1926 }
1927 Stmt::Expr(ref _binding_0, ) => {
1928 _visitor.visit_expr(_binding_0);
1929 }
1930 Stmt::Semi(ref _binding_0, ref _binding_1, ) => {
1931 _visitor.visit_expr(_binding_0);
1932 tokens_helper(_visitor, &(_binding_1).0);
1933 }
1934 }
1935 }
1936 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1937 pub fn visit_trait_bound<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TraitBound) {
1938 if let Some(ref it) = _i . paren_token { tokens_helper(_visitor, &(it).0) };
1939 _visitor.visit_trait_bound_modifier(& _i . modifier);
1940 if let Some(ref it) = _i . lifetimes { _visitor.visit_bound_lifetimes(it) };
1941 _visitor.visit_path(& _i . path);
1942 }
1943 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
1944 pub fn visit_trait_bound_modifier<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TraitBoundModifier) {
1945 match *_i {
1946 TraitBoundModifier::None => { }
1947 TraitBoundModifier::Maybe(ref _binding_0, ) => {
1948 tokens_helper(_visitor, &(_binding_0).0);
1949 }
1950 }
1951 }
1952 # [ cfg ( feature = "full" ) ]
1953 pub fn visit_trait_item<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TraitItem) {
1954 match *_i {
1955 TraitItem::Const(ref _binding_0, ) => {
1956 _visitor.visit_trait_item_const(_binding_0);
1957 }
1958 TraitItem::Method(ref _binding_0, ) => {
1959 _visitor.visit_trait_item_method(_binding_0);
1960 }
1961 TraitItem::Type(ref _binding_0, ) => {
1962 _visitor.visit_trait_item_type(_binding_0);
1963 }
1964 TraitItem::Macro(ref _binding_0, ) => {
1965 _visitor.visit_trait_item_macro(_binding_0);
1966 }
1967 TraitItem::Verbatim(ref _binding_0, ) => {
1968 _visitor.visit_trait_item_verbatim(_binding_0);
1969 }
1970 }
1971 }
1972 # [ cfg ( feature = "full" ) ]
1973 pub fn visit_trait_item_const<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TraitItemConst) {
1974 for it in & _i . attrs { _visitor.visit_attribute(it) };
1975 tokens_helper(_visitor, &(& _i . const_token).0);
1976 _visitor.visit_ident(& _i . ident);
1977 tokens_helper(_visitor, &(& _i . colon_token).0);
1978 _visitor.visit_type(& _i . ty);
1979 if let Some(ref it) = _i . default {
1980 tokens_helper(_visitor, &(& ( it ) . 0).0);
1981 _visitor.visit_expr(& ( it ) . 1);
1982 };
1983 tokens_helper(_visitor, &(& _i . semi_token).0);
1984 }
1985 # [ cfg ( feature = "full" ) ]
1986 pub fn visit_trait_item_macro<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TraitItemMacro) {
1987 for it in & _i . attrs { _visitor.visit_attribute(it) };
1988 _visitor.visit_macro(& _i . mac);
1989 if let Some(ref it) = _i . semi_token { tokens_helper(_visitor, &(it).0) };
1990 }
1991 # [ cfg ( feature = "full" ) ]
1992 pub fn visit_trait_item_method<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TraitItemMethod) {
1993 for it in & _i . attrs { _visitor.visit_attribute(it) };
1994 _visitor.visit_method_sig(& _i . sig);
1995 if let Some(ref it) = _i . default { _visitor.visit_block(it) };
1996 if let Some(ref it) = _i . semi_token { tokens_helper(_visitor, &(it).0) };
1997 }
1998 # [ cfg ( feature = "full" ) ]
1999 pub fn visit_trait_item_type<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TraitItemType) {
2000 for it in & _i . attrs { _visitor.visit_attribute(it) };
2001 tokens_helper(_visitor, &(& _i . type_token).0);
2002 _visitor.visit_ident(& _i . ident);
2003 _visitor.visit_generics(& _i . generics);
2004 if let Some(ref it) = _i . colon_token { tokens_helper(_visitor, &(it).0) };
2005 for el in Punctuated::pairs(& _i . bounds) { let it = el.value(); _visitor.visit_type_param_bound(it) };
2006 if let Some(ref it) = _i . default {
2007 tokens_helper(_visitor, &(& ( it ) . 0).0);
2008 _visitor.visit_type(& ( it ) . 1);
2009 };
2010 tokens_helper(_visitor, &(& _i . semi_token).0);
2011 }
2012 # [ cfg ( feature = "full" ) ]
2013 pub fn visit_trait_item_verbatim<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TraitItemVerbatim) {
2014 // Skipped field _i . tts;
2015 }
2016 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2017 pub fn visit_type<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Type) {
2018 match *_i {
2019 Type::Slice(ref _binding_0, ) => {
2020 _visitor.visit_type_slice(_binding_0);
2021 }
2022 Type::Array(ref _binding_0, ) => {
2023 _visitor.visit_type_array(_binding_0);
2024 }
2025 Type::Ptr(ref _binding_0, ) => {
2026 _visitor.visit_type_ptr(_binding_0);
2027 }
2028 Type::Reference(ref _binding_0, ) => {
2029 _visitor.visit_type_reference(_binding_0);
2030 }
2031 Type::BareFn(ref _binding_0, ) => {
2032 _visitor.visit_type_bare_fn(_binding_0);
2033 }
2034 Type::Never(ref _binding_0, ) => {
2035 _visitor.visit_type_never(_binding_0);
2036 }
2037 Type::Tuple(ref _binding_0, ) => {
2038 _visitor.visit_type_tuple(_binding_0);
2039 }
2040 Type::Path(ref _binding_0, ) => {
2041 _visitor.visit_type_path(_binding_0);
2042 }
2043 Type::TraitObject(ref _binding_0, ) => {
2044 _visitor.visit_type_trait_object(_binding_0);
2045 }
2046 Type::ImplTrait(ref _binding_0, ) => {
2047 _visitor.visit_type_impl_trait(_binding_0);
2048 }
2049 Type::Paren(ref _binding_0, ) => {
2050 _visitor.visit_type_paren(_binding_0);
2051 }
2052 Type::Group(ref _binding_0, ) => {
2053 _visitor.visit_type_group(_binding_0);
2054 }
2055 Type::Infer(ref _binding_0, ) => {
2056 _visitor.visit_type_infer(_binding_0);
2057 }
2058 Type::Macro(ref _binding_0, ) => {
2059 _visitor.visit_type_macro(_binding_0);
2060 }
2061 Type::Verbatim(ref _binding_0, ) => {
2062 _visitor.visit_type_verbatim(_binding_0);
2063 }
2064 }
2065 }
2066 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2067 pub fn visit_type_array<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeArray) {
2068 tokens_helper(_visitor, &(& _i . bracket_token).0);
2069 _visitor.visit_type(& * _i . elem);
2070 tokens_helper(_visitor, &(& _i . semi_token).0);
2071 _visitor.visit_expr(& _i . len);
2072 }
2073 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2074 pub fn visit_type_bare_fn<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeBareFn) {
2075 if let Some(ref it) = _i . unsafety { tokens_helper(_visitor, &(it).0) };
2076 if let Some(ref it) = _i . abi { _visitor.visit_abi(it) };
2077 tokens_helper(_visitor, &(& _i . fn_token).0);
2078 if let Some(ref it) = _i . lifetimes { _visitor.visit_bound_lifetimes(it) };
2079 tokens_helper(_visitor, &(& _i . paren_token).0);
2080 for el in Punctuated::pairs(& _i . inputs) { let it = el.value(); _visitor.visit_bare_fn_arg(it) };
2081 if let Some(ref it) = _i . variadic { tokens_helper(_visitor, &(it).0) };
2082 _visitor.visit_return_type(& _i . output);
2083 }
2084 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2085 pub fn visit_type_group<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeGroup) {
2086 tokens_helper(_visitor, &(& _i . group_token).0);
2087 _visitor.visit_type(& * _i . elem);
2088 }
2089 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2090 pub fn visit_type_impl_trait<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeImplTrait) {
2091 tokens_helper(_visitor, &(& _i . impl_token).0);
2092 for el in Punctuated::pairs(& _i . bounds) { let it = el.value(); _visitor.visit_type_param_bound(it) };
2093 }
2094 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2095 pub fn visit_type_infer<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeInfer) {
2096 tokens_helper(_visitor, &(& _i . underscore_token).0);
2097 }
2098 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2099 pub fn visit_type_macro<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeMacro) {
2100 _visitor.visit_macro(& _i . mac);
2101 }
2102 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2103 pub fn visit_type_never<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeNever) {
2104 tokens_helper(_visitor, &(& _i . bang_token).0);
2105 }
2106 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2107 pub fn visit_type_param<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeParam) {
2108 for it in & _i . attrs { _visitor.visit_attribute(it) };
2109 _visitor.visit_ident(& _i . ident);
2110 if let Some(ref it) = _i . colon_token { tokens_helper(_visitor, &(it).0) };
2111 for el in Punctuated::pairs(& _i . bounds) { let it = el.value(); _visitor.visit_type_param_bound(it) };
2112 if let Some(ref it) = _i . eq_token { tokens_helper(_visitor, &(it).0) };
2113 if let Some(ref it) = _i . default { _visitor.visit_type(it) };
2114 }
2115 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2116 pub fn visit_type_param_bound<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeParamBound) {
2117 match *_i {
2118 TypeParamBound::Trait(ref _binding_0, ) => {
2119 _visitor.visit_trait_bound(_binding_0);
2120 }
2121 TypeParamBound::Lifetime(ref _binding_0, ) => {
2122 _visitor.visit_lifetime(_binding_0);
2123 }
2124 }
2125 }
2126 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2127 pub fn visit_type_paren<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeParen) {
2128 tokens_helper(_visitor, &(& _i . paren_token).0);
2129 _visitor.visit_type(& * _i . elem);
2130 }
2131 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2132 pub fn visit_type_path<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypePath) {
2133 if let Some(ref it) = _i . qself { _visitor.visit_qself(it) };
2134 _visitor.visit_path(& _i . path);
2135 }
2136 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2137 pub fn visit_type_ptr<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypePtr) {
2138 tokens_helper(_visitor, &(& _i . star_token).0);
2139 if let Some(ref it) = _i . const_token { tokens_helper(_visitor, &(it).0) };
2140 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
2141 _visitor.visit_type(& * _i . elem);
2142 }
2143 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2144 pub fn visit_type_reference<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeReference) {
2145 tokens_helper(_visitor, &(& _i . and_token).0);
2146 if let Some(ref it) = _i . lifetime { _visitor.visit_lifetime(it) };
2147 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
2148 _visitor.visit_type(& * _i . elem);
2149 }
2150 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2151 pub fn visit_type_slice<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeSlice) {
2152 tokens_helper(_visitor, &(& _i . bracket_token).0);
2153 _visitor.visit_type(& * _i . elem);
2154 }
2155 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2156 pub fn visit_type_trait_object<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeTraitObject) {
2157 if let Some(ref it) = _i . dyn_token { tokens_helper(_visitor, &(it).0) };
2158 for el in Punctuated::pairs(& _i . bounds) { let it = el.value(); _visitor.visit_type_param_bound(it) };
2159 }
2160 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2161 pub fn visit_type_tuple<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeTuple) {
2162 tokens_helper(_visitor, &(& _i . paren_token).0);
2163 for el in Punctuated::pairs(& _i . elems) { let it = el.value(); _visitor.visit_type(it) };
2164 }
2165 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2166 pub fn visit_type_verbatim<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeVerbatim) {
2167 // Skipped field _i . tts;
2168 }
2169 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2170 pub fn visit_un_op<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast UnOp) {
2171 match *_i {
2172 UnOp::Deref(ref _binding_0, ) => {
2173 tokens_helper(_visitor, &(_binding_0).0);
2174 }
2175 UnOp::Not(ref _binding_0, ) => {
2176 tokens_helper(_visitor, &(_binding_0).0);
2177 }
2178 UnOp::Neg(ref _binding_0, ) => {
2179 tokens_helper(_visitor, &(_binding_0).0);
2180 }
2181 }
2182 }
2183 # [ cfg ( feature = "full" ) ]
2184 pub fn visit_use_glob<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast UseGlob) {
2185 tokens_helper(_visitor, &(& _i . star_token).0);
2186 }
2187 # [ cfg ( feature = "full" ) ]
2188 pub fn visit_use_group<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast UseGroup) {
2189 tokens_helper(_visitor, &(& _i . brace_token).0);
2190 for el in Punctuated::pairs(& _i . items) { let it = el.value(); _visitor.visit_use_tree(it) };
2191 }
2192 # [ cfg ( feature = "full" ) ]
2193 pub fn visit_use_name<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast UseName) {
2194 _visitor.visit_ident(& _i . ident);
2195 }
2196 # [ cfg ( feature = "full" ) ]
2197 pub fn visit_use_path<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast UsePath) {
2198 _visitor.visit_ident(& _i . ident);
2199 tokens_helper(_visitor, &(& _i . colon2_token).0);
2200 _visitor.visit_use_tree(& * _i . tree);
2201 }
2202 # [ cfg ( feature = "full" ) ]
2203 pub fn visit_use_rename<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast UseRename) {
2204 _visitor.visit_ident(& _i . ident);
2205 tokens_helper(_visitor, &(& _i . as_token).0);
2206 _visitor.visit_ident(& _i . rename);
2207 }
2208 # [ cfg ( feature = "full" ) ]
2209 pub fn visit_use_tree<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast UseTree) {
2210 match *_i {
2211 UseTree::Path(ref _binding_0, ) => {
2212 _visitor.visit_use_path(_binding_0);
2213 }
2214 UseTree::Name(ref _binding_0, ) => {
2215 _visitor.visit_use_name(_binding_0);
2216 }
2217 UseTree::Rename(ref _binding_0, ) => {
2218 _visitor.visit_use_rename(_binding_0);
2219 }
2220 UseTree::Glob(ref _binding_0, ) => {
2221 _visitor.visit_use_glob(_binding_0);
2222 }
2223 UseTree::Group(ref _binding_0, ) => {
2224 _visitor.visit_use_group(_binding_0);
2225 }
2226 }
2227 }
2228 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2229 pub fn visit_variant<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Variant) {
2230 for it in & _i . attrs { _visitor.visit_attribute(it) };
2231 _visitor.visit_ident(& _i . ident);
2232 _visitor.visit_fields(& _i . fields);
2233 if let Some(ref it) = _i . discriminant {
2234 tokens_helper(_visitor, &(& ( it ) . 0).0);
2235 _visitor.visit_expr(& ( it ) . 1);
2236 };
2237 }
2238 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2239 pub fn visit_vis_crate<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast VisCrate) {
2240 tokens_helper(_visitor, &(& _i . crate_token).0);
2241 }
2242 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2243 pub fn visit_vis_public<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast VisPublic) {
2244 tokens_helper(_visitor, &(& _i . pub_token).0);
2245 }
2246 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2247 pub fn visit_vis_restricted<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast VisRestricted) {
2248 tokens_helper(_visitor, &(& _i . pub_token).0);
2249 tokens_helper(_visitor, &(& _i . paren_token).0);
2250 if let Some(ref it) = _i . in_token { tokens_helper(_visitor, &(it).0) };
2251 _visitor.visit_path(& * _i . path);
2252 }
2253 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2254 pub fn visit_visibility<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Visibility) {
2255 match *_i {
2256 Visibility::Public(ref _binding_0, ) => {
2257 _visitor.visit_vis_public(_binding_0);
2258 }
2259 Visibility::Crate(ref _binding_0, ) => {
2260 _visitor.visit_vis_crate(_binding_0);
2261 }
2262 Visibility::Restricted(ref _binding_0, ) => {
2263 _visitor.visit_vis_restricted(_binding_0);
2264 }
2265 Visibility::Inherited => { }
2266 }
2267 }
2268 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2269 pub fn visit_where_clause<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast WhereClause) {
2270 tokens_helper(_visitor, &(& _i . where_token).0);
2271 for el in Punctuated::pairs(& _i . predicates) { let it = el.value(); _visitor.visit_where_predicate(it) };
2272 }
2273 # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
2274 pub fn visit_where_predicate<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast WherePredicate) {
2275 match *_i {
2276 WherePredicate::Type(ref _binding_0, ) => {
2277 _visitor.visit_predicate_type(_binding_0);
2278 }
2279 WherePredicate::Lifetime(ref _binding_0, ) => {
2280 _visitor.visit_predicate_lifetime(_binding_0);
2281 }
2282 WherePredicate::Eq(ref _binding_0, ) => {
2283 _visitor.visit_predicate_eq(_binding_0);
2284 }
2285 }
2286 }
2287