blob: 3a8c28d001ef174a9144f1d4b897f131971960a2 [file] [log] [blame]
Nika Layzell27726662017-10-24 23:16:35 -04001// THIS FILE IS AUTOMATICALLY GENERATED; DO NOT EDIT
2
David Tolnay0afc9b32017-12-27 13:38:24 -05003#![cfg_attr(rustfmt, rustfmt_skip)]
4
David Tolnayf0d63bf2017-12-26 12:29:47 -05005#![cfg_attr(feature = "cargo-clippy", allow(match_same_arms))]
6
Nika Layzella6f46c42017-10-26 15:26:16 -04007use *;
David Tolnay0a0d78c2018-01-05 15:24:01 -08008#[cfg(any(feature = "full", feature = "derive"))]
David Tolnay6eff4da2018-01-01 20:27:45 -08009use punctuated::Punctuated;
David Tolnay98942562017-12-26 21:24:35 -050010use proc_macro2::Span;
David Tolnay0a0d78c2018-01-05 15:24:01 -080011#[cfg(any(feature = "full", feature = "derive"))]
David Tolnaycc0f0372017-12-28 19:11:04 -050012use gen::helper::visit::*;
Nika Layzell27726662017-10-24 23:16:35 -040013
Nika Layzell4ab8d6e2017-10-26 09:45:49 -040014
15#[cfg(feature = "full")]
16macro_rules! full {
17 ($e:expr) => { $e }
18}
19
David Tolnay0a0d78c2018-01-05 15:24:01 -080020#[cfg(all(feature = "derive", not(feature = "full")))]
Nika Layzell4ab8d6e2017-10-26 09:45:49 -040021macro_rules! full {
22 ($e:expr) => { unreachable!() }
23}
24
25
David Tolnayded2d682018-01-06 18:53:53 -080026/// Syntax tree traversal to walk a shared borrow of a syntax tree.
Nika Layzell27726662017-10-24 23:16:35 -040027///
David Tolnayded2d682018-01-06 18:53:53 -080028/// See the [module documentation] for details.
29///
30/// [module documentation]: index.html
David Tolnay12374262018-01-07 12:38:34 -080031///
32/// *This trait is available if Syn is built with the `"visit"` feature.*
David Tolnay4b4c4b62018-01-06 13:48:05 -080033pub trait Visit<'ast> {
David Tolnay3cfd1d32018-01-03 00:22:08 -080034# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050035fn visit_abi(&mut self, i: &'ast Abi) { visit_abi(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080036# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc08227a2017-12-04 16:30:17 -050037fn visit_angle_bracketed_generic_arguments(&mut self, i: &'ast AngleBracketedGenericArguments) { visit_angle_bracketed_generic_arguments(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -040038# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050039fn visit_arg_captured(&mut self, i: &'ast ArgCaptured) { visit_arg_captured(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -040040# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050041fn visit_arg_self(&mut self, i: &'ast ArgSelf) { visit_arg_self(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -040042# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050043fn visit_arg_self_ref(&mut self, i: &'ast ArgSelfRef) { visit_arg_self_ref(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080044# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050045fn visit_arm(&mut self, i: &'ast Arm) { visit_arm(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080046# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050047fn visit_attr_style(&mut self, i: &'ast AttrStyle) { visit_attr_style(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080048# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050049fn visit_attribute(&mut self, i: &'ast Attribute) { visit_attribute(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080050# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050051fn visit_bare_fn_arg(&mut self, i: &'ast BareFnArg) { visit_bare_fn_arg(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080052# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050053fn visit_bare_fn_arg_name(&mut self, i: &'ast BareFnArgName) { visit_bare_fn_arg_name(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080054# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050055fn visit_bin_op(&mut self, i: &'ast BinOp) { visit_bin_op(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080056# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay506e43a2017-12-29 11:34:36 -050057fn visit_binding(&mut self, i: &'ast Binding) { visit_binding(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080058# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050059fn visit_block(&mut self, i: &'ast Block) { visit_block(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080060# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050061fn visit_bound_lifetimes(&mut self, i: &'ast BoundLifetimes) { visit_bound_lifetimes(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080062# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellf1fdc0b2017-12-04 19:58:32 -050063fn visit_const_param(&mut self, i: &'ast ConstParam) { visit_const_param(self, i) }
David Tolnay0a0d78c2018-01-05 15:24:01 -080064# [ cfg ( feature = "derive" ) ]
David Tolnaye3d41b72017-12-31 15:24:00 -050065fn visit_data(&mut self, i: &'ast Data) { visit_data(self, i) }
David Tolnay0a0d78c2018-01-05 15:24:01 -080066# [ cfg ( feature = "derive" ) ]
David Tolnaye3d41b72017-12-31 15:24:00 -050067fn visit_data_enum(&mut self, i: &'ast DataEnum) { visit_data_enum(self, i) }
David Tolnay0a0d78c2018-01-05 15:24:01 -080068# [ cfg ( feature = "derive" ) ]
David Tolnaye3d41b72017-12-31 15:24:00 -050069fn visit_data_struct(&mut self, i: &'ast DataStruct) { visit_data_struct(self, i) }
David Tolnay0a0d78c2018-01-05 15:24:01 -080070# [ cfg ( feature = "derive" ) ]
David Tolnaye3d41b72017-12-31 15:24:00 -050071fn visit_data_union(&mut self, i: &'ast DataUnion) { visit_data_union(self, i) }
David Tolnay0a0d78c2018-01-05 15:24:01 -080072# [ cfg ( feature = "derive" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050073fn visit_derive_input(&mut self, i: &'ast DeriveInput) { visit_derive_input(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080074# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050075fn visit_expr(&mut self, i: &'ast Expr) { visit_expr(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080076# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050077fn visit_expr_array(&mut self, i: &'ast ExprArray) { visit_expr_array(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080078# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050079fn visit_expr_assign(&mut self, i: &'ast ExprAssign) { visit_expr_assign(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080080# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050081fn visit_expr_assign_op(&mut self, i: &'ast ExprAssignOp) { visit_expr_assign_op(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080082# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050083fn visit_expr_binary(&mut self, i: &'ast ExprBinary) { visit_expr_binary(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080084# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050085fn visit_expr_block(&mut self, i: &'ast ExprBlock) { visit_expr_block(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080086# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050087fn visit_expr_box(&mut self, i: &'ast ExprBox) { visit_expr_box(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080088# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050089fn visit_expr_break(&mut self, i: &'ast ExprBreak) { visit_expr_break(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080090# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050091fn visit_expr_call(&mut self, i: &'ast ExprCall) { visit_expr_call(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080092# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050093fn visit_expr_cast(&mut self, i: &'ast ExprCast) { visit_expr_cast(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080094# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050095fn visit_expr_catch(&mut self, i: &'ast ExprCatch) { visit_expr_catch(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080096# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050097fn visit_expr_closure(&mut self, i: &'ast ExprClosure) { visit_expr_closure(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -080098# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -050099fn visit_expr_continue(&mut self, i: &'ast ExprContinue) { visit_expr_continue(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800100# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500101fn visit_expr_field(&mut self, i: &'ast ExprField) { visit_expr_field(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800102# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500103fn visit_expr_for_loop(&mut self, i: &'ast ExprForLoop) { visit_expr_for_loop(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800104# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500105fn visit_expr_group(&mut self, i: &'ast ExprGroup) { visit_expr_group(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800106# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500107fn visit_expr_if(&mut self, i: &'ast ExprIf) { visit_expr_if(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800108# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500109fn visit_expr_if_let(&mut self, i: &'ast ExprIfLet) { visit_expr_if_let(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800110# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500111fn visit_expr_in_place(&mut self, i: &'ast ExprInPlace) { visit_expr_in_place(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800112# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500113fn visit_expr_index(&mut self, i: &'ast ExprIndex) { visit_expr_index(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800114# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay8c91b882017-12-28 23:04:32 -0500115fn visit_expr_lit(&mut self, i: &'ast ExprLit) { visit_expr_lit(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800116# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500117fn visit_expr_loop(&mut self, i: &'ast ExprLoop) { visit_expr_loop(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800118# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay8c91b882017-12-28 23:04:32 -0500119fn visit_expr_macro(&mut self, i: &'ast ExprMacro) { visit_expr_macro(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800120# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500121fn visit_expr_match(&mut self, i: &'ast ExprMatch) { visit_expr_match(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800122# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500123fn visit_expr_method_call(&mut self, i: &'ast ExprMethodCall) { visit_expr_method_call(self, i) }
David Tolnay81ab4f62018-01-27 19:02:51 -0800124# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500125fn visit_expr_paren(&mut self, i: &'ast ExprParen) { visit_expr_paren(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800126# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500127fn visit_expr_path(&mut self, i: &'ast ExprPath) { visit_expr_path(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800128# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500129fn visit_expr_range(&mut self, i: &'ast ExprRange) { visit_expr_range(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800130# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay00674ba2018-03-31 18:14:11 +0200131fn visit_expr_reference(&mut self, i: &'ast ExprReference) { visit_expr_reference(self, i) }
132# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500133fn visit_expr_repeat(&mut self, i: &'ast ExprRepeat) { visit_expr_repeat(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800134# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnayc246cd32017-12-28 23:14:32 -0500135fn visit_expr_return(&mut self, i: &'ast ExprReturn) { visit_expr_return(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800136# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500137fn visit_expr_struct(&mut self, i: &'ast ExprStruct) { visit_expr_struct(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800138# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500139fn visit_expr_try(&mut self, i: &'ast ExprTry) { visit_expr_try(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800140# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay05362582017-12-26 01:33:57 -0500141fn visit_expr_tuple(&mut self, i: &'ast ExprTuple) { visit_expr_tuple(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800142# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500143fn visit_expr_type(&mut self, i: &'ast ExprType) { visit_expr_type(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800144# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500145fn visit_expr_unary(&mut self, i: &'ast ExprUnary) { visit_expr_unary(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800146# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzell640832a2017-12-04 13:37:09 -0500147fn visit_expr_unsafe(&mut self, i: &'ast ExprUnsafe) { visit_expr_unsafe(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800148# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay2ae520a2017-12-29 11:19:50 -0500149fn visit_expr_verbatim(&mut self, i: &'ast ExprVerbatim) { visit_expr_verbatim(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800150# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500151fn visit_expr_while(&mut self, i: &'ast ExprWhile) { visit_expr_while(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800152# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500153fn visit_expr_while_let(&mut self, i: &'ast ExprWhileLet) { visit_expr_while_let(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800154# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500155fn visit_expr_yield(&mut self, i: &'ast ExprYield) { visit_expr_yield(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800156# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500157fn visit_field(&mut self, i: &'ast Field) { visit_field(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800158# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500159fn visit_field_pat(&mut self, i: &'ast FieldPat) { visit_field_pat(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800160# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500161fn visit_field_value(&mut self, i: &'ast FieldValue) { visit_field_value(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800162# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnaye3d41b72017-12-31 15:24:00 -0500163fn visit_fields(&mut self, i: &'ast Fields) { visit_fields(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800164# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnaye3d41b72017-12-31 15:24:00 -0500165fn visit_fields_named(&mut self, i: &'ast FieldsNamed) { visit_fields_named(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800166# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnaye3d41b72017-12-31 15:24:00 -0500167fn visit_fields_unnamed(&mut self, i: &'ast FieldsUnnamed) { visit_fields_unnamed(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400168# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500169fn visit_file(&mut self, i: &'ast File) { visit_file(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400170# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500171fn visit_fn_arg(&mut self, i: &'ast FnArg) { visit_fn_arg(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400172# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500173fn visit_fn_decl(&mut self, i: &'ast FnDecl) { visit_fn_decl(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400174# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500175fn visit_foreign_item(&mut self, i: &'ast ForeignItem) { visit_foreign_item(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400176# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500177fn visit_foreign_item_fn(&mut self, i: &'ast ForeignItemFn) { visit_foreign_item_fn(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400178# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500179fn visit_foreign_item_static(&mut self, i: &'ast ForeignItemStatic) { visit_foreign_item_static(self, i) }
David Tolnay199bcbb2017-11-12 10:33:52 -0800180# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500181fn visit_foreign_item_type(&mut self, i: &'ast ForeignItemType) { visit_foreign_item_type(self, i) }
David Tolnay2ae520a2017-12-29 11:19:50 -0500182# [ cfg ( feature = "full" ) ]
183fn visit_foreign_item_verbatim(&mut self, i: &'ast ForeignItemVerbatim) { visit_foreign_item_verbatim(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800184# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc08227a2017-12-04 16:30:17 -0500185fn visit_generic_argument(&mut self, i: &'ast GenericArgument) { visit_generic_argument(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800186# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnayd60cfec2017-12-29 00:21:38 -0500187fn visit_generic_method_argument(&mut self, i: &'ast GenericMethodArgument) { visit_generic_method_argument(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800188# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnayc2f1aba2017-11-12 20:29:22 -0800189fn visit_generic_param(&mut self, i: &'ast GenericParam) { visit_generic_param(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800190# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500191fn visit_generics(&mut self, i: &'ast Generics) { visit_generics(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400192# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500193fn visit_impl_item(&mut self, i: &'ast ImplItem) { visit_impl_item(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400194# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500195fn visit_impl_item_const(&mut self, i: &'ast ImplItemConst) { visit_impl_item_const(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400196# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500197fn visit_impl_item_macro(&mut self, i: &'ast ImplItemMacro) { visit_impl_item_macro(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400198# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500199fn visit_impl_item_method(&mut self, i: &'ast ImplItemMethod) { visit_impl_item_method(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400200# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500201fn visit_impl_item_type(&mut self, i: &'ast ImplItemType) { visit_impl_item_type(self, i) }
David Tolnay2ae520a2017-12-29 11:19:50 -0500202# [ cfg ( feature = "full" ) ]
203fn visit_impl_item_verbatim(&mut self, i: &'ast ImplItemVerbatim) { visit_impl_item_verbatim(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800204# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay85b69a42017-12-27 20:43:10 -0500205fn visit_index(&mut self, i: &'ast Index) { visit_index(self, i) }
206# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500207fn visit_item(&mut self, i: &'ast Item) { visit_item(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400208# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500209fn visit_item_const(&mut self, i: &'ast ItemConst) { visit_item_const(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400210# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500211fn visit_item_enum(&mut self, i: &'ast ItemEnum) { visit_item_enum(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400212# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500213fn visit_item_extern_crate(&mut self, i: &'ast ItemExternCrate) { visit_item_extern_crate(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400214# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500215fn visit_item_fn(&mut self, i: &'ast ItemFn) { visit_item_fn(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400216# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500217fn visit_item_foreign_mod(&mut self, i: &'ast ItemForeignMod) { visit_item_foreign_mod(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400218# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500219fn visit_item_impl(&mut self, i: &'ast ItemImpl) { visit_item_impl(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400220# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500221fn visit_item_macro(&mut self, i: &'ast ItemMacro) { visit_item_macro(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400222# [ cfg ( feature = "full" ) ]
David Tolnay500d8322017-12-18 00:32:51 -0800223fn visit_item_macro2(&mut self, i: &'ast ItemMacro2) { visit_item_macro2(self, i) }
224# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500225fn visit_item_mod(&mut self, i: &'ast ItemMod) { visit_item_mod(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400226# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500227fn visit_item_static(&mut self, i: &'ast ItemStatic) { visit_item_static(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400228# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500229fn visit_item_struct(&mut self, i: &'ast ItemStruct) { visit_item_struct(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400230# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500231fn visit_item_trait(&mut self, i: &'ast ItemTrait) { visit_item_trait(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400232# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500233fn visit_item_type(&mut self, i: &'ast ItemType) { visit_item_type(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400234# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500235fn visit_item_union(&mut self, i: &'ast ItemUnion) { visit_item_union(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400236# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500237fn visit_item_use(&mut self, i: &'ast ItemUse) { visit_item_use(self, i) }
David Tolnay2ae520a2017-12-29 11:19:50 -0500238# [ cfg ( feature = "full" ) ]
239fn visit_item_verbatim(&mut self, i: &'ast ItemVerbatim) { visit_item_verbatim(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800240# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnaybcd498f2017-12-29 12:02:33 -0500241fn visit_label(&mut self, i: &'ast Label) { visit_label(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800242# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4ba63a02017-12-28 15:53:05 -0500243fn visit_lifetime(&mut self, i: &'ast Lifetime) { visit_lifetime(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800244# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500245fn visit_lifetime_def(&mut self, i: &'ast LifetimeDef) { visit_lifetime_def(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800246# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4ba63a02017-12-28 15:53:05 -0500247fn visit_lit(&mut self, i: &'ast Lit) { visit_lit(self, i) }
David Tolnay360efd22018-01-04 23:35:26 -0800248# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
249fn visit_lit_bool(&mut self, i: &'ast LitBool) { visit_lit_bool(self, i) }
250# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
251fn visit_lit_byte(&mut self, i: &'ast LitByte) { visit_lit_byte(self, i) }
252# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
253fn visit_lit_byte_str(&mut self, i: &'ast LitByteStr) { visit_lit_byte_str(self, i) }
254# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
255fn visit_lit_char(&mut self, i: &'ast LitChar) { visit_lit_char(self, i) }
256# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
257fn visit_lit_float(&mut self, i: &'ast LitFloat) { visit_lit_float(self, i) }
258# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
259fn visit_lit_int(&mut self, i: &'ast LitInt) { visit_lit_int(self, i) }
260# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
261fn visit_lit_str(&mut self, i: &'ast LitStr) { visit_lit_str(self, i) }
262# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
263fn visit_lit_verbatim(&mut self, i: &'ast LitVerbatim) { visit_lit_verbatim(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800264# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500265fn visit_local(&mut self, i: &'ast Local) { visit_local(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800266# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500267fn visit_macro(&mut self, i: &'ast Macro) { visit_macro(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800268# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnayab919512017-12-30 23:31:51 -0500269fn visit_macro_delimiter(&mut self, i: &'ast MacroDelimiter) { visit_macro_delimiter(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800270# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay85b69a42017-12-27 20:43:10 -0500271fn visit_member(&mut self, i: &'ast Member) { visit_member(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800272# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnayaaadd782018-01-06 22:58:13 -0800273fn visit_meta(&mut self, i: &'ast Meta) { visit_meta(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800274# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnayaaadd782018-01-06 22:58:13 -0800275fn visit_meta_list(&mut self, i: &'ast MetaList) { visit_meta_list(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800276# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500277fn visit_meta_name_value(&mut self, i: &'ast MetaNameValue) { visit_meta_name_value(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400278# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500279fn visit_method_sig(&mut self, i: &'ast MethodSig) { visit_method_sig(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800280# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnayd60cfec2017-12-29 00:21:38 -0500281fn visit_method_turbofish(&mut self, i: &'ast MethodTurbofish) { visit_method_turbofish(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800282# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnayaaadd782018-01-06 22:58:13 -0800283fn visit_nested_meta(&mut self, i: &'ast NestedMeta) { visit_nested_meta(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800284# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc08227a2017-12-04 16:30:17 -0500285fn visit_parenthesized_generic_arguments(&mut self, i: &'ast ParenthesizedGenericArguments) { visit_parenthesized_generic_arguments(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800286# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500287fn visit_pat(&mut self, i: &'ast Pat) { visit_pat(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800288# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500289fn visit_pat_box(&mut self, i: &'ast PatBox) { visit_pat_box(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800290# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500291fn visit_pat_ident(&mut self, i: &'ast PatIdent) { visit_pat_ident(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800292# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500293fn visit_pat_lit(&mut self, i: &'ast PatLit) { visit_pat_lit(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800294# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay323279a2017-12-29 11:26:32 -0500295fn visit_pat_macro(&mut self, i: &'ast PatMacro) { visit_pat_macro(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800296# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500297fn visit_pat_path(&mut self, i: &'ast PatPath) { visit_pat_path(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800298# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500299fn visit_pat_range(&mut self, i: &'ast PatRange) { visit_pat_range(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800300# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500301fn visit_pat_ref(&mut self, i: &'ast PatRef) { visit_pat_ref(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800302# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500303fn visit_pat_slice(&mut self, i: &'ast PatSlice) { visit_pat_slice(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800304# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500305fn visit_pat_struct(&mut self, i: &'ast PatStruct) { visit_pat_struct(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800306# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500307fn visit_pat_tuple(&mut self, i: &'ast PatTuple) { visit_pat_tuple(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800308# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500309fn visit_pat_tuple_struct(&mut self, i: &'ast PatTupleStruct) { visit_pat_tuple_struct(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800310# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay2ae520a2017-12-29 11:19:50 -0500311fn visit_pat_verbatim(&mut self, i: &'ast PatVerbatim) { visit_pat_verbatim(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800312# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500313fn visit_pat_wild(&mut self, i: &'ast PatWild) { visit_pat_wild(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800314# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500315fn visit_path(&mut self, i: &'ast Path) { visit_path(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800316# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc08227a2017-12-04 16:30:17 -0500317fn visit_path_arguments(&mut self, i: &'ast PathArguments) { visit_path_arguments(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800318# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500319fn visit_path_segment(&mut self, i: &'ast PathSegment) { visit_path_segment(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800320# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnayd4add852018-01-01 20:13:24 -0800321fn visit_predicate_eq(&mut self, i: &'ast PredicateEq) { visit_predicate_eq(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800322# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnayd4add852018-01-01 20:13:24 -0800323fn visit_predicate_lifetime(&mut self, i: &'ast PredicateLifetime) { visit_predicate_lifetime(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800324# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnayd4add852018-01-01 20:13:24 -0800325fn visit_predicate_type(&mut self, i: &'ast PredicateType) { visit_predicate_type(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800326# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500327fn visit_qself(&mut self, i: &'ast QSelf) { visit_qself(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800328# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500329fn visit_range_limits(&mut self, i: &'ast RangeLimits) { visit_range_limits(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800330# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500331fn visit_return_type(&mut self, i: &'ast ReturnType) { visit_return_type(self, i) }
Nika Layzellefb83ba2017-12-19 18:23:55 -0500332
333fn visit_span(&mut self, i: &'ast Span) { visit_span(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800334# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500335fn visit_stmt(&mut self, i: &'ast Stmt) { visit_stmt(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800336# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay40fb8ce2018-01-02 10:53:46 -0800337fn visit_trait_bound(&mut self, i: &'ast TraitBound) { visit_trait_bound(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800338# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500339fn visit_trait_bound_modifier(&mut self, i: &'ast TraitBoundModifier) { visit_trait_bound_modifier(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400340# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500341fn visit_trait_item(&mut self, i: &'ast TraitItem) { visit_trait_item(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400342# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500343fn visit_trait_item_const(&mut self, i: &'ast TraitItemConst) { visit_trait_item_const(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400344# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500345fn visit_trait_item_macro(&mut self, i: &'ast TraitItemMacro) { visit_trait_item_macro(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400346# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500347fn visit_trait_item_method(&mut self, i: &'ast TraitItemMethod) { visit_trait_item_method(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400348# [ cfg ( feature = "full" ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500349fn visit_trait_item_type(&mut self, i: &'ast TraitItemType) { visit_trait_item_type(self, i) }
David Tolnay2ae520a2017-12-29 11:19:50 -0500350# [ cfg ( feature = "full" ) ]
351fn visit_trait_item_verbatim(&mut self, i: &'ast TraitItemVerbatim) { visit_trait_item_verbatim(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800352# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500353fn visit_type(&mut self, i: &'ast Type) { visit_type(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800354# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500355fn visit_type_array(&mut self, i: &'ast TypeArray) { visit_type_array(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800356# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500357fn visit_type_bare_fn(&mut self, i: &'ast TypeBareFn) { visit_type_bare_fn(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800358# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500359fn visit_type_group(&mut self, i: &'ast TypeGroup) { visit_type_group(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800360# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500361fn visit_type_impl_trait(&mut self, i: &'ast TypeImplTrait) { visit_type_impl_trait(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800362# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500363fn visit_type_infer(&mut self, i: &'ast TypeInfer) { visit_type_infer(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800364# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay323279a2017-12-29 11:26:32 -0500365fn visit_type_macro(&mut self, i: &'ast TypeMacro) { visit_type_macro(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800366# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500367fn visit_type_never(&mut self, i: &'ast TypeNever) { visit_type_never(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800368# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500369fn visit_type_param(&mut self, i: &'ast TypeParam) { visit_type_param(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800370# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500371fn visit_type_param_bound(&mut self, i: &'ast TypeParamBound) { visit_type_param_bound(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800372# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500373fn visit_type_paren(&mut self, i: &'ast TypeParen) { visit_type_paren(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800374# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500375fn visit_type_path(&mut self, i: &'ast TypePath) { visit_type_path(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800376# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500377fn visit_type_ptr(&mut self, i: &'ast TypePtr) { visit_type_ptr(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800378# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500379fn visit_type_reference(&mut self, i: &'ast TypeReference) { visit_type_reference(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800380# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500381fn visit_type_slice(&mut self, i: &'ast TypeSlice) { visit_type_slice(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800382# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500383fn visit_type_trait_object(&mut self, i: &'ast TypeTraitObject) { visit_type_trait_object(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800384# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay05362582017-12-26 01:33:57 -0500385fn visit_type_tuple(&mut self, i: &'ast TypeTuple) { visit_type_tuple(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800386# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay2ae520a2017-12-29 11:19:50 -0500387fn visit_type_verbatim(&mut self, i: &'ast TypeVerbatim) { visit_type_verbatim(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800388# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500389fn visit_un_op(&mut self, i: &'ast UnOp) { visit_un_op(self, i) }
David Tolnay5f332a92017-12-26 00:42:45 -0500390# [ cfg ( feature = "full" ) ]
391fn visit_use_glob(&mut self, i: &'ast UseGlob) { visit_use_glob(self, i) }
392# [ cfg ( feature = "full" ) ]
David Tolnayd97a7d22018-03-31 19:17:01 +0200393fn visit_use_group(&mut self, i: &'ast UseGroup) { visit_use_group(self, i) }
394# [ cfg ( feature = "full" ) ]
395fn visit_use_name(&mut self, i: &'ast UseName) { visit_use_name(self, i) }
David Tolnay5f332a92017-12-26 00:42:45 -0500396# [ cfg ( feature = "full" ) ]
397fn visit_use_path(&mut self, i: &'ast UsePath) { visit_use_path(self, i) }
398# [ cfg ( feature = "full" ) ]
David Tolnayd97a7d22018-03-31 19:17:01 +0200399fn visit_use_rename(&mut self, i: &'ast UseRename) { visit_use_rename(self, i) }
400# [ cfg ( feature = "full" ) ]
David Tolnay5f332a92017-12-26 00:42:45 -0500401fn visit_use_tree(&mut self, i: &'ast UseTree) { visit_use_tree(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800402# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500403fn visit_variant(&mut self, i: &'ast Variant) { visit_variant(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800404# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500405fn visit_vis_crate(&mut self, i: &'ast VisCrate) { visit_vis_crate(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800406# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500407fn visit_vis_public(&mut self, i: &'ast VisPublic) { visit_vis_public(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800408# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500409fn visit_vis_restricted(&mut self, i: &'ast VisRestricted) { visit_vis_restricted(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800410# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500411fn visit_visibility(&mut self, i: &'ast Visibility) { visit_visibility(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800412# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500413fn visit_where_clause(&mut self, i: &'ast WhereClause) { visit_where_clause(self, i) }
David Tolnay3cfd1d32018-01-03 00:22:08 -0800414# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
Nika Layzellc86173a2017-11-18 13:55:22 -0500415fn visit_where_predicate(&mut self, i: &'ast WherePredicate) { visit_where_predicate(self, i) }
Nika Layzell27726662017-10-24 23:16:35 -0400416
Nika Layzell27726662017-10-24 23:16:35 -0400417}
418
David Tolnay3cfd1d32018-01-03 00:22:08 -0800419# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800420pub fn visit_abi<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Abi) {
David Tolnaycc0f0372017-12-28 19:11:04 -0500421 tokens_helper(_visitor, &(& _i . extern_token).0);
David Tolnayc2749802018-01-06 23:40:41 -0800422 if let Some(ref it) = _i . name { _visitor.visit_lit_str(it) };
Nika Layzell27726662017-10-24 23:16:35 -0400423}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800424# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800425pub fn visit_angle_bracketed_generic_arguments<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast AngleBracketedGenericArguments) {
David Tolnay2d4e08a2017-12-28 23:54:07 -0500426 if let Some(ref it) = _i . colon2_token { tokens_helper(_visitor, &(it).0) };
David Tolnaycc0f0372017-12-28 19:11:04 -0500427 tokens_helper(_visitor, &(& _i . lt_token).0);
David Tolnay56080682018-01-06 14:01:52 -0800428 for el in Punctuated::pairs(& _i . args) { let it = el.value(); _visitor.visit_generic_argument(it) };
David Tolnaycc0f0372017-12-28 19:11:04 -0500429 tokens_helper(_visitor, &(& _i . gt_token).0);
Nika Layzell27726662017-10-24 23:16:35 -0400430}
431# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800432pub fn visit_arg_captured<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ArgCaptured) {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500433 _visitor.visit_pat(& _i . pat);
David Tolnaycc0f0372017-12-28 19:11:04 -0500434 tokens_helper(_visitor, &(& _i . colon_token).0);
David Tolnayf0d63bf2017-12-26 12:29:47 -0500435 _visitor.visit_type(& _i . ty);
Nika Layzell27726662017-10-24 23:16:35 -0400436}
437# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800438pub fn visit_arg_self<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ArgSelf) {
David Tolnay24237fb2017-12-29 02:15:26 -0500439 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
David Tolnaycc0f0372017-12-28 19:11:04 -0500440 tokens_helper(_visitor, &(& _i . self_token).0);
Nika Layzell27726662017-10-24 23:16:35 -0400441}
442# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800443pub fn visit_arg_self_ref<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ArgSelfRef) {
David Tolnaycc0f0372017-12-28 19:11:04 -0500444 tokens_helper(_visitor, &(& _i . and_token).0);
David Tolnay4ba63a02017-12-28 15:53:05 -0500445 if let Some(ref it) = _i . lifetime { _visitor.visit_lifetime(it) };
David Tolnay24237fb2017-12-29 02:15:26 -0500446 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
David Tolnay4a3f59a2017-12-28 21:21:12 -0500447 tokens_helper(_visitor, &(& _i . self_token).0);
Nika Layzell27726662017-10-24 23:16:35 -0400448}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800449# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800450pub fn visit_arm<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Arm) {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500451 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnay18cc4d42018-03-31 18:47:20 +0200452 if let Some(ref it) = _i . leading_vert { tokens_helper(_visitor, &(it).0) };
David Tolnay56080682018-01-06 14:01:52 -0800453 for el in Punctuated::pairs(& _i . pats) { let it = el.value(); _visitor.visit_pat(it) };
David Tolnay8b4d3022017-12-29 12:11:10 -0500454 if let Some(ref it) = _i . guard {
455 tokens_helper(_visitor, &(& ( it ) . 0).0);
456 _visitor.visit_expr(& * ( it ) . 1);
457 };
David Tolnaydfb91432018-03-31 19:19:44 +0200458 tokens_helper(_visitor, &(& _i . fat_arrow_token).0);
David Tolnay4a918742017-12-28 16:54:41 -0500459 _visitor.visit_expr(& * _i . body);
David Tolnaycc0f0372017-12-28 19:11:04 -0500460 if let Some(ref it) = _i . comma { tokens_helper(_visitor, &(it).0) };
Nika Layzell27726662017-10-24 23:16:35 -0400461}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800462# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800463pub fn visit_attr_style<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast AttrStyle) {
Nika Layzell27726662017-10-24 23:16:35 -0400464 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -0500465 AttrStyle::Outer => { }
466 AttrStyle::Inner(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500467 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400468 }
469 }
470}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800471# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800472pub fn visit_attribute<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Attribute) {
David Tolnaycc0f0372017-12-28 19:11:04 -0500473 tokens_helper(_visitor, &(& _i . pound_token).0);
David Tolnay4a3f59a2017-12-28 21:21:12 -0500474 _visitor.visit_attr_style(& _i . style);
David Tolnay1e01f9c2017-12-28 20:16:19 -0500475 tokens_helper(_visitor, &(& _i . bracket_token).0);
David Tolnayf0d63bf2017-12-26 12:29:47 -0500476 _visitor.visit_path(& _i . path);
Nika Layzell27726662017-10-24 23:16:35 -0400477 // Skipped field _i . tts;
478 // Skipped field _i . is_sugared_doc;
479}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800480# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800481pub fn visit_bare_fn_arg<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast BareFnArg) {
David Tolnay5c4c0b52017-12-28 17:58:54 -0500482 if let Some(ref it) = _i . name {
483 _visitor.visit_bare_fn_arg_name(& ( it ) . 0);
David Tolnaycc0f0372017-12-28 19:11:04 -0500484 tokens_helper(_visitor, &(& ( it ) . 1).0);
David Tolnay5c4c0b52017-12-28 17:58:54 -0500485 };
David Tolnayf0d63bf2017-12-26 12:29:47 -0500486 _visitor.visit_type(& _i . ty);
Nika Layzell27726662017-10-24 23:16:35 -0400487}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800488# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800489pub fn visit_bare_fn_arg_name<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast BareFnArgName) {
Nika Layzell27726662017-10-24 23:16:35 -0400490 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -0500491 BareFnArgName::Named(ref _binding_0, ) => {
Alex Crichtona74a1c82018-05-16 10:20:44 -0700492 // Skipped field _binding_0;
Nika Layzell27726662017-10-24 23:16:35 -0400493 }
David Tolnay6702ade2017-12-30 23:38:15 -0500494 BareFnArgName::Wild(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500495 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400496 }
497 }
498}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800499# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800500pub fn visit_bin_op<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast BinOp) {
Nika Layzell27726662017-10-24 23:16:35 -0400501 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -0500502 BinOp::Add(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500503 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400504 }
David Tolnay6702ade2017-12-30 23:38:15 -0500505 BinOp::Sub(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500506 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400507 }
David Tolnay6702ade2017-12-30 23:38:15 -0500508 BinOp::Mul(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500509 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400510 }
David Tolnay6702ade2017-12-30 23:38:15 -0500511 BinOp::Div(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500512 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400513 }
David Tolnay6702ade2017-12-30 23:38:15 -0500514 BinOp::Rem(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500515 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400516 }
David Tolnay6702ade2017-12-30 23:38:15 -0500517 BinOp::And(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500518 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400519 }
David Tolnay6702ade2017-12-30 23:38:15 -0500520 BinOp::Or(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500521 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400522 }
David Tolnay6702ade2017-12-30 23:38:15 -0500523 BinOp::BitXor(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500524 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400525 }
David Tolnay6702ade2017-12-30 23:38:15 -0500526 BinOp::BitAnd(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500527 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400528 }
David Tolnay6702ade2017-12-30 23:38:15 -0500529 BinOp::BitOr(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500530 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400531 }
David Tolnay6702ade2017-12-30 23:38:15 -0500532 BinOp::Shl(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500533 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400534 }
David Tolnay6702ade2017-12-30 23:38:15 -0500535 BinOp::Shr(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500536 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400537 }
David Tolnay6702ade2017-12-30 23:38:15 -0500538 BinOp::Eq(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500539 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400540 }
David Tolnay6702ade2017-12-30 23:38:15 -0500541 BinOp::Lt(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500542 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400543 }
David Tolnay6702ade2017-12-30 23:38:15 -0500544 BinOp::Le(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500545 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400546 }
David Tolnay6702ade2017-12-30 23:38:15 -0500547 BinOp::Ne(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500548 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400549 }
David Tolnay6702ade2017-12-30 23:38:15 -0500550 BinOp::Ge(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500551 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400552 }
David Tolnay6702ade2017-12-30 23:38:15 -0500553 BinOp::Gt(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500554 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400555 }
David Tolnay6702ade2017-12-30 23:38:15 -0500556 BinOp::AddEq(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500557 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400558 }
David Tolnay6702ade2017-12-30 23:38:15 -0500559 BinOp::SubEq(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500560 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400561 }
David Tolnay6702ade2017-12-30 23:38:15 -0500562 BinOp::MulEq(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500563 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400564 }
David Tolnay6702ade2017-12-30 23:38:15 -0500565 BinOp::DivEq(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500566 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400567 }
David Tolnay6702ade2017-12-30 23:38:15 -0500568 BinOp::RemEq(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500569 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400570 }
David Tolnay6702ade2017-12-30 23:38:15 -0500571 BinOp::BitXorEq(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500572 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400573 }
David Tolnay6702ade2017-12-30 23:38:15 -0500574 BinOp::BitAndEq(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500575 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400576 }
David Tolnay6702ade2017-12-30 23:38:15 -0500577 BinOp::BitOrEq(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500578 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400579 }
David Tolnay6702ade2017-12-30 23:38:15 -0500580 BinOp::ShlEq(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500581 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400582 }
David Tolnay6702ade2017-12-30 23:38:15 -0500583 BinOp::ShrEq(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -0500584 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -0400585 }
586 }
587}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800588# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800589pub fn visit_binding<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Binding) {
Alex Crichtona74a1c82018-05-16 10:20:44 -0700590 // Skipped field _i . ident;
David Tolnay506e43a2017-12-29 11:34:36 -0500591 tokens_helper(_visitor, &(& _i . eq_token).0);
592 _visitor.visit_type(& _i . ty);
593}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800594# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800595pub fn visit_block<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Block) {
David Tolnay1e01f9c2017-12-28 20:16:19 -0500596 tokens_helper(_visitor, &(& _i . brace_token).0);
David Tolnayf0d63bf2017-12-26 12:29:47 -0500597 for it in & _i . stmts { _visitor.visit_stmt(it) };
Nika Layzell27726662017-10-24 23:16:35 -0400598}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800599# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800600pub fn visit_bound_lifetimes<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast BoundLifetimes) {
David Tolnaycc0f0372017-12-28 19:11:04 -0500601 tokens_helper(_visitor, &(& _i . for_token).0);
602 tokens_helper(_visitor, &(& _i . lt_token).0);
David Tolnay56080682018-01-06 14:01:52 -0800603 for el in Punctuated::pairs(& _i . lifetimes) { let it = el.value(); _visitor.visit_lifetime_def(it) };
David Tolnaycc0f0372017-12-28 19:11:04 -0500604 tokens_helper(_visitor, &(& _i . gt_token).0);
Nika Layzell27726662017-10-24 23:16:35 -0400605}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800606# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800607pub fn visit_const_param<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ConstParam) {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500608 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnaycc0f0372017-12-28 19:11:04 -0500609 tokens_helper(_visitor, &(& _i . const_token).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -0700610 // Skipped field _i . ident;
David Tolnaycc0f0372017-12-28 19:11:04 -0500611 tokens_helper(_visitor, &(& _i . colon_token).0);
David Tolnayf0d63bf2017-12-26 12:29:47 -0500612 _visitor.visit_type(& _i . ty);
David Tolnaycc0f0372017-12-28 19:11:04 -0500613 if let Some(ref it) = _i . eq_token { tokens_helper(_visitor, &(it).0) };
David Tolnayf0d63bf2017-12-26 12:29:47 -0500614 if let Some(ref it) = _i . default { _visitor.visit_expr(it) };
Nika Layzellf1fdc0b2017-12-04 19:58:32 -0500615}
David Tolnay0a0d78c2018-01-05 15:24:01 -0800616# [ cfg ( feature = "derive" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800617pub fn visit_data<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Data) {
David Tolnaye3d41b72017-12-31 15:24:00 -0500618 match *_i {
619 Data::Struct(ref _binding_0, ) => {
620 _visitor.visit_data_struct(_binding_0);
621 }
622 Data::Enum(ref _binding_0, ) => {
623 _visitor.visit_data_enum(_binding_0);
624 }
625 Data::Union(ref _binding_0, ) => {
626 _visitor.visit_data_union(_binding_0);
627 }
628 }
629}
David Tolnay0a0d78c2018-01-05 15:24:01 -0800630# [ cfg ( feature = "derive" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800631pub fn visit_data_enum<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast DataEnum) {
David Tolnaye3d41b72017-12-31 15:24:00 -0500632 tokens_helper(_visitor, &(& _i . enum_token).0);
633 tokens_helper(_visitor, &(& _i . brace_token).0);
David Tolnay56080682018-01-06 14:01:52 -0800634 for el in Punctuated::pairs(& _i . variants) { let it = el.value(); _visitor.visit_variant(it) };
David Tolnaye3d41b72017-12-31 15:24:00 -0500635}
David Tolnay0a0d78c2018-01-05 15:24:01 -0800636# [ cfg ( feature = "derive" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800637pub fn visit_data_struct<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast DataStruct) {
David Tolnaye3d41b72017-12-31 15:24:00 -0500638 tokens_helper(_visitor, &(& _i . struct_token).0);
639 _visitor.visit_fields(& _i . fields);
640 if let Some(ref it) = _i . semi_token { tokens_helper(_visitor, &(it).0) };
641}
David Tolnay0a0d78c2018-01-05 15:24:01 -0800642# [ cfg ( feature = "derive" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800643pub fn visit_data_union<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast DataUnion) {
David Tolnaye3d41b72017-12-31 15:24:00 -0500644 tokens_helper(_visitor, &(& _i . union_token).0);
645 _visitor.visit_fields_named(& _i . fields);
646}
David Tolnay0a0d78c2018-01-05 15:24:01 -0800647# [ cfg ( feature = "derive" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800648pub fn visit_derive_input<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast DeriveInput) {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500649 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnay4a3f59a2017-12-28 21:21:12 -0500650 _visitor.visit_visibility(& _i . vis);
Alex Crichtona74a1c82018-05-16 10:20:44 -0700651 // Skipped field _i . ident;
David Tolnayf0d63bf2017-12-26 12:29:47 -0500652 _visitor.visit_generics(& _i . generics);
David Tolnaye3d41b72017-12-31 15:24:00 -0500653 _visitor.visit_data(& _i . data);
Nika Layzell27726662017-10-24 23:16:35 -0400654}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800655# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800656pub fn visit_expr<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Expr) {
Nika Layzell27726662017-10-24 23:16:35 -0400657 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -0500658 Expr::Box(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500659 full!(_visitor.visit_expr_box(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400660 }
David Tolnay6702ade2017-12-30 23:38:15 -0500661 Expr::InPlace(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500662 full!(_visitor.visit_expr_in_place(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400663 }
David Tolnay6702ade2017-12-30 23:38:15 -0500664 Expr::Array(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500665 full!(_visitor.visit_expr_array(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400666 }
David Tolnay6702ade2017-12-30 23:38:15 -0500667 Expr::Call(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500668 _visitor.visit_expr_call(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -0400669 }
David Tolnay6702ade2017-12-30 23:38:15 -0500670 Expr::MethodCall(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500671 full!(_visitor.visit_expr_method_call(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400672 }
David Tolnay6702ade2017-12-30 23:38:15 -0500673 Expr::Tuple(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500674 full!(_visitor.visit_expr_tuple(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400675 }
David Tolnay6702ade2017-12-30 23:38:15 -0500676 Expr::Binary(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500677 _visitor.visit_expr_binary(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -0400678 }
David Tolnay6702ade2017-12-30 23:38:15 -0500679 Expr::Unary(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500680 _visitor.visit_expr_unary(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -0400681 }
David Tolnay6702ade2017-12-30 23:38:15 -0500682 Expr::Lit(ref _binding_0, ) => {
David Tolnay8c91b882017-12-28 23:04:32 -0500683 _visitor.visit_expr_lit(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -0400684 }
David Tolnay6702ade2017-12-30 23:38:15 -0500685 Expr::Cast(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500686 _visitor.visit_expr_cast(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -0400687 }
David Tolnay6702ade2017-12-30 23:38:15 -0500688 Expr::Type(ref _binding_0, ) => {
David Tolnay0cf94f22017-12-28 23:46:26 -0500689 full!(_visitor.visit_expr_type(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400690 }
David Tolnay6702ade2017-12-30 23:38:15 -0500691 Expr::If(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500692 full!(_visitor.visit_expr_if(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400693 }
David Tolnay6702ade2017-12-30 23:38:15 -0500694 Expr::IfLet(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500695 full!(_visitor.visit_expr_if_let(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400696 }
David Tolnay6702ade2017-12-30 23:38:15 -0500697 Expr::While(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500698 full!(_visitor.visit_expr_while(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400699 }
David Tolnay6702ade2017-12-30 23:38:15 -0500700 Expr::WhileLet(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500701 full!(_visitor.visit_expr_while_let(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400702 }
David Tolnay6702ade2017-12-30 23:38:15 -0500703 Expr::ForLoop(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500704 full!(_visitor.visit_expr_for_loop(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400705 }
David Tolnay6702ade2017-12-30 23:38:15 -0500706 Expr::Loop(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500707 full!(_visitor.visit_expr_loop(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400708 }
David Tolnay6702ade2017-12-30 23:38:15 -0500709 Expr::Match(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500710 full!(_visitor.visit_expr_match(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400711 }
David Tolnay6702ade2017-12-30 23:38:15 -0500712 Expr::Closure(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500713 full!(_visitor.visit_expr_closure(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400714 }
David Tolnay6702ade2017-12-30 23:38:15 -0500715 Expr::Unsafe(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500716 full!(_visitor.visit_expr_unsafe(_binding_0));
Nika Layzell640832a2017-12-04 13:37:09 -0500717 }
David Tolnay6702ade2017-12-30 23:38:15 -0500718 Expr::Block(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500719 full!(_visitor.visit_expr_block(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400720 }
David Tolnay6702ade2017-12-30 23:38:15 -0500721 Expr::Assign(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500722 full!(_visitor.visit_expr_assign(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400723 }
David Tolnay6702ade2017-12-30 23:38:15 -0500724 Expr::AssignOp(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500725 full!(_visitor.visit_expr_assign_op(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400726 }
David Tolnay6702ade2017-12-30 23:38:15 -0500727 Expr::Field(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500728 full!(_visitor.visit_expr_field(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400729 }
David Tolnay6702ade2017-12-30 23:38:15 -0500730 Expr::Index(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500731 _visitor.visit_expr_index(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -0400732 }
David Tolnay6702ade2017-12-30 23:38:15 -0500733 Expr::Range(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500734 full!(_visitor.visit_expr_range(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400735 }
David Tolnay6702ade2017-12-30 23:38:15 -0500736 Expr::Path(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500737 _visitor.visit_expr_path(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -0400738 }
David Tolnay00674ba2018-03-31 18:14:11 +0200739 Expr::Reference(ref _binding_0, ) => {
740 full!(_visitor.visit_expr_reference(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400741 }
David Tolnay6702ade2017-12-30 23:38:15 -0500742 Expr::Break(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500743 full!(_visitor.visit_expr_break(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400744 }
David Tolnay6702ade2017-12-30 23:38:15 -0500745 Expr::Continue(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500746 full!(_visitor.visit_expr_continue(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400747 }
David Tolnay6702ade2017-12-30 23:38:15 -0500748 Expr::Return(ref _binding_0, ) => {
David Tolnayc246cd32017-12-28 23:14:32 -0500749 full!(_visitor.visit_expr_return(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400750 }
David Tolnay6702ade2017-12-30 23:38:15 -0500751 Expr::Macro(ref _binding_0, ) => {
David Tolnay8c91b882017-12-28 23:04:32 -0500752 full!(_visitor.visit_expr_macro(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400753 }
David Tolnay6702ade2017-12-30 23:38:15 -0500754 Expr::Struct(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500755 full!(_visitor.visit_expr_struct(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400756 }
David Tolnay6702ade2017-12-30 23:38:15 -0500757 Expr::Repeat(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500758 full!(_visitor.visit_expr_repeat(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400759 }
David Tolnay6702ade2017-12-30 23:38:15 -0500760 Expr::Paren(ref _binding_0, ) => {
David Tolnay81ab4f62018-01-27 19:02:51 -0800761 _visitor.visit_expr_paren(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -0400762 }
David Tolnay6702ade2017-12-30 23:38:15 -0500763 Expr::Group(ref _binding_0, ) => {
David Tolnaye98775f2017-12-28 23:17:00 -0500764 full!(_visitor.visit_expr_group(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400765 }
David Tolnay6702ade2017-12-30 23:38:15 -0500766 Expr::Try(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500767 full!(_visitor.visit_expr_try(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400768 }
David Tolnay6702ade2017-12-30 23:38:15 -0500769 Expr::Catch(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500770 full!(_visitor.visit_expr_catch(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400771 }
David Tolnay6702ade2017-12-30 23:38:15 -0500772 Expr::Yield(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -0500773 full!(_visitor.visit_expr_yield(_binding_0));
Nika Layzell27726662017-10-24 23:16:35 -0400774 }
David Tolnay6702ade2017-12-30 23:38:15 -0500775 Expr::Verbatim(ref _binding_0, ) => {
David Tolnay2ae520a2017-12-29 11:19:50 -0500776 _visitor.visit_expr_verbatim(_binding_0);
777 }
Nika Layzell27726662017-10-24 23:16:35 -0400778 }
779}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800780# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800781pub fn visit_expr_array<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprArray) {
David Tolnay8c91b882017-12-28 23:04:32 -0500782 for it in & _i . attrs { _visitor.visit_attribute(it) };
783 tokens_helper(_visitor, &(& _i . bracket_token).0);
David Tolnay56080682018-01-06 14:01:52 -0800784 for el in Punctuated::pairs(& _i . elems) { let it = el.value(); _visitor.visit_expr(it) };
David Tolnay8c91b882017-12-28 23:04:32 -0500785}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800786# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800787pub fn visit_expr_assign<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprAssign) {
David Tolnay8c91b882017-12-28 23:04:32 -0500788 for it in & _i . attrs { _visitor.visit_attribute(it) };
789 _visitor.visit_expr(& * _i . left);
790 tokens_helper(_visitor, &(& _i . eq_token).0);
791 _visitor.visit_expr(& * _i . right);
792}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800793# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800794pub fn visit_expr_assign_op<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprAssignOp) {
David Tolnay8c91b882017-12-28 23:04:32 -0500795 for it in & _i . attrs { _visitor.visit_attribute(it) };
796 _visitor.visit_expr(& * _i . left);
797 _visitor.visit_bin_op(& _i . op);
798 _visitor.visit_expr(& * _i . right);
799}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800800# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800801pub fn visit_expr_binary<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprBinary) {
David Tolnay8c91b882017-12-28 23:04:32 -0500802 for it in & _i . attrs { _visitor.visit_attribute(it) };
803 _visitor.visit_expr(& * _i . left);
804 _visitor.visit_bin_op(& _i . op);
805 _visitor.visit_expr(& * _i . right);
806}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800807# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800808pub fn visit_expr_block<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprBlock) {
David Tolnay8c91b882017-12-28 23:04:32 -0500809 for it in & _i . attrs { _visitor.visit_attribute(it) };
810 _visitor.visit_block(& _i . block);
811}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800812# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800813pub fn visit_expr_box<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprBox) {
David Tolnay8c91b882017-12-28 23:04:32 -0500814 for it in & _i . attrs { _visitor.visit_attribute(it) };
815 tokens_helper(_visitor, &(& _i . box_token).0);
816 _visitor.visit_expr(& * _i . expr);
817}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800818# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800819pub fn visit_expr_break<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprBreak) {
David Tolnay8c91b882017-12-28 23:04:32 -0500820 for it in & _i . attrs { _visitor.visit_attribute(it) };
821 tokens_helper(_visitor, &(& _i . break_token).0);
822 if let Some(ref it) = _i . label { _visitor.visit_lifetime(it) };
823 if let Some(ref it) = _i . expr { _visitor.visit_expr(& * * it) };
824}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800825# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800826pub fn visit_expr_call<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprCall) {
David Tolnay8c91b882017-12-28 23:04:32 -0500827 for it in & _i . attrs { _visitor.visit_attribute(it) };
828 _visitor.visit_expr(& * _i . func);
829 tokens_helper(_visitor, &(& _i . paren_token).0);
David Tolnay56080682018-01-06 14:01:52 -0800830 for el in Punctuated::pairs(& _i . args) { let it = el.value(); _visitor.visit_expr(it) };
David Tolnay8c91b882017-12-28 23:04:32 -0500831}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800832# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800833pub fn visit_expr_cast<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprCast) {
David Tolnay8c91b882017-12-28 23:04:32 -0500834 for it in & _i . attrs { _visitor.visit_attribute(it) };
835 _visitor.visit_expr(& * _i . expr);
836 tokens_helper(_visitor, &(& _i . as_token).0);
837 _visitor.visit_type(& * _i . ty);
838}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800839# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800840pub fn visit_expr_catch<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprCatch) {
David Tolnay8c91b882017-12-28 23:04:32 -0500841 for it in & _i . attrs { _visitor.visit_attribute(it) };
842 tokens_helper(_visitor, &(& _i . do_token).0);
843 tokens_helper(_visitor, &(& _i . catch_token).0);
844 _visitor.visit_block(& _i . block);
845}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800846# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800847pub fn visit_expr_closure<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprClosure) {
David Tolnay8c91b882017-12-28 23:04:32 -0500848 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnay13d4c0e2018-03-31 20:53:59 +0200849 if let Some(ref it) = _i . movability { tokens_helper(_visitor, &(it).0) };
David Tolnayefc96fb2017-12-29 02:03:15 -0500850 if let Some(ref it) = _i . capture { tokens_helper(_visitor, &(it).0) };
David Tolnay8c91b882017-12-28 23:04:32 -0500851 tokens_helper(_visitor, &(& _i . or1_token).0);
David Tolnay56080682018-01-06 14:01:52 -0800852 for el in Punctuated::pairs(& _i . inputs) { let it = el.value(); _visitor.visit_fn_arg(it) };
David Tolnay8c91b882017-12-28 23:04:32 -0500853 tokens_helper(_visitor, &(& _i . or2_token).0);
854 _visitor.visit_return_type(& _i . output);
855 _visitor.visit_expr(& * _i . body);
856}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800857# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800858pub fn visit_expr_continue<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprContinue) {
David Tolnay8c91b882017-12-28 23:04:32 -0500859 for it in & _i . attrs { _visitor.visit_attribute(it) };
860 tokens_helper(_visitor, &(& _i . continue_token).0);
861 if let Some(ref it) = _i . label { _visitor.visit_lifetime(it) };
862}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800863# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800864pub fn visit_expr_field<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprField) {
David Tolnay8c91b882017-12-28 23:04:32 -0500865 for it in & _i . attrs { _visitor.visit_attribute(it) };
866 _visitor.visit_expr(& * _i . base);
867 tokens_helper(_visitor, &(& _i . dot_token).0);
868 _visitor.visit_member(& _i . member);
869}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800870# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800871pub fn visit_expr_for_loop<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprForLoop) {
David Tolnay8c91b882017-12-28 23:04:32 -0500872 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnaybcd498f2017-12-29 12:02:33 -0500873 if let Some(ref it) = _i . label { _visitor.visit_label(it) };
David Tolnay8c91b882017-12-28 23:04:32 -0500874 tokens_helper(_visitor, &(& _i . for_token).0);
875 _visitor.visit_pat(& * _i . pat);
876 tokens_helper(_visitor, &(& _i . in_token).0);
877 _visitor.visit_expr(& * _i . expr);
878 _visitor.visit_block(& _i . body);
879}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800880# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800881pub fn visit_expr_group<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprGroup) {
David Tolnay8c91b882017-12-28 23:04:32 -0500882 for it in & _i . attrs { _visitor.visit_attribute(it) };
883 tokens_helper(_visitor, &(& _i . group_token).0);
884 _visitor.visit_expr(& * _i . expr);
885}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800886# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800887pub fn visit_expr_if<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprIf) {
David Tolnay8c91b882017-12-28 23:04:32 -0500888 for it in & _i . attrs { _visitor.visit_attribute(it) };
889 tokens_helper(_visitor, &(& _i . if_token).0);
890 _visitor.visit_expr(& * _i . cond);
David Tolnay2ccf32a2017-12-29 00:34:26 -0500891 _visitor.visit_block(& _i . then_branch);
892 if let Some(ref it) = _i . else_branch {
893 tokens_helper(_visitor, &(& ( it ) . 0).0);
894 _visitor.visit_expr(& * ( it ) . 1);
895 };
David Tolnay8c91b882017-12-28 23:04:32 -0500896}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800897# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800898pub fn visit_expr_if_let<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprIfLet) {
David Tolnay8c91b882017-12-28 23:04:32 -0500899 for it in & _i . attrs { _visitor.visit_attribute(it) };
900 tokens_helper(_visitor, &(& _i . if_token).0);
901 tokens_helper(_visitor, &(& _i . let_token).0);
David Tolnay5b5b7d22018-03-31 21:05:00 +0200902 for el in Punctuated::pairs(& _i . pats) { let it = el.value(); _visitor.visit_pat(it) };
David Tolnay8c91b882017-12-28 23:04:32 -0500903 tokens_helper(_visitor, &(& _i . eq_token).0);
904 _visitor.visit_expr(& * _i . expr);
David Tolnay2ccf32a2017-12-29 00:34:26 -0500905 _visitor.visit_block(& _i . then_branch);
906 if let Some(ref it) = _i . else_branch {
907 tokens_helper(_visitor, &(& ( it ) . 0).0);
908 _visitor.visit_expr(& * ( it ) . 1);
909 };
David Tolnay8c91b882017-12-28 23:04:32 -0500910}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800911# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800912pub fn visit_expr_in_place<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprInPlace) {
David Tolnay8c91b882017-12-28 23:04:32 -0500913 for it in & _i . attrs { _visitor.visit_attribute(it) };
914 _visitor.visit_expr(& * _i . place);
David Tolnay8701a5c2017-12-28 23:31:10 -0500915 tokens_helper(_visitor, &(& _i . arrow_token).0);
David Tolnay8c91b882017-12-28 23:04:32 -0500916 _visitor.visit_expr(& * _i . value);
917}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800918# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800919pub fn visit_expr_index<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprIndex) {
David Tolnay8c91b882017-12-28 23:04:32 -0500920 for it in & _i . attrs { _visitor.visit_attribute(it) };
921 _visitor.visit_expr(& * _i . expr);
922 tokens_helper(_visitor, &(& _i . bracket_token).0);
923 _visitor.visit_expr(& * _i . index);
924}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800925# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800926pub fn visit_expr_lit<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprLit) {
David Tolnay8c91b882017-12-28 23:04:32 -0500927 for it in & _i . attrs { _visitor.visit_attribute(it) };
928 _visitor.visit_lit(& _i . lit);
929}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800930# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800931pub fn visit_expr_loop<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprLoop) {
David Tolnay8c91b882017-12-28 23:04:32 -0500932 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnaybcd498f2017-12-29 12:02:33 -0500933 if let Some(ref it) = _i . label { _visitor.visit_label(it) };
David Tolnay4a3f59a2017-12-28 21:21:12 -0500934 tokens_helper(_visitor, &(& _i . loop_token).0);
935 _visitor.visit_block(& _i . body);
Nika Layzell27726662017-10-24 23:16:35 -0400936}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800937# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800938pub fn visit_expr_macro<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprMacro) {
David Tolnay8c91b882017-12-28 23:04:32 -0500939 for it in & _i . attrs { _visitor.visit_attribute(it) };
940 _visitor.visit_macro(& _i . mac);
941}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800942# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800943pub fn visit_expr_match<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprMatch) {
David Tolnay8c91b882017-12-28 23:04:32 -0500944 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnaycc0f0372017-12-28 19:11:04 -0500945 tokens_helper(_visitor, &(& _i . match_token).0);
David Tolnay4a918742017-12-28 16:54:41 -0500946 _visitor.visit_expr(& * _i . expr);
David Tolnay4a3f59a2017-12-28 21:21:12 -0500947 tokens_helper(_visitor, &(& _i . brace_token).0);
David Tolnayf0d63bf2017-12-26 12:29:47 -0500948 for it in & _i . arms { _visitor.visit_arm(it) };
Nika Layzell27726662017-10-24 23:16:35 -0400949}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800950# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800951pub fn visit_expr_method_call<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprMethodCall) {
David Tolnay8c91b882017-12-28 23:04:32 -0500952 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnay76418512017-12-28 23:47:47 -0500953 _visitor.visit_expr(& * _i . receiver);
David Tolnaycc0f0372017-12-28 19:11:04 -0500954 tokens_helper(_visitor, &(& _i . dot_token).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -0700955 // Skipped field _i . method;
David Tolnayd60cfec2017-12-29 00:21:38 -0500956 if let Some(ref it) = _i . turbofish { _visitor.visit_method_turbofish(it) };
David Tolnay4a3f59a2017-12-28 21:21:12 -0500957 tokens_helper(_visitor, &(& _i . paren_token).0);
David Tolnay56080682018-01-06 14:01:52 -0800958 for el in Punctuated::pairs(& _i . args) { let it = el.value(); _visitor.visit_expr(it) };
Nika Layzell27726662017-10-24 23:16:35 -0400959}
David Tolnay81ab4f62018-01-27 19:02:51 -0800960# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800961pub fn visit_expr_paren<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprParen) {
David Tolnay8c91b882017-12-28 23:04:32 -0500962 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnay1e01f9c2017-12-28 20:16:19 -0500963 tokens_helper(_visitor, &(& _i . paren_token).0);
David Tolnay4a3f59a2017-12-28 21:21:12 -0500964 _visitor.visit_expr(& * _i . expr);
Nika Layzell27726662017-10-24 23:16:35 -0400965}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800966# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800967pub fn visit_expr_path<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprPath) {
David Tolnay8c91b882017-12-28 23:04:32 -0500968 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnayf0d63bf2017-12-26 12:29:47 -0500969 if let Some(ref it) = _i . qself { _visitor.visit_qself(it) };
970 _visitor.visit_path(& _i . path);
Nika Layzell27726662017-10-24 23:16:35 -0400971}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800972# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800973pub fn visit_expr_range<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprRange) {
David Tolnay8c91b882017-12-28 23:04:32 -0500974 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnay4a918742017-12-28 16:54:41 -0500975 if let Some(ref it) = _i . from { _visitor.visit_expr(& * * it) };
David Tolnayf0d63bf2017-12-26 12:29:47 -0500976 _visitor.visit_range_limits(& _i . limits);
David Tolnay4a3f59a2017-12-28 21:21:12 -0500977 if let Some(ref it) = _i . to { _visitor.visit_expr(& * * it) };
Nika Layzell27726662017-10-24 23:16:35 -0400978}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800979# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay00674ba2018-03-31 18:14:11 +0200980pub fn visit_expr_reference<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprReference) {
981 for it in & _i . attrs { _visitor.visit_attribute(it) };
982 tokens_helper(_visitor, &(& _i . and_token).0);
983 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
984 _visitor.visit_expr(& * _i . expr);
985}
986# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800987pub fn visit_expr_repeat<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprRepeat) {
David Tolnay8c91b882017-12-28 23:04:32 -0500988 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnay1e01f9c2017-12-28 20:16:19 -0500989 tokens_helper(_visitor, &(& _i . bracket_token).0);
David Tolnay4a918742017-12-28 16:54:41 -0500990 _visitor.visit_expr(& * _i . expr);
David Tolnay4a3f59a2017-12-28 21:21:12 -0500991 tokens_helper(_visitor, &(& _i . semi_token).0);
David Tolnay84d80442018-01-07 01:03:20 -0800992 _visitor.visit_expr(& * _i . len);
Nika Layzell27726662017-10-24 23:16:35 -0400993}
David Tolnay3cfd1d32018-01-03 00:22:08 -0800994# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -0800995pub fn visit_expr_return<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprReturn) {
David Tolnay8c91b882017-12-28 23:04:32 -0500996 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnaycc0f0372017-12-28 19:11:04 -0500997 tokens_helper(_visitor, &(& _i . return_token).0);
David Tolnay4a3f59a2017-12-28 21:21:12 -0500998 if let Some(ref it) = _i . expr { _visitor.visit_expr(& * * it) };
Nika Layzell27726662017-10-24 23:16:35 -0400999}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001000# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001001pub fn visit_expr_struct<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprStruct) {
David Tolnay8c91b882017-12-28 23:04:32 -05001002 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnayf0d63bf2017-12-26 12:29:47 -05001003 _visitor.visit_path(& _i . path);
David Tolnay1e01f9c2017-12-28 20:16:19 -05001004 tokens_helper(_visitor, &(& _i . brace_token).0);
David Tolnay56080682018-01-06 14:01:52 -08001005 for el in Punctuated::pairs(& _i . fields) { let it = el.value(); _visitor.visit_field_value(it) };
David Tolnay4a3f59a2017-12-28 21:21:12 -05001006 if let Some(ref it) = _i . dot2_token { tokens_helper(_visitor, &(it).0) };
1007 if let Some(ref it) = _i . rest { _visitor.visit_expr(& * * it) };
Nika Layzell27726662017-10-24 23:16:35 -04001008}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001009# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001010pub fn visit_expr_try<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprTry) {
David Tolnay8c91b882017-12-28 23:04:32 -05001011 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnay4a918742017-12-28 16:54:41 -05001012 _visitor.visit_expr(& * _i . expr);
David Tolnaycc0f0372017-12-28 19:11:04 -05001013 tokens_helper(_visitor, &(& _i . question_token).0);
Nika Layzell27726662017-10-24 23:16:35 -04001014}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001015# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001016pub fn visit_expr_tuple<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprTuple) {
David Tolnay8c91b882017-12-28 23:04:32 -05001017 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnay1e01f9c2017-12-28 20:16:19 -05001018 tokens_helper(_visitor, &(& _i . paren_token).0);
David Tolnay56080682018-01-06 14:01:52 -08001019 for el in Punctuated::pairs(& _i . elems) { let it = el.value(); _visitor.visit_expr(it) };
David Tolnay05362582017-12-26 01:33:57 -05001020}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001021# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001022pub fn visit_expr_type<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprType) {
David Tolnay8c91b882017-12-28 23:04:32 -05001023 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnay4a918742017-12-28 16:54:41 -05001024 _visitor.visit_expr(& * _i . expr);
David Tolnaycc0f0372017-12-28 19:11:04 -05001025 tokens_helper(_visitor, &(& _i . colon_token).0);
David Tolnay4a918742017-12-28 16:54:41 -05001026 _visitor.visit_type(& * _i . ty);
Nika Layzell27726662017-10-24 23:16:35 -04001027}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001028# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001029pub fn visit_expr_unary<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprUnary) {
David Tolnay8c91b882017-12-28 23:04:32 -05001030 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnayf0d63bf2017-12-26 12:29:47 -05001031 _visitor.visit_un_op(& _i . op);
David Tolnay4a918742017-12-28 16:54:41 -05001032 _visitor.visit_expr(& * _i . expr);
Nika Layzell27726662017-10-24 23:16:35 -04001033}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001034# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001035pub fn visit_expr_unsafe<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprUnsafe) {
David Tolnay8c91b882017-12-28 23:04:32 -05001036 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnaycc0f0372017-12-28 19:11:04 -05001037 tokens_helper(_visitor, &(& _i . unsafe_token).0);
David Tolnayf0d63bf2017-12-26 12:29:47 -05001038 _visitor.visit_block(& _i . block);
Nika Layzell640832a2017-12-04 13:37:09 -05001039}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001040# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001041pub fn visit_expr_verbatim<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprVerbatim) {
David Tolnay2ae520a2017-12-29 11:19:50 -05001042 // Skipped field _i . tts;
1043}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001044# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001045pub fn visit_expr_while<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprWhile) {
David Tolnay8c91b882017-12-28 23:04:32 -05001046 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnaybcd498f2017-12-29 12:02:33 -05001047 if let Some(ref it) = _i . label { _visitor.visit_label(it) };
David Tolnaycc0f0372017-12-28 19:11:04 -05001048 tokens_helper(_visitor, &(& _i . while_token).0);
David Tolnay4a3f59a2017-12-28 21:21:12 -05001049 _visitor.visit_expr(& * _i . cond);
1050 _visitor.visit_block(& _i . body);
Nika Layzell27726662017-10-24 23:16:35 -04001051}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001052# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001053pub fn visit_expr_while_let<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprWhileLet) {
David Tolnay8c91b882017-12-28 23:04:32 -05001054 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnaybcd498f2017-12-29 12:02:33 -05001055 if let Some(ref it) = _i . label { _visitor.visit_label(it) };
David Tolnaycc0f0372017-12-28 19:11:04 -05001056 tokens_helper(_visitor, &(& _i . while_token).0);
1057 tokens_helper(_visitor, &(& _i . let_token).0);
David Tolnay5b5b7d22018-03-31 21:05:00 +02001058 for el in Punctuated::pairs(& _i . pats) { let it = el.value(); _visitor.visit_pat(it) };
David Tolnaycc0f0372017-12-28 19:11:04 -05001059 tokens_helper(_visitor, &(& _i . eq_token).0);
David Tolnay4a3f59a2017-12-28 21:21:12 -05001060 _visitor.visit_expr(& * _i . expr);
1061 _visitor.visit_block(& _i . body);
Nika Layzell27726662017-10-24 23:16:35 -04001062}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001063# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001064pub fn visit_expr_yield<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprYield) {
David Tolnay8c91b882017-12-28 23:04:32 -05001065 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnaycc0f0372017-12-28 19:11:04 -05001066 tokens_helper(_visitor, &(& _i . yield_token).0);
David Tolnay4a918742017-12-28 16:54:41 -05001067 if let Some(ref it) = _i . expr { _visitor.visit_expr(& * * it) };
Nika Layzell27726662017-10-24 23:16:35 -04001068}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001069# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001070pub fn visit_field<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Field) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001071 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnay4a3f59a2017-12-28 21:21:12 -05001072 _visitor.visit_visibility(& _i . vis);
Alex Crichtona74a1c82018-05-16 10:20:44 -07001073 // Skipped field _i . ident;
David Tolnaycc0f0372017-12-28 19:11:04 -05001074 if let Some(ref it) = _i . colon_token { tokens_helper(_visitor, &(it).0) };
David Tolnay4a3f59a2017-12-28 21:21:12 -05001075 _visitor.visit_type(& _i . ty);
Nika Layzell27726662017-10-24 23:16:35 -04001076}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001077# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001078pub fn visit_field_pat<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast FieldPat) {
David Tolnay4a3f59a2017-12-28 21:21:12 -05001079 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnay85b69a42017-12-27 20:43:10 -05001080 _visitor.visit_member(& _i . member);
David Tolnay4a3f59a2017-12-28 21:21:12 -05001081 if let Some(ref it) = _i . colon_token { tokens_helper(_visitor, &(it).0) };
David Tolnay4a918742017-12-28 16:54:41 -05001082 _visitor.visit_pat(& * _i . pat);
Nika Layzell27726662017-10-24 23:16:35 -04001083}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001084# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001085pub fn visit_field_value<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast FieldValue) {
David Tolnay85b69a42017-12-27 20:43:10 -05001086 for it in & _i . attrs { _visitor.visit_attribute(it) };
1087 _visitor.visit_member(& _i . member);
David Tolnaycc0f0372017-12-28 19:11:04 -05001088 if let Some(ref it) = _i . colon_token { tokens_helper(_visitor, &(it).0) };
David Tolnayf0d63bf2017-12-26 12:29:47 -05001089 _visitor.visit_expr(& _i . expr);
Nika Layzell27726662017-10-24 23:16:35 -04001090}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001091# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001092pub fn visit_fields<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Fields) {
David Tolnaye3d41b72017-12-31 15:24:00 -05001093 match *_i {
1094 Fields::Named(ref _binding_0, ) => {
1095 _visitor.visit_fields_named(_binding_0);
1096 }
1097 Fields::Unnamed(ref _binding_0, ) => {
1098 _visitor.visit_fields_unnamed(_binding_0);
1099 }
1100 Fields::Unit => { }
1101 }
1102}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001103# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001104pub fn visit_fields_named<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast FieldsNamed) {
David Tolnaye3d41b72017-12-31 15:24:00 -05001105 tokens_helper(_visitor, &(& _i . brace_token).0);
David Tolnay56080682018-01-06 14:01:52 -08001106 for el in Punctuated::pairs(& _i . named) { let it = el.value(); _visitor.visit_field(it) };
David Tolnaye3d41b72017-12-31 15:24:00 -05001107}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001108# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001109pub fn visit_fields_unnamed<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast FieldsUnnamed) {
David Tolnaye3d41b72017-12-31 15:24:00 -05001110 tokens_helper(_visitor, &(& _i . paren_token).0);
David Tolnay56080682018-01-06 14:01:52 -08001111 for el in Punctuated::pairs(& _i . unnamed) { let it = el.value(); _visitor.visit_field(it) };
David Tolnaye3d41b72017-12-31 15:24:00 -05001112}
Nika Layzell27726662017-10-24 23:16:35 -04001113# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001114pub fn visit_file<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast File) {
Nika Layzell27726662017-10-24 23:16:35 -04001115 // Skipped field _i . shebang;
David Tolnayf0d63bf2017-12-26 12:29:47 -05001116 for it in & _i . attrs { _visitor.visit_attribute(it) };
1117 for it in & _i . items { _visitor.visit_item(it) };
Nika Layzell27726662017-10-24 23:16:35 -04001118}
1119# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001120pub fn visit_fn_arg<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast FnArg) {
Nika Layzell27726662017-10-24 23:16:35 -04001121 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05001122 FnArg::SelfRef(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001123 _visitor.visit_arg_self_ref(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001124 }
David Tolnay6702ade2017-12-30 23:38:15 -05001125 FnArg::SelfValue(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001126 _visitor.visit_arg_self(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001127 }
David Tolnay6702ade2017-12-30 23:38:15 -05001128 FnArg::Captured(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001129 _visitor.visit_arg_captured(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001130 }
David Tolnay6702ade2017-12-30 23:38:15 -05001131 FnArg::Inferred(ref _binding_0, ) => {
David Tolnay80ed55f2017-12-27 22:54:40 -05001132 _visitor.visit_pat(_binding_0);
1133 }
David Tolnay6702ade2017-12-30 23:38:15 -05001134 FnArg::Ignored(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001135 _visitor.visit_type(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001136 }
1137 }
1138}
1139# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001140pub fn visit_fn_decl<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast FnDecl) {
David Tolnaycc0f0372017-12-28 19:11:04 -05001141 tokens_helper(_visitor, &(& _i . fn_token).0);
David Tolnay4a3f59a2017-12-28 21:21:12 -05001142 _visitor.visit_generics(& _i . generics);
David Tolnay1e01f9c2017-12-28 20:16:19 -05001143 tokens_helper(_visitor, &(& _i . paren_token).0);
David Tolnay56080682018-01-06 14:01:52 -08001144 for el in Punctuated::pairs(& _i . inputs) { let it = el.value(); _visitor.visit_fn_arg(it) };
David Tolnaycc0f0372017-12-28 19:11:04 -05001145 if let Some(ref it) = _i . variadic { tokens_helper(_visitor, &(it).0) };
David Tolnay4a3f59a2017-12-28 21:21:12 -05001146 _visitor.visit_return_type(& _i . output);
Nika Layzell27726662017-10-24 23:16:35 -04001147}
1148# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001149pub fn visit_foreign_item<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ForeignItem) {
Nika Layzell27726662017-10-24 23:16:35 -04001150 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05001151 ForeignItem::Fn(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001152 _visitor.visit_foreign_item_fn(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001153 }
David Tolnay6702ade2017-12-30 23:38:15 -05001154 ForeignItem::Static(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001155 _visitor.visit_foreign_item_static(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001156 }
David Tolnay6702ade2017-12-30 23:38:15 -05001157 ForeignItem::Type(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001158 _visitor.visit_foreign_item_type(_binding_0);
David Tolnay199bcbb2017-11-12 10:33:52 -08001159 }
David Tolnay6702ade2017-12-30 23:38:15 -05001160 ForeignItem::Verbatim(ref _binding_0, ) => {
David Tolnay2ae520a2017-12-29 11:19:50 -05001161 _visitor.visit_foreign_item_verbatim(_binding_0);
1162 }
Nika Layzell27726662017-10-24 23:16:35 -04001163 }
1164}
1165# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001166pub fn visit_foreign_item_fn<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ForeignItemFn) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001167 for it in & _i . attrs { _visitor.visit_attribute(it) };
1168 _visitor.visit_visibility(& _i . vis);
Alex Crichtona74a1c82018-05-16 10:20:44 -07001169 // Skipped field _i . ident;
David Tolnay4a918742017-12-28 16:54:41 -05001170 _visitor.visit_fn_decl(& * _i . decl);
David Tolnaycc0f0372017-12-28 19:11:04 -05001171 tokens_helper(_visitor, &(& _i . semi_token).0);
David Tolnay8894f602017-11-11 12:11:04 -08001172}
1173# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001174pub fn visit_foreign_item_static<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ForeignItemStatic) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001175 for it in & _i . attrs { _visitor.visit_attribute(it) };
1176 _visitor.visit_visibility(& _i . vis);
David Tolnaycc0f0372017-12-28 19:11:04 -05001177 tokens_helper(_visitor, &(& _i . static_token).0);
David Tolnay24237fb2017-12-29 02:15:26 -05001178 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
Alex Crichtona74a1c82018-05-16 10:20:44 -07001179 // Skipped field _i . ident;
David Tolnaycc0f0372017-12-28 19:11:04 -05001180 tokens_helper(_visitor, &(& _i . colon_token).0);
David Tolnay4a918742017-12-28 16:54:41 -05001181 _visitor.visit_type(& * _i . ty);
David Tolnaycc0f0372017-12-28 19:11:04 -05001182 tokens_helper(_visitor, &(& _i . semi_token).0);
Nika Layzell27726662017-10-24 23:16:35 -04001183}
David Tolnay199bcbb2017-11-12 10:33:52 -08001184# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001185pub fn visit_foreign_item_type<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ForeignItemType) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001186 for it in & _i . attrs { _visitor.visit_attribute(it) };
1187 _visitor.visit_visibility(& _i . vis);
David Tolnaycc0f0372017-12-28 19:11:04 -05001188 tokens_helper(_visitor, &(& _i . type_token).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -07001189 // Skipped field _i . ident;
David Tolnaycc0f0372017-12-28 19:11:04 -05001190 tokens_helper(_visitor, &(& _i . semi_token).0);
David Tolnay199bcbb2017-11-12 10:33:52 -08001191}
David Tolnay2ae520a2017-12-29 11:19:50 -05001192# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001193pub fn visit_foreign_item_verbatim<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ForeignItemVerbatim) {
David Tolnay2ae520a2017-12-29 11:19:50 -05001194 // Skipped field _i . tts;
1195}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001196# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001197pub fn visit_generic_argument<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast GenericArgument) {
Nika Layzell357885a2017-12-04 15:47:07 -05001198 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05001199 GenericArgument::Lifetime(ref _binding_0, ) => {
David Tolnay4ba63a02017-12-28 15:53:05 -05001200 _visitor.visit_lifetime(_binding_0);
Nika Layzell357885a2017-12-04 15:47:07 -05001201 }
David Tolnay6702ade2017-12-30 23:38:15 -05001202 GenericArgument::Type(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001203 _visitor.visit_type(_binding_0);
Nika Layzell357885a2017-12-04 15:47:07 -05001204 }
David Tolnay6702ade2017-12-30 23:38:15 -05001205 GenericArgument::Binding(ref _binding_0, ) => {
David Tolnay506e43a2017-12-29 11:34:36 -05001206 _visitor.visit_binding(_binding_0);
Nika Layzell357885a2017-12-04 15:47:07 -05001207 }
David Tolnay6702ade2017-12-30 23:38:15 -05001208 GenericArgument::Const(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001209 _visitor.visit_expr(_binding_0);
Nika Layzellc680e612017-12-04 19:07:20 -05001210 }
Nika Layzell357885a2017-12-04 15:47:07 -05001211 }
1212}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001213# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001214pub fn visit_generic_method_argument<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast GenericMethodArgument) {
David Tolnayd60cfec2017-12-29 00:21:38 -05001215 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05001216 GenericMethodArgument::Type(ref _binding_0, ) => {
David Tolnayd60cfec2017-12-29 00:21:38 -05001217 _visitor.visit_type(_binding_0);
1218 }
David Tolnay6702ade2017-12-30 23:38:15 -05001219 GenericMethodArgument::Const(ref _binding_0, ) => {
David Tolnayd60cfec2017-12-29 00:21:38 -05001220 _visitor.visit_expr(_binding_0);
1221 }
1222 }
1223}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001224# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001225pub fn visit_generic_param<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast GenericParam) {
David Tolnayc2f1aba2017-11-12 20:29:22 -08001226 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05001227 GenericParam::Type(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001228 _visitor.visit_type_param(_binding_0);
David Tolnayc2f1aba2017-11-12 20:29:22 -08001229 }
David Tolnay517f3692018-01-01 20:17:23 -08001230 GenericParam::Lifetime(ref _binding_0, ) => {
1231 _visitor.visit_lifetime_def(_binding_0);
1232 }
David Tolnay6702ade2017-12-30 23:38:15 -05001233 GenericParam::Const(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001234 _visitor.visit_const_param(_binding_0);
Nika Layzellf1fdc0b2017-12-04 19:58:32 -05001235 }
David Tolnayc2f1aba2017-11-12 20:29:22 -08001236 }
1237}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001238# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001239pub fn visit_generics<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Generics) {
David Tolnaycc0f0372017-12-28 19:11:04 -05001240 if let Some(ref it) = _i . lt_token { tokens_helper(_visitor, &(it).0) };
David Tolnay56080682018-01-06 14:01:52 -08001241 for el in Punctuated::pairs(& _i . params) { let it = el.value(); _visitor.visit_generic_param(it) };
David Tolnaycc0f0372017-12-28 19:11:04 -05001242 if let Some(ref it) = _i . gt_token { tokens_helper(_visitor, &(it).0) };
David Tolnayac997dd2017-12-27 23:18:22 -05001243 if let Some(ref it) = _i . where_clause { _visitor.visit_where_clause(it) };
Nika Layzell27726662017-10-24 23:16:35 -04001244}
1245# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001246pub fn visit_impl_item<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ImplItem) {
Nika Layzell27726662017-10-24 23:16:35 -04001247 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05001248 ImplItem::Const(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001249 _visitor.visit_impl_item_const(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001250 }
David Tolnay6702ade2017-12-30 23:38:15 -05001251 ImplItem::Method(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001252 _visitor.visit_impl_item_method(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001253 }
David Tolnay6702ade2017-12-30 23:38:15 -05001254 ImplItem::Type(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001255 _visitor.visit_impl_item_type(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001256 }
David Tolnay6702ade2017-12-30 23:38:15 -05001257 ImplItem::Macro(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001258 _visitor.visit_impl_item_macro(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001259 }
David Tolnay6702ade2017-12-30 23:38:15 -05001260 ImplItem::Verbatim(ref _binding_0, ) => {
David Tolnay2ae520a2017-12-29 11:19:50 -05001261 _visitor.visit_impl_item_verbatim(_binding_0);
1262 }
Nika Layzell27726662017-10-24 23:16:35 -04001263 }
1264}
1265# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001266pub fn visit_impl_item_const<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ImplItemConst) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001267 for it in & _i . attrs { _visitor.visit_attribute(it) };
1268 _visitor.visit_visibility(& _i . vis);
David Tolnay360a6342017-12-29 02:22:11 -05001269 if let Some(ref it) = _i . defaultness { tokens_helper(_visitor, &(it).0) };
David Tolnaycc0f0372017-12-28 19:11:04 -05001270 tokens_helper(_visitor, &(& _i . const_token).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -07001271 // Skipped field _i . ident;
David Tolnaycc0f0372017-12-28 19:11:04 -05001272 tokens_helper(_visitor, &(& _i . colon_token).0);
David Tolnayf0d63bf2017-12-26 12:29:47 -05001273 _visitor.visit_type(& _i . ty);
David Tolnaycc0f0372017-12-28 19:11:04 -05001274 tokens_helper(_visitor, &(& _i . eq_token).0);
David Tolnayf0d63bf2017-12-26 12:29:47 -05001275 _visitor.visit_expr(& _i . expr);
David Tolnaycc0f0372017-12-28 19:11:04 -05001276 tokens_helper(_visitor, &(& _i . semi_token).0);
David Tolnay857628c2017-11-11 12:25:31 -08001277}
1278# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001279pub fn visit_impl_item_macro<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ImplItemMacro) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001280 for it in & _i . attrs { _visitor.visit_attribute(it) };
1281 _visitor.visit_macro(& _i . mac);
David Tolnaycc0f0372017-12-28 19:11:04 -05001282 if let Some(ref it) = _i . semi_token { tokens_helper(_visitor, &(it).0) };
David Tolnay857628c2017-11-11 12:25:31 -08001283}
1284# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001285pub fn visit_impl_item_method<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ImplItemMethod) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001286 for it in & _i . attrs { _visitor.visit_attribute(it) };
1287 _visitor.visit_visibility(& _i . vis);
David Tolnay360a6342017-12-29 02:22:11 -05001288 if let Some(ref it) = _i . defaultness { tokens_helper(_visitor, &(it).0) };
David Tolnayf0d63bf2017-12-26 12:29:47 -05001289 _visitor.visit_method_sig(& _i . sig);
1290 _visitor.visit_block(& _i . block);
Nika Layzell27726662017-10-24 23:16:35 -04001291}
1292# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001293pub fn visit_impl_item_type<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ImplItemType) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001294 for it in & _i . attrs { _visitor.visit_attribute(it) };
1295 _visitor.visit_visibility(& _i . vis);
David Tolnay360a6342017-12-29 02:22:11 -05001296 if let Some(ref it) = _i . defaultness { tokens_helper(_visitor, &(it).0) };
David Tolnaycc0f0372017-12-28 19:11:04 -05001297 tokens_helper(_visitor, &(& _i . type_token).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -07001298 // Skipped field _i . ident;
David Tolnayf0d63bf2017-12-26 12:29:47 -05001299 _visitor.visit_generics(& _i . generics);
David Tolnaycc0f0372017-12-28 19:11:04 -05001300 tokens_helper(_visitor, &(& _i . eq_token).0);
David Tolnayf0d63bf2017-12-26 12:29:47 -05001301 _visitor.visit_type(& _i . ty);
David Tolnaycc0f0372017-12-28 19:11:04 -05001302 tokens_helper(_visitor, &(& _i . semi_token).0);
Nika Layzell27726662017-10-24 23:16:35 -04001303}
David Tolnay2ae520a2017-12-29 11:19:50 -05001304# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001305pub fn visit_impl_item_verbatim<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ImplItemVerbatim) {
David Tolnay2ae520a2017-12-29 11:19:50 -05001306 // Skipped field _i . tts;
1307}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001308# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001309pub fn visit_index<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Index) {
David Tolnay85b69a42017-12-27 20:43:10 -05001310 // Skipped field _i . index;
1311 _visitor.visit_span(& _i . span);
1312}
1313# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001314pub fn visit_item<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Item) {
Nika Layzell27726662017-10-24 23:16:35 -04001315 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05001316 Item::ExternCrate(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001317 _visitor.visit_item_extern_crate(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001318 }
David Tolnay6702ade2017-12-30 23:38:15 -05001319 Item::Use(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001320 _visitor.visit_item_use(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001321 }
David Tolnay6702ade2017-12-30 23:38:15 -05001322 Item::Static(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001323 _visitor.visit_item_static(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001324 }
David Tolnay6702ade2017-12-30 23:38:15 -05001325 Item::Const(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001326 _visitor.visit_item_const(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001327 }
David Tolnay6702ade2017-12-30 23:38:15 -05001328 Item::Fn(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001329 _visitor.visit_item_fn(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001330 }
David Tolnay6702ade2017-12-30 23:38:15 -05001331 Item::Mod(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001332 _visitor.visit_item_mod(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001333 }
David Tolnay6702ade2017-12-30 23:38:15 -05001334 Item::ForeignMod(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001335 _visitor.visit_item_foreign_mod(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001336 }
David Tolnay6702ade2017-12-30 23:38:15 -05001337 Item::Type(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001338 _visitor.visit_item_type(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001339 }
David Tolnay6702ade2017-12-30 23:38:15 -05001340 Item::Struct(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001341 _visitor.visit_item_struct(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001342 }
David Tolnaye3d41b72017-12-31 15:24:00 -05001343 Item::Enum(ref _binding_0, ) => {
1344 _visitor.visit_item_enum(_binding_0);
1345 }
David Tolnay6702ade2017-12-30 23:38:15 -05001346 Item::Union(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001347 _visitor.visit_item_union(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001348 }
David Tolnay6702ade2017-12-30 23:38:15 -05001349 Item::Trait(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001350 _visitor.visit_item_trait(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001351 }
David Tolnay6702ade2017-12-30 23:38:15 -05001352 Item::Impl(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001353 _visitor.visit_item_impl(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001354 }
David Tolnay6702ade2017-12-30 23:38:15 -05001355 Item::Macro(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001356 _visitor.visit_item_macro(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001357 }
David Tolnay6702ade2017-12-30 23:38:15 -05001358 Item::Macro2(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001359 _visitor.visit_item_macro2(_binding_0);
David Tolnay500d8322017-12-18 00:32:51 -08001360 }
David Tolnay6702ade2017-12-30 23:38:15 -05001361 Item::Verbatim(ref _binding_0, ) => {
David Tolnay2ae520a2017-12-29 11:19:50 -05001362 _visitor.visit_item_verbatim(_binding_0);
1363 }
Nika Layzell27726662017-10-24 23:16:35 -04001364 }
1365}
1366# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001367pub fn visit_item_const<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemConst) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001368 for it in & _i . attrs { _visitor.visit_attribute(it) };
1369 _visitor.visit_visibility(& _i . vis);
David Tolnaycc0f0372017-12-28 19:11:04 -05001370 tokens_helper(_visitor, &(& _i . const_token).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -07001371 // Skipped field _i . ident;
David Tolnaycc0f0372017-12-28 19:11:04 -05001372 tokens_helper(_visitor, &(& _i . colon_token).0);
David Tolnay4a918742017-12-28 16:54:41 -05001373 _visitor.visit_type(& * _i . ty);
David Tolnaycc0f0372017-12-28 19:11:04 -05001374 tokens_helper(_visitor, &(& _i . eq_token).0);
David Tolnay4a918742017-12-28 16:54:41 -05001375 _visitor.visit_expr(& * _i . expr);
David Tolnaycc0f0372017-12-28 19:11:04 -05001376 tokens_helper(_visitor, &(& _i . semi_token).0);
David Tolnayc6b55bc2017-11-09 22:48:38 -08001377}
1378# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001379pub fn visit_item_enum<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemEnum) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001380 for it in & _i . attrs { _visitor.visit_attribute(it) };
1381 _visitor.visit_visibility(& _i . vis);
David Tolnaycc0f0372017-12-28 19:11:04 -05001382 tokens_helper(_visitor, &(& _i . enum_token).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -07001383 // Skipped field _i . ident;
David Tolnayf0d63bf2017-12-26 12:29:47 -05001384 _visitor.visit_generics(& _i . generics);
David Tolnay1e01f9c2017-12-28 20:16:19 -05001385 tokens_helper(_visitor, &(& _i . brace_token).0);
David Tolnay56080682018-01-06 14:01:52 -08001386 for el in Punctuated::pairs(& _i . variants) { let it = el.value(); _visitor.visit_variant(it) };
David Tolnayc6b55bc2017-11-09 22:48:38 -08001387}
1388# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001389pub fn visit_item_extern_crate<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemExternCrate) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001390 for it in & _i . attrs { _visitor.visit_attribute(it) };
1391 _visitor.visit_visibility(& _i . vis);
David Tolnaycc0f0372017-12-28 19:11:04 -05001392 tokens_helper(_visitor, &(& _i . extern_token).0);
1393 tokens_helper(_visitor, &(& _i . crate_token).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -07001394 // Skipped field _i . ident;
David Tolnay5c4c0b52017-12-28 17:58:54 -05001395 if let Some(ref it) = _i . rename {
David Tolnaycc0f0372017-12-28 19:11:04 -05001396 tokens_helper(_visitor, &(& ( it ) . 0).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -07001397 // Skipped field ( it ) . 1;
David Tolnay5c4c0b52017-12-28 17:58:54 -05001398 };
David Tolnaycc0f0372017-12-28 19:11:04 -05001399 tokens_helper(_visitor, &(& _i . semi_token).0);
David Tolnayc6b55bc2017-11-09 22:48:38 -08001400}
1401# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001402pub fn visit_item_fn<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemFn) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001403 for it in & _i . attrs { _visitor.visit_attribute(it) };
1404 _visitor.visit_visibility(& _i . vis);
David Tolnay360a6342017-12-29 02:22:11 -05001405 if let Some(ref it) = _i . constness { tokens_helper(_visitor, &(it).0) };
David Tolnay9b258702017-12-29 02:24:41 -05001406 if let Some(ref it) = _i . unsafety { tokens_helper(_visitor, &(it).0) };
David Tolnayf0d63bf2017-12-26 12:29:47 -05001407 if let Some(ref it) = _i . abi { _visitor.visit_abi(it) };
Alex Crichtona74a1c82018-05-16 10:20:44 -07001408 // Skipped field _i . ident;
David Tolnay4a3f59a2017-12-28 21:21:12 -05001409 _visitor.visit_fn_decl(& * _i . decl);
David Tolnay4a918742017-12-28 16:54:41 -05001410 _visitor.visit_block(& * _i . block);
David Tolnayc6b55bc2017-11-09 22:48:38 -08001411}
1412# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001413pub fn visit_item_foreign_mod<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemForeignMod) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001414 for it in & _i . attrs { _visitor.visit_attribute(it) };
1415 _visitor.visit_abi(& _i . abi);
David Tolnay1e01f9c2017-12-28 20:16:19 -05001416 tokens_helper(_visitor, &(& _i . brace_token).0);
David Tolnayf0d63bf2017-12-26 12:29:47 -05001417 for it in & _i . items { _visitor.visit_foreign_item(it) };
David Tolnayc6b55bc2017-11-09 22:48:38 -08001418}
1419# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001420pub fn visit_item_impl<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemImpl) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001421 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnay360a6342017-12-29 02:22:11 -05001422 if let Some(ref it) = _i . defaultness { tokens_helper(_visitor, &(it).0) };
David Tolnay9b258702017-12-29 02:24:41 -05001423 if let Some(ref it) = _i . unsafety { tokens_helper(_visitor, &(it).0) };
David Tolnaycc0f0372017-12-28 19:11:04 -05001424 tokens_helper(_visitor, &(& _i . impl_token).0);
David Tolnayf0d63bf2017-12-26 12:29:47 -05001425 _visitor.visit_generics(& _i . generics);
David Tolnay5c4c0b52017-12-28 17:58:54 -05001426 if let Some(ref it) = _i . trait_ {
David Tolnay360a6342017-12-29 02:22:11 -05001427 if let Some(ref it) = ( it ) . 0 { tokens_helper(_visitor, &(it).0) };
David Tolnay5c4c0b52017-12-28 17:58:54 -05001428 _visitor.visit_path(& ( it ) . 1);
David Tolnaycc0f0372017-12-28 19:11:04 -05001429 tokens_helper(_visitor, &(& ( it ) . 2).0);
David Tolnay5c4c0b52017-12-28 17:58:54 -05001430 };
David Tolnay4a918742017-12-28 16:54:41 -05001431 _visitor.visit_type(& * _i . self_ty);
David Tolnay1e01f9c2017-12-28 20:16:19 -05001432 tokens_helper(_visitor, &(& _i . brace_token).0);
David Tolnayf0d63bf2017-12-26 12:29:47 -05001433 for it in & _i . items { _visitor.visit_impl_item(it) };
David Tolnayc6b55bc2017-11-09 22:48:38 -08001434}
1435# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001436pub fn visit_item_macro<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemMacro) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001437 for it in & _i . attrs { _visitor.visit_attribute(it) };
Alex Crichtona74a1c82018-05-16 10:20:44 -07001438 // Skipped field _i . ident;
David Tolnayf0d63bf2017-12-26 12:29:47 -05001439 _visitor.visit_macro(& _i . mac);
David Tolnaycc0f0372017-12-28 19:11:04 -05001440 if let Some(ref it) = _i . semi_token { tokens_helper(_visitor, &(it).0) };
David Tolnayc6b55bc2017-11-09 22:48:38 -08001441}
1442# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001443pub fn visit_item_macro2<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemMacro2) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001444 for it in & _i . attrs { _visitor.visit_attribute(it) };
1445 _visitor.visit_visibility(& _i . vis);
David Tolnaycc0f0372017-12-28 19:11:04 -05001446 tokens_helper(_visitor, &(& _i . macro_token).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -07001447 // Skipped field _i . ident;
David Tolnayab919512017-12-30 23:31:51 -05001448 tokens_helper(_visitor, &(& _i . paren_token).0);
David Tolnay500d8322017-12-18 00:32:51 -08001449 // Skipped field _i . args;
David Tolnayab919512017-12-30 23:31:51 -05001450 tokens_helper(_visitor, &(& _i . brace_token).0);
David Tolnay500d8322017-12-18 00:32:51 -08001451 // Skipped field _i . body;
1452}
1453# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001454pub fn visit_item_mod<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemMod) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001455 for it in & _i . attrs { _visitor.visit_attribute(it) };
1456 _visitor.visit_visibility(& _i . vis);
David Tolnaycc0f0372017-12-28 19:11:04 -05001457 tokens_helper(_visitor, &(& _i . mod_token).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -07001458 // Skipped field _i . ident;
David Tolnay5c4c0b52017-12-28 17:58:54 -05001459 if let Some(ref it) = _i . content {
David Tolnay1e01f9c2017-12-28 20:16:19 -05001460 tokens_helper(_visitor, &(& ( it ) . 0).0);
David Tolnay5c4c0b52017-12-28 17:58:54 -05001461 for it in & ( it ) . 1 { _visitor.visit_item(it) };
1462 };
David Tolnaycc0f0372017-12-28 19:11:04 -05001463 if let Some(ref it) = _i . semi { tokens_helper(_visitor, &(it).0) };
Nika Layzell27726662017-10-24 23:16:35 -04001464}
1465# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001466pub fn visit_item_static<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemStatic) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001467 for it in & _i . attrs { _visitor.visit_attribute(it) };
1468 _visitor.visit_visibility(& _i . vis);
David Tolnaycc0f0372017-12-28 19:11:04 -05001469 tokens_helper(_visitor, &(& _i . static_token).0);
David Tolnay24237fb2017-12-29 02:15:26 -05001470 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
Alex Crichtona74a1c82018-05-16 10:20:44 -07001471 // Skipped field _i . ident;
David Tolnaycc0f0372017-12-28 19:11:04 -05001472 tokens_helper(_visitor, &(& _i . colon_token).0);
David Tolnay4a918742017-12-28 16:54:41 -05001473 _visitor.visit_type(& * _i . ty);
David Tolnaycc0f0372017-12-28 19:11:04 -05001474 tokens_helper(_visitor, &(& _i . eq_token).0);
David Tolnay4a918742017-12-28 16:54:41 -05001475 _visitor.visit_expr(& * _i . expr);
David Tolnaycc0f0372017-12-28 19:11:04 -05001476 tokens_helper(_visitor, &(& _i . semi_token).0);
Nika Layzell27726662017-10-24 23:16:35 -04001477}
1478# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001479pub fn visit_item_struct<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemStruct) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001480 for it in & _i . attrs { _visitor.visit_attribute(it) };
1481 _visitor.visit_visibility(& _i . vis);
David Tolnaycc0f0372017-12-28 19:11:04 -05001482 tokens_helper(_visitor, &(& _i . struct_token).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -07001483 // Skipped field _i . ident;
David Tolnayf0d63bf2017-12-26 12:29:47 -05001484 _visitor.visit_generics(& _i . generics);
David Tolnaye3d41b72017-12-31 15:24:00 -05001485 _visitor.visit_fields(& _i . fields);
David Tolnaycc0f0372017-12-28 19:11:04 -05001486 if let Some(ref it) = _i . semi_token { tokens_helper(_visitor, &(it).0) };
Nika Layzell27726662017-10-24 23:16:35 -04001487}
1488# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001489pub fn visit_item_trait<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemTrait) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001490 for it in & _i . attrs { _visitor.visit_attribute(it) };
1491 _visitor.visit_visibility(& _i . vis);
David Tolnay9b258702017-12-29 02:24:41 -05001492 if let Some(ref it) = _i . unsafety { tokens_helper(_visitor, &(it).0) };
David Tolnaycc0f0372017-12-28 19:11:04 -05001493 if let Some(ref it) = _i . auto_token { tokens_helper(_visitor, &(it).0) };
1494 tokens_helper(_visitor, &(& _i . trait_token).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -07001495 // Skipped field _i . ident;
David Tolnayf0d63bf2017-12-26 12:29:47 -05001496 _visitor.visit_generics(& _i . generics);
David Tolnaycc0f0372017-12-28 19:11:04 -05001497 if let Some(ref it) = _i . colon_token { tokens_helper(_visitor, &(it).0) };
David Tolnay56080682018-01-06 14:01:52 -08001498 for el in Punctuated::pairs(& _i . supertraits) { let it = el.value(); _visitor.visit_type_param_bound(it) };
David Tolnay1e01f9c2017-12-28 20:16:19 -05001499 tokens_helper(_visitor, &(& _i . brace_token).0);
David Tolnayf0d63bf2017-12-26 12:29:47 -05001500 for it in & _i . items { _visitor.visit_trait_item(it) };
Nika Layzell27726662017-10-24 23:16:35 -04001501}
1502# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001503pub fn visit_item_type<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemType) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001504 for it in & _i . attrs { _visitor.visit_attribute(it) };
1505 _visitor.visit_visibility(& _i . vis);
David Tolnaycc0f0372017-12-28 19:11:04 -05001506 tokens_helper(_visitor, &(& _i . type_token).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -07001507 // Skipped field _i . ident;
David Tolnayf0d63bf2017-12-26 12:29:47 -05001508 _visitor.visit_generics(& _i . generics);
David Tolnaycc0f0372017-12-28 19:11:04 -05001509 tokens_helper(_visitor, &(& _i . eq_token).0);
David Tolnay4a918742017-12-28 16:54:41 -05001510 _visitor.visit_type(& * _i . ty);
David Tolnaycc0f0372017-12-28 19:11:04 -05001511 tokens_helper(_visitor, &(& _i . semi_token).0);
Nika Layzell27726662017-10-24 23:16:35 -04001512}
1513# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001514pub fn visit_item_union<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemUnion) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001515 for it in & _i . attrs { _visitor.visit_attribute(it) };
1516 _visitor.visit_visibility(& _i . vis);
David Tolnaycc0f0372017-12-28 19:11:04 -05001517 tokens_helper(_visitor, &(& _i . union_token).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -07001518 // Skipped field _i . ident;
David Tolnayf0d63bf2017-12-26 12:29:47 -05001519 _visitor.visit_generics(& _i . generics);
David Tolnaye3d41b72017-12-31 15:24:00 -05001520 _visitor.visit_fields_named(& _i . fields);
Nika Layzell27726662017-10-24 23:16:35 -04001521}
1522# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001523pub fn visit_item_use<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemUse) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001524 for it in & _i . attrs { _visitor.visit_attribute(it) };
1525 _visitor.visit_visibility(& _i . vis);
David Tolnaycc0f0372017-12-28 19:11:04 -05001526 tokens_helper(_visitor, &(& _i . use_token).0);
1527 if let Some(ref it) = _i . leading_colon { tokens_helper(_visitor, &(it).0) };
David Tolnayf0d63bf2017-12-26 12:29:47 -05001528 _visitor.visit_use_tree(& _i . tree);
David Tolnaycc0f0372017-12-28 19:11:04 -05001529 tokens_helper(_visitor, &(& _i . semi_token).0);
Nika Layzell27726662017-10-24 23:16:35 -04001530}
David Tolnay2ae520a2017-12-29 11:19:50 -05001531# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001532pub fn visit_item_verbatim<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ItemVerbatim) {
David Tolnay2ae520a2017-12-29 11:19:50 -05001533 // Skipped field _i . tts;
1534}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001535# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001536pub fn visit_label<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Label) {
David Tolnaybcd498f2017-12-29 12:02:33 -05001537 _visitor.visit_lifetime(& _i . name);
1538 tokens_helper(_visitor, &(& _i . colon_token).0);
1539}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001540# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001541pub fn visit_lifetime<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Lifetime) {
Alex Crichtona74a1c82018-05-16 10:20:44 -07001542 // Skipped field _i . ident;
David Tolnay4ba63a02017-12-28 15:53:05 -05001543}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001544# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001545pub fn visit_lifetime_def<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LifetimeDef) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001546 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnay4ba63a02017-12-28 15:53:05 -05001547 _visitor.visit_lifetime(& _i . lifetime);
David Tolnaycc0f0372017-12-28 19:11:04 -05001548 if let Some(ref it) = _i . colon_token { tokens_helper(_visitor, &(it).0) };
David Tolnay56080682018-01-06 14:01:52 -08001549 for el in Punctuated::pairs(& _i . bounds) { let it = el.value(); _visitor.visit_lifetime(it) };
David Tolnay4ba63a02017-12-28 15:53:05 -05001550}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001551# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001552pub fn visit_lit<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Lit) {
David Tolnay360efd22018-01-04 23:35:26 -08001553 match *_i {
1554 Lit::Str(ref _binding_0, ) => {
1555 _visitor.visit_lit_str(_binding_0);
1556 }
1557 Lit::ByteStr(ref _binding_0, ) => {
1558 _visitor.visit_lit_byte_str(_binding_0);
1559 }
1560 Lit::Byte(ref _binding_0, ) => {
1561 _visitor.visit_lit_byte(_binding_0);
1562 }
1563 Lit::Char(ref _binding_0, ) => {
1564 _visitor.visit_lit_char(_binding_0);
1565 }
1566 Lit::Int(ref _binding_0, ) => {
1567 _visitor.visit_lit_int(_binding_0);
1568 }
1569 Lit::Float(ref _binding_0, ) => {
1570 _visitor.visit_lit_float(_binding_0);
1571 }
1572 Lit::Bool(ref _binding_0, ) => {
1573 _visitor.visit_lit_bool(_binding_0);
1574 }
1575 Lit::Verbatim(ref _binding_0, ) => {
1576 _visitor.visit_lit_verbatim(_binding_0);
1577 }
1578 }
1579}
1580# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001581pub fn visit_lit_bool<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitBool) {
David Tolnay4ba63a02017-12-28 15:53:05 -05001582 // Skipped field _i . value;
1583 _visitor.visit_span(& _i . span);
Nika Layzell27726662017-10-24 23:16:35 -04001584}
David Tolnay360efd22018-01-04 23:35:26 -08001585# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001586pub fn visit_lit_byte<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitByte) {
David Tolnay360efd22018-01-04 23:35:26 -08001587 // Skipped field _i . token;
David Tolnay360efd22018-01-04 23:35:26 -08001588}
1589# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001590pub fn visit_lit_byte_str<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitByteStr) {
David Tolnay360efd22018-01-04 23:35:26 -08001591 // Skipped field _i . token;
David Tolnay360efd22018-01-04 23:35:26 -08001592}
1593# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001594pub fn visit_lit_char<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitChar) {
David Tolnay360efd22018-01-04 23:35:26 -08001595 // Skipped field _i . token;
David Tolnay360efd22018-01-04 23:35:26 -08001596}
1597# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001598pub fn visit_lit_float<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitFloat) {
David Tolnay360efd22018-01-04 23:35:26 -08001599 // Skipped field _i . token;
David Tolnay360efd22018-01-04 23:35:26 -08001600}
1601# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001602pub fn visit_lit_int<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitInt) {
David Tolnay360efd22018-01-04 23:35:26 -08001603 // Skipped field _i . token;
David Tolnay360efd22018-01-04 23:35:26 -08001604}
1605# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001606pub fn visit_lit_str<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitStr) {
David Tolnay360efd22018-01-04 23:35:26 -08001607 // Skipped field _i . token;
David Tolnay360efd22018-01-04 23:35:26 -08001608}
1609# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001610pub fn visit_lit_verbatim<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitVerbatim) {
David Tolnay360efd22018-01-04 23:35:26 -08001611 // Skipped field _i . token;
David Tolnay360efd22018-01-04 23:35:26 -08001612}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001613# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001614pub fn visit_local<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Local) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001615 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnay4a3f59a2017-12-28 21:21:12 -05001616 tokens_helper(_visitor, &(& _i . let_token).0);
David Tolnay5b5b7d22018-03-31 21:05:00 +02001617 for el in Punctuated::pairs(& _i . pats) { let it = el.value(); _visitor.visit_pat(it) };
David Tolnay8b4d3022017-12-29 12:11:10 -05001618 if let Some(ref it) = _i . ty {
1619 tokens_helper(_visitor, &(& ( it ) . 0).0);
1620 _visitor.visit_type(& * ( it ) . 1);
1621 };
1622 if let Some(ref it) = _i . init {
1623 tokens_helper(_visitor, &(& ( it ) . 0).0);
1624 _visitor.visit_expr(& * ( it ) . 1);
1625 };
David Tolnay4a3f59a2017-12-28 21:21:12 -05001626 tokens_helper(_visitor, &(& _i . semi_token).0);
Nika Layzell27726662017-10-24 23:16:35 -04001627}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001628# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001629pub fn visit_macro<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Macro) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001630 _visitor.visit_path(& _i . path);
David Tolnaycc0f0372017-12-28 19:11:04 -05001631 tokens_helper(_visitor, &(& _i . bang_token).0);
David Tolnayab919512017-12-30 23:31:51 -05001632 _visitor.visit_macro_delimiter(& _i . delimiter);
1633 // Skipped field _i . tts;
1634}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001635# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001636pub fn visit_macro_delimiter<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast MacroDelimiter) {
David Tolnayab919512017-12-30 23:31:51 -05001637 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05001638 MacroDelimiter::Paren(ref _binding_0, ) => {
David Tolnayab919512017-12-30 23:31:51 -05001639 tokens_helper(_visitor, &(_binding_0).0);
1640 }
David Tolnay6702ade2017-12-30 23:38:15 -05001641 MacroDelimiter::Brace(ref _binding_0, ) => {
David Tolnayab919512017-12-30 23:31:51 -05001642 tokens_helper(_visitor, &(_binding_0).0);
1643 }
David Tolnay6702ade2017-12-30 23:38:15 -05001644 MacroDelimiter::Bracket(ref _binding_0, ) => {
David Tolnayab919512017-12-30 23:31:51 -05001645 tokens_helper(_visitor, &(_binding_0).0);
1646 }
1647 }
David Tolnaydecf28d2017-11-11 11:56:45 -08001648}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001649# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001650pub fn visit_member<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Member) {
David Tolnay85b69a42017-12-27 20:43:10 -05001651 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05001652 Member::Named(ref _binding_0, ) => {
Alex Crichtona74a1c82018-05-16 10:20:44 -07001653 // Skipped field _binding_0;
David Tolnay85b69a42017-12-27 20:43:10 -05001654 }
David Tolnay6702ade2017-12-30 23:38:15 -05001655 Member::Unnamed(ref _binding_0, ) => {
David Tolnay85b69a42017-12-27 20:43:10 -05001656 _visitor.visit_index(_binding_0);
1657 }
1658 }
1659}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001660# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnayaaadd782018-01-06 22:58:13 -08001661pub fn visit_meta<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Meta) {
Nika Layzell27726662017-10-24 23:16:35 -04001662 match *_i {
David Tolnayaaadd782018-01-06 22:58:13 -08001663 Meta::Word(ref _binding_0, ) => {
Alex Crichtona74a1c82018-05-16 10:20:44 -07001664 // Skipped field _binding_0;
Nika Layzell27726662017-10-24 23:16:35 -04001665 }
David Tolnayaaadd782018-01-06 22:58:13 -08001666 Meta::List(ref _binding_0, ) => {
1667 _visitor.visit_meta_list(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001668 }
David Tolnayaaadd782018-01-06 22:58:13 -08001669 Meta::NameValue(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001670 _visitor.visit_meta_name_value(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001671 }
1672 }
1673}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001674# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnayaaadd782018-01-06 22:58:13 -08001675pub fn visit_meta_list<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast MetaList) {
Alex Crichtona74a1c82018-05-16 10:20:44 -07001676 // Skipped field _i . ident;
David Tolnay1e01f9c2017-12-28 20:16:19 -05001677 tokens_helper(_visitor, &(& _i . paren_token).0);
David Tolnayaaadd782018-01-06 22:58:13 -08001678 for el in Punctuated::pairs(& _i . nested) { let it = el.value(); _visitor.visit_nested_meta(it) };
Nika Layzell27726662017-10-24 23:16:35 -04001679}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001680# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001681pub fn visit_meta_name_value<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast MetaNameValue) {
Alex Crichtona74a1c82018-05-16 10:20:44 -07001682 // Skipped field _i . ident;
David Tolnaycc0f0372017-12-28 19:11:04 -05001683 tokens_helper(_visitor, &(& _i . eq_token).0);
David Tolnay4ba63a02017-12-28 15:53:05 -05001684 _visitor.visit_lit(& _i . lit);
Nika Layzell27726662017-10-24 23:16:35 -04001685}
1686# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001687pub fn visit_method_sig<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast MethodSig) {
David Tolnay360a6342017-12-29 02:22:11 -05001688 if let Some(ref it) = _i . constness { tokens_helper(_visitor, &(it).0) };
David Tolnay9b258702017-12-29 02:24:41 -05001689 if let Some(ref it) = _i . unsafety { tokens_helper(_visitor, &(it).0) };
David Tolnayf0d63bf2017-12-26 12:29:47 -05001690 if let Some(ref it) = _i . abi { _visitor.visit_abi(it) };
Alex Crichtona74a1c82018-05-16 10:20:44 -07001691 // Skipped field _i . ident;
David Tolnayf0d63bf2017-12-26 12:29:47 -05001692 _visitor.visit_fn_decl(& _i . decl);
Nika Layzell27726662017-10-24 23:16:35 -04001693}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001694# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001695pub fn visit_method_turbofish<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast MethodTurbofish) {
David Tolnayd60cfec2017-12-29 00:21:38 -05001696 tokens_helper(_visitor, &(& _i . colon2_token).0);
1697 tokens_helper(_visitor, &(& _i . lt_token).0);
David Tolnay56080682018-01-06 14:01:52 -08001698 for el in Punctuated::pairs(& _i . args) { let it = el.value(); _visitor.visit_generic_method_argument(it) };
David Tolnayd60cfec2017-12-29 00:21:38 -05001699 tokens_helper(_visitor, &(& _i . gt_token).0);
1700}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001701# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnayaaadd782018-01-06 22:58:13 -08001702pub fn visit_nested_meta<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast NestedMeta) {
Nika Layzell27726662017-10-24 23:16:35 -04001703 match *_i {
David Tolnayaaadd782018-01-06 22:58:13 -08001704 NestedMeta::Meta(ref _binding_0, ) => {
1705 _visitor.visit_meta(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001706 }
David Tolnayaaadd782018-01-06 22:58:13 -08001707 NestedMeta::Literal(ref _binding_0, ) => {
David Tolnay4ba63a02017-12-28 15:53:05 -05001708 _visitor.visit_lit(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001709 }
1710 }
1711}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001712# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001713pub fn visit_parenthesized_generic_arguments<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ParenthesizedGenericArguments) {
David Tolnay1e01f9c2017-12-28 20:16:19 -05001714 tokens_helper(_visitor, &(& _i . paren_token).0);
David Tolnay56080682018-01-06 14:01:52 -08001715 for el in Punctuated::pairs(& _i . inputs) { let it = el.value(); _visitor.visit_type(it) };
David Tolnayf0d63bf2017-12-26 12:29:47 -05001716 _visitor.visit_return_type(& _i . output);
Nika Layzell27726662017-10-24 23:16:35 -04001717}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001718# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001719pub fn visit_pat<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Pat) {
Nika Layzell27726662017-10-24 23:16:35 -04001720 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05001721 Pat::Wild(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001722 _visitor.visit_pat_wild(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001723 }
David Tolnay6702ade2017-12-30 23:38:15 -05001724 Pat::Ident(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001725 _visitor.visit_pat_ident(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001726 }
David Tolnay6702ade2017-12-30 23:38:15 -05001727 Pat::Struct(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001728 _visitor.visit_pat_struct(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001729 }
David Tolnay6702ade2017-12-30 23:38:15 -05001730 Pat::TupleStruct(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001731 _visitor.visit_pat_tuple_struct(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001732 }
David Tolnay6702ade2017-12-30 23:38:15 -05001733 Pat::Path(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001734 _visitor.visit_pat_path(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001735 }
David Tolnay6702ade2017-12-30 23:38:15 -05001736 Pat::Tuple(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001737 _visitor.visit_pat_tuple(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001738 }
David Tolnay6702ade2017-12-30 23:38:15 -05001739 Pat::Box(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001740 _visitor.visit_pat_box(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001741 }
David Tolnay6702ade2017-12-30 23:38:15 -05001742 Pat::Ref(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001743 _visitor.visit_pat_ref(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001744 }
David Tolnay6702ade2017-12-30 23:38:15 -05001745 Pat::Lit(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001746 _visitor.visit_pat_lit(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001747 }
David Tolnay6702ade2017-12-30 23:38:15 -05001748 Pat::Range(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001749 _visitor.visit_pat_range(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001750 }
David Tolnay6702ade2017-12-30 23:38:15 -05001751 Pat::Slice(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001752 _visitor.visit_pat_slice(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001753 }
David Tolnay6702ade2017-12-30 23:38:15 -05001754 Pat::Macro(ref _binding_0, ) => {
David Tolnay323279a2017-12-29 11:26:32 -05001755 _visitor.visit_pat_macro(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001756 }
David Tolnay6702ade2017-12-30 23:38:15 -05001757 Pat::Verbatim(ref _binding_0, ) => {
David Tolnay2ae520a2017-12-29 11:19:50 -05001758 _visitor.visit_pat_verbatim(_binding_0);
1759 }
Nika Layzell27726662017-10-24 23:16:35 -04001760 }
1761}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001762# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001763pub fn visit_pat_box<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatBox) {
David Tolnaycc0f0372017-12-28 19:11:04 -05001764 tokens_helper(_visitor, &(& _i . box_token).0);
David Tolnay4a3f59a2017-12-28 21:21:12 -05001765 _visitor.visit_pat(& * _i . pat);
Nika Layzell27726662017-10-24 23:16:35 -04001766}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001767# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001768pub fn visit_pat_ident<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatIdent) {
David Tolnay24237fb2017-12-29 02:15:26 -05001769 if let Some(ref it) = _i . by_ref { tokens_helper(_visitor, &(it).0) };
1770 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
Alex Crichtona74a1c82018-05-16 10:20:44 -07001771 // Skipped field _i . ident;
David Tolnay8b4d3022017-12-29 12:11:10 -05001772 if let Some(ref it) = _i . subpat {
1773 tokens_helper(_visitor, &(& ( it ) . 0).0);
1774 _visitor.visit_pat(& * ( it ) . 1);
1775 };
Nika Layzell27726662017-10-24 23:16:35 -04001776}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001777# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001778pub fn visit_pat_lit<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatLit) {
David Tolnay4a918742017-12-28 16:54:41 -05001779 _visitor.visit_expr(& * _i . expr);
Nika Layzell27726662017-10-24 23:16:35 -04001780}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001781# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001782pub fn visit_pat_macro<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatMacro) {
David Tolnay323279a2017-12-29 11:26:32 -05001783 _visitor.visit_macro(& _i . mac);
1784}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001785# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001786pub fn visit_pat_path<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatPath) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001787 if let Some(ref it) = _i . qself { _visitor.visit_qself(it) };
1788 _visitor.visit_path(& _i . path);
Nika Layzell27726662017-10-24 23:16:35 -04001789}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001790# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001791pub fn visit_pat_range<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatRange) {
David Tolnay4a918742017-12-28 16:54:41 -05001792 _visitor.visit_expr(& * _i . lo);
David Tolnayf0d63bf2017-12-26 12:29:47 -05001793 _visitor.visit_range_limits(& _i . limits);
David Tolnay4a3f59a2017-12-28 21:21:12 -05001794 _visitor.visit_expr(& * _i . hi);
Nika Layzell27726662017-10-24 23:16:35 -04001795}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001796# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001797pub fn visit_pat_ref<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatRef) {
David Tolnaycc0f0372017-12-28 19:11:04 -05001798 tokens_helper(_visitor, &(& _i . and_token).0);
David Tolnay24237fb2017-12-29 02:15:26 -05001799 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
David Tolnay4a3f59a2017-12-28 21:21:12 -05001800 _visitor.visit_pat(& * _i . pat);
Nika Layzell27726662017-10-24 23:16:35 -04001801}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001802# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001803pub fn visit_pat_slice<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatSlice) {
David Tolnay4a3f59a2017-12-28 21:21:12 -05001804 tokens_helper(_visitor, &(& _i . bracket_token).0);
David Tolnay56080682018-01-06 14:01:52 -08001805 for el in Punctuated::pairs(& _i . front) { let it = el.value(); _visitor.visit_pat(it) };
David Tolnay4a918742017-12-28 16:54:41 -05001806 if let Some(ref it) = _i . middle { _visitor.visit_pat(& * * it) };
David Tolnay4a3f59a2017-12-28 21:21:12 -05001807 if let Some(ref it) = _i . dot2_token { tokens_helper(_visitor, &(it).0) };
David Tolnay41871922017-12-29 01:53:45 -05001808 if let Some(ref it) = _i . comma_token { tokens_helper(_visitor, &(it).0) };
David Tolnay56080682018-01-06 14:01:52 -08001809 for el in Punctuated::pairs(& _i . back) { let it = el.value(); _visitor.visit_pat(it) };
Nika Layzell27726662017-10-24 23:16:35 -04001810}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001811# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001812pub fn visit_pat_struct<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatStruct) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001813 _visitor.visit_path(& _i . path);
David Tolnay1e01f9c2017-12-28 20:16:19 -05001814 tokens_helper(_visitor, &(& _i . brace_token).0);
David Tolnay56080682018-01-06 14:01:52 -08001815 for el in Punctuated::pairs(& _i . fields) { let it = el.value(); _visitor.visit_field_pat(it) };
David Tolnaycc0f0372017-12-28 19:11:04 -05001816 if let Some(ref it) = _i . dot2_token { tokens_helper(_visitor, &(it).0) };
Nika Layzell27726662017-10-24 23:16:35 -04001817}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001818# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001819pub fn visit_pat_tuple<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatTuple) {
David Tolnay1e01f9c2017-12-28 20:16:19 -05001820 tokens_helper(_visitor, &(& _i . paren_token).0);
David Tolnay56080682018-01-06 14:01:52 -08001821 for el in Punctuated::pairs(& _i . front) { let it = el.value(); _visitor.visit_pat(it) };
David Tolnay4a3f59a2017-12-28 21:21:12 -05001822 if let Some(ref it) = _i . dot2_token { tokens_helper(_visitor, &(it).0) };
David Tolnay41871922017-12-29 01:53:45 -05001823 if let Some(ref it) = _i . comma_token { tokens_helper(_visitor, &(it).0) };
David Tolnay56080682018-01-06 14:01:52 -08001824 for el in Punctuated::pairs(& _i . back) { let it = el.value(); _visitor.visit_pat(it) };
Nika Layzell27726662017-10-24 23:16:35 -04001825}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001826# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001827pub fn visit_pat_tuple_struct<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatTupleStruct) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001828 _visitor.visit_path(& _i . path);
1829 _visitor.visit_pat_tuple(& _i . pat);
Nika Layzell27726662017-10-24 23:16:35 -04001830}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001831# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001832pub fn visit_pat_verbatim<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatVerbatim) {
David Tolnay2ae520a2017-12-29 11:19:50 -05001833 // Skipped field _i . tts;
1834}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001835# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001836pub fn visit_pat_wild<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PatWild) {
David Tolnaycc0f0372017-12-28 19:11:04 -05001837 tokens_helper(_visitor, &(& _i . underscore_token).0);
Nika Layzell27726662017-10-24 23:16:35 -04001838}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001839# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001840pub fn visit_path<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Path) {
David Tolnaycc0f0372017-12-28 19:11:04 -05001841 if let Some(ref it) = _i . leading_colon { tokens_helper(_visitor, &(it).0) };
David Tolnay56080682018-01-06 14:01:52 -08001842 for el in Punctuated::pairs(& _i . segments) { let it = el.value(); _visitor.visit_path_segment(it) };
Nika Layzell27726662017-10-24 23:16:35 -04001843}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001844# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001845pub fn visit_path_arguments<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PathArguments) {
Nika Layzellc08227a2017-12-04 16:30:17 -05001846 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05001847 PathArguments::None => { }
1848 PathArguments::AngleBracketed(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001849 _visitor.visit_angle_bracketed_generic_arguments(_binding_0);
Nika Layzellc08227a2017-12-04 16:30:17 -05001850 }
David Tolnay6702ade2017-12-30 23:38:15 -05001851 PathArguments::Parenthesized(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001852 _visitor.visit_parenthesized_generic_arguments(_binding_0);
Nika Layzellc08227a2017-12-04 16:30:17 -05001853 }
1854 }
1855}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001856# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001857pub fn visit_path_segment<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PathSegment) {
Alex Crichtona74a1c82018-05-16 10:20:44 -07001858 // Skipped field _i . ident;
David Tolnayf0d63bf2017-12-26 12:29:47 -05001859 _visitor.visit_path_arguments(& _i . arguments);
Nika Layzell27726662017-10-24 23:16:35 -04001860}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001861# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001862pub fn visit_predicate_eq<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PredicateEq) {
David Tolnayd4add852018-01-01 20:13:24 -08001863 _visitor.visit_type(& _i . lhs_ty);
1864 tokens_helper(_visitor, &(& _i . eq_token).0);
1865 _visitor.visit_type(& _i . rhs_ty);
1866}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001867# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001868pub fn visit_predicate_lifetime<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PredicateLifetime) {
David Tolnayd4add852018-01-01 20:13:24 -08001869 _visitor.visit_lifetime(& _i . lifetime);
1870 if let Some(ref it) = _i . colon_token { tokens_helper(_visitor, &(it).0) };
David Tolnay56080682018-01-06 14:01:52 -08001871 for el in Punctuated::pairs(& _i . bounds) { let it = el.value(); _visitor.visit_lifetime(it) };
David Tolnayd4add852018-01-01 20:13:24 -08001872}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001873# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001874pub fn visit_predicate_type<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast PredicateType) {
David Tolnay40fb8ce2018-01-02 10:53:46 -08001875 if let Some(ref it) = _i . lifetimes { _visitor.visit_bound_lifetimes(it) };
David Tolnayd4add852018-01-01 20:13:24 -08001876 _visitor.visit_type(& _i . bounded_ty);
1877 tokens_helper(_visitor, &(& _i . colon_token).0);
David Tolnay56080682018-01-06 14:01:52 -08001878 for el in Punctuated::pairs(& _i . bounds) { let it = el.value(); _visitor.visit_type_param_bound(it) };
David Tolnayd4add852018-01-01 20:13:24 -08001879}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001880# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001881pub fn visit_qself<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast QSelf) {
David Tolnaycc0f0372017-12-28 19:11:04 -05001882 tokens_helper(_visitor, &(& _i . lt_token).0);
David Tolnay4a918742017-12-28 16:54:41 -05001883 _visitor.visit_type(& * _i . ty);
Nika Layzell27726662017-10-24 23:16:35 -04001884 // Skipped field _i . position;
David Tolnaycc0f0372017-12-28 19:11:04 -05001885 if let Some(ref it) = _i . as_token { tokens_helper(_visitor, &(it).0) };
1886 tokens_helper(_visitor, &(& _i . gt_token).0);
Nika Layzell27726662017-10-24 23:16:35 -04001887}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001888# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001889pub fn visit_range_limits<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast RangeLimits) {
Nika Layzell27726662017-10-24 23:16:35 -04001890 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05001891 RangeLimits::HalfOpen(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -05001892 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -04001893 }
David Tolnay6702ade2017-12-30 23:38:15 -05001894 RangeLimits::Closed(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -05001895 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -04001896 }
1897 }
1898}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001899# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001900pub fn visit_return_type<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ReturnType) {
David Tolnayf93b90d2017-11-11 19:21:26 -08001901 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05001902 ReturnType::Default => { }
1903 ReturnType::Type(ref _binding_0, ref _binding_1, ) => {
David Tolnay4a3f59a2017-12-28 21:21:12 -05001904 tokens_helper(_visitor, &(_binding_0).0);
1905 _visitor.visit_type(& * * _binding_1);
David Tolnayf93b90d2017-11-11 19:21:26 -08001906 }
1907 }
1908}
Nika Layzellefb83ba2017-12-19 18:23:55 -05001909
David Tolnay4b4c4b62018-01-06 13:48:05 -08001910pub fn visit_span<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Span) {
Nika Layzellefb83ba2017-12-19 18:23:55 -05001911}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001912# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ] # [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001913pub fn visit_stmt<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Stmt) {
Nika Layzell27726662017-10-24 23:16:35 -04001914 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05001915 Stmt::Local(ref _binding_0, ) => {
David Tolnay1f0b7b82018-01-06 16:07:14 -08001916 _visitor.visit_local(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001917 }
David Tolnay6702ade2017-12-30 23:38:15 -05001918 Stmt::Item(ref _binding_0, ) => {
David Tolnay1f0b7b82018-01-06 16:07:14 -08001919 _visitor.visit_item(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001920 }
David Tolnay6702ade2017-12-30 23:38:15 -05001921 Stmt::Expr(ref _binding_0, ) => {
David Tolnay1f0b7b82018-01-06 16:07:14 -08001922 _visitor.visit_expr(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001923 }
David Tolnay6702ade2017-12-30 23:38:15 -05001924 Stmt::Semi(ref _binding_0, ref _binding_1, ) => {
David Tolnay1f0b7b82018-01-06 16:07:14 -08001925 _visitor.visit_expr(_binding_0);
David Tolnaycc0f0372017-12-28 19:11:04 -05001926 tokens_helper(_visitor, &(_binding_1).0);
Nika Layzell27726662017-10-24 23:16:35 -04001927 }
Nika Layzell27726662017-10-24 23:16:35 -04001928 }
1929}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001930# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001931pub fn visit_trait_bound<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TraitBound) {
David Tolnayc1f5d5d2018-03-31 22:17:56 +02001932 if let Some(ref it) = _i . paren_token { tokens_helper(_visitor, &(it).0) };
David Tolnay40fb8ce2018-01-02 10:53:46 -08001933 _visitor.visit_trait_bound_modifier(& _i . modifier);
1934 if let Some(ref it) = _i . lifetimes { _visitor.visit_bound_lifetimes(it) };
1935 _visitor.visit_path(& _i . path);
1936}
David Tolnay3cfd1d32018-01-03 00:22:08 -08001937# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001938pub fn visit_trait_bound_modifier<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TraitBoundModifier) {
Nika Layzell27726662017-10-24 23:16:35 -04001939 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05001940 TraitBoundModifier::None => { }
1941 TraitBoundModifier::Maybe(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -05001942 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -04001943 }
1944 }
1945}
1946# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001947pub fn visit_trait_item<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TraitItem) {
Nika Layzell27726662017-10-24 23:16:35 -04001948 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05001949 TraitItem::Const(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001950 _visitor.visit_trait_item_const(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001951 }
David Tolnay6702ade2017-12-30 23:38:15 -05001952 TraitItem::Method(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001953 _visitor.visit_trait_item_method(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001954 }
David Tolnay6702ade2017-12-30 23:38:15 -05001955 TraitItem::Type(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001956 _visitor.visit_trait_item_type(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001957 }
David Tolnay6702ade2017-12-30 23:38:15 -05001958 TraitItem::Macro(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001959 _visitor.visit_trait_item_macro(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04001960 }
David Tolnay6702ade2017-12-30 23:38:15 -05001961 TraitItem::Verbatim(ref _binding_0, ) => {
David Tolnay2ae520a2017-12-29 11:19:50 -05001962 _visitor.visit_trait_item_verbatim(_binding_0);
1963 }
Nika Layzell27726662017-10-24 23:16:35 -04001964 }
1965}
1966# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001967pub fn visit_trait_item_const<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TraitItemConst) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001968 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnaycc0f0372017-12-28 19:11:04 -05001969 tokens_helper(_visitor, &(& _i . const_token).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -07001970 // Skipped field _i . ident;
David Tolnaycc0f0372017-12-28 19:11:04 -05001971 tokens_helper(_visitor, &(& _i . colon_token).0);
David Tolnayf0d63bf2017-12-26 12:29:47 -05001972 _visitor.visit_type(& _i . ty);
David Tolnay5c4c0b52017-12-28 17:58:54 -05001973 if let Some(ref it) = _i . default {
David Tolnaycc0f0372017-12-28 19:11:04 -05001974 tokens_helper(_visitor, &(& ( it ) . 0).0);
David Tolnay5c4c0b52017-12-28 17:58:54 -05001975 _visitor.visit_expr(& ( it ) . 1);
1976 };
David Tolnaycc0f0372017-12-28 19:11:04 -05001977 tokens_helper(_visitor, &(& _i . semi_token).0);
David Tolnayda705bd2017-11-10 21:58:05 -08001978}
1979# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001980pub fn visit_trait_item_macro<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TraitItemMacro) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001981 for it in & _i . attrs { _visitor.visit_attribute(it) };
1982 _visitor.visit_macro(& _i . mac);
David Tolnaycc0f0372017-12-28 19:11:04 -05001983 if let Some(ref it) = _i . semi_token { tokens_helper(_visitor, &(it).0) };
David Tolnayda705bd2017-11-10 21:58:05 -08001984}
1985# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001986pub fn visit_trait_item_method<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TraitItemMethod) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001987 for it in & _i . attrs { _visitor.visit_attribute(it) };
1988 _visitor.visit_method_sig(& _i . sig);
1989 if let Some(ref it) = _i . default { _visitor.visit_block(it) };
David Tolnaycc0f0372017-12-28 19:11:04 -05001990 if let Some(ref it) = _i . semi_token { tokens_helper(_visitor, &(it).0) };
Nika Layzell27726662017-10-24 23:16:35 -04001991}
1992# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08001993pub fn visit_trait_item_type<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TraitItemType) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05001994 for it in & _i . attrs { _visitor.visit_attribute(it) };
David Tolnaycc0f0372017-12-28 19:11:04 -05001995 tokens_helper(_visitor, &(& _i . type_token).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -07001996 // Skipped field _i . ident;
David Tolnayf0d63bf2017-12-26 12:29:47 -05001997 _visitor.visit_generics(& _i . generics);
David Tolnaycc0f0372017-12-28 19:11:04 -05001998 if let Some(ref it) = _i . colon_token { tokens_helper(_visitor, &(it).0) };
David Tolnay56080682018-01-06 14:01:52 -08001999 for el in Punctuated::pairs(& _i . bounds) { let it = el.value(); _visitor.visit_type_param_bound(it) };
David Tolnay5c4c0b52017-12-28 17:58:54 -05002000 if let Some(ref it) = _i . default {
David Tolnaycc0f0372017-12-28 19:11:04 -05002001 tokens_helper(_visitor, &(& ( it ) . 0).0);
David Tolnay5c4c0b52017-12-28 17:58:54 -05002002 _visitor.visit_type(& ( it ) . 1);
2003 };
David Tolnaycc0f0372017-12-28 19:11:04 -05002004 tokens_helper(_visitor, &(& _i . semi_token).0);
Nika Layzell27726662017-10-24 23:16:35 -04002005}
David Tolnay2ae520a2017-12-29 11:19:50 -05002006# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002007pub fn visit_trait_item_verbatim<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TraitItemVerbatim) {
David Tolnay2ae520a2017-12-29 11:19:50 -05002008 // Skipped field _i . tts;
2009}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002010# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002011pub fn visit_type<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Type) {
Nika Layzell27726662017-10-24 23:16:35 -04002012 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05002013 Type::Slice(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002014 _visitor.visit_type_slice(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002015 }
David Tolnay6702ade2017-12-30 23:38:15 -05002016 Type::Array(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002017 _visitor.visit_type_array(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002018 }
David Tolnay6702ade2017-12-30 23:38:15 -05002019 Type::Ptr(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002020 _visitor.visit_type_ptr(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002021 }
David Tolnay6702ade2017-12-30 23:38:15 -05002022 Type::Reference(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002023 _visitor.visit_type_reference(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002024 }
David Tolnay6702ade2017-12-30 23:38:15 -05002025 Type::BareFn(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002026 _visitor.visit_type_bare_fn(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002027 }
David Tolnay6702ade2017-12-30 23:38:15 -05002028 Type::Never(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002029 _visitor.visit_type_never(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002030 }
David Tolnay6702ade2017-12-30 23:38:15 -05002031 Type::Tuple(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002032 _visitor.visit_type_tuple(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002033 }
David Tolnay6702ade2017-12-30 23:38:15 -05002034 Type::Path(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002035 _visitor.visit_type_path(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002036 }
David Tolnay6702ade2017-12-30 23:38:15 -05002037 Type::TraitObject(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002038 _visitor.visit_type_trait_object(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002039 }
David Tolnay6702ade2017-12-30 23:38:15 -05002040 Type::ImplTrait(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002041 _visitor.visit_type_impl_trait(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002042 }
David Tolnay6702ade2017-12-30 23:38:15 -05002043 Type::Paren(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002044 _visitor.visit_type_paren(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002045 }
David Tolnay6702ade2017-12-30 23:38:15 -05002046 Type::Group(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002047 _visitor.visit_type_group(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002048 }
David Tolnay6702ade2017-12-30 23:38:15 -05002049 Type::Infer(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002050 _visitor.visit_type_infer(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002051 }
David Tolnay6702ade2017-12-30 23:38:15 -05002052 Type::Macro(ref _binding_0, ) => {
David Tolnay323279a2017-12-29 11:26:32 -05002053 _visitor.visit_type_macro(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002054 }
David Tolnay6702ade2017-12-30 23:38:15 -05002055 Type::Verbatim(ref _binding_0, ) => {
David Tolnay2ae520a2017-12-29 11:19:50 -05002056 _visitor.visit_type_verbatim(_binding_0);
2057 }
Nika Layzell27726662017-10-24 23:16:35 -04002058 }
2059}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002060# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002061pub fn visit_type_array<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeArray) {
David Tolnay1e01f9c2017-12-28 20:16:19 -05002062 tokens_helper(_visitor, &(& _i . bracket_token).0);
David Tolnayeadbda32017-12-29 02:33:47 -05002063 _visitor.visit_type(& * _i . elem);
David Tolnaycc0f0372017-12-28 19:11:04 -05002064 tokens_helper(_visitor, &(& _i . semi_token).0);
David Tolnayeadbda32017-12-29 02:33:47 -05002065 _visitor.visit_expr(& _i . len);
Nika Layzell27726662017-10-24 23:16:35 -04002066}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002067# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002068pub fn visit_type_bare_fn<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeBareFn) {
David Tolnaybe7a9592017-12-29 02:39:53 -05002069 if let Some(ref it) = _i . unsafety { tokens_helper(_visitor, &(it).0) };
2070 if let Some(ref it) = _i . abi { _visitor.visit_abi(it) };
2071 tokens_helper(_visitor, &(& _i . fn_token).0);
2072 if let Some(ref it) = _i . lifetimes { _visitor.visit_bound_lifetimes(it) };
2073 tokens_helper(_visitor, &(& _i . paren_token).0);
David Tolnay56080682018-01-06 14:01:52 -08002074 for el in Punctuated::pairs(& _i . inputs) { let it = el.value(); _visitor.visit_bare_fn_arg(it) };
David Tolnaybe7a9592017-12-29 02:39:53 -05002075 if let Some(ref it) = _i . variadic { tokens_helper(_visitor, &(it).0) };
2076 _visitor.visit_return_type(& _i . output);
Nika Layzell27726662017-10-24 23:16:35 -04002077}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002078# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002079pub fn visit_type_group<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeGroup) {
David Tolnay1e01f9c2017-12-28 20:16:19 -05002080 tokens_helper(_visitor, &(& _i . group_token).0);
David Tolnayeadbda32017-12-29 02:33:47 -05002081 _visitor.visit_type(& * _i . elem);
Nika Layzell27726662017-10-24 23:16:35 -04002082}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002083# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002084pub fn visit_type_impl_trait<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeImplTrait) {
David Tolnaycc0f0372017-12-28 19:11:04 -05002085 tokens_helper(_visitor, &(& _i . impl_token).0);
David Tolnay56080682018-01-06 14:01:52 -08002086 for el in Punctuated::pairs(& _i . bounds) { let it = el.value(); _visitor.visit_type_param_bound(it) };
Nika Layzell27726662017-10-24 23:16:35 -04002087}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002088# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002089pub fn visit_type_infer<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeInfer) {
David Tolnaycc0f0372017-12-28 19:11:04 -05002090 tokens_helper(_visitor, &(& _i . underscore_token).0);
Nika Layzell27726662017-10-24 23:16:35 -04002091}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002092# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002093pub fn visit_type_macro<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeMacro) {
David Tolnay323279a2017-12-29 11:26:32 -05002094 _visitor.visit_macro(& _i . mac);
2095}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002096# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002097pub fn visit_type_never<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeNever) {
David Tolnaycc0f0372017-12-28 19:11:04 -05002098 tokens_helper(_visitor, &(& _i . bang_token).0);
Nika Layzell27726662017-10-24 23:16:35 -04002099}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002100# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002101pub fn visit_type_param<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeParam) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002102 for it in & _i . attrs { _visitor.visit_attribute(it) };
Alex Crichtona74a1c82018-05-16 10:20:44 -07002103 // Skipped field _i . ident;
David Tolnaycc0f0372017-12-28 19:11:04 -05002104 if let Some(ref it) = _i . colon_token { tokens_helper(_visitor, &(it).0) };
David Tolnay56080682018-01-06 14:01:52 -08002105 for el in Punctuated::pairs(& _i . bounds) { let it = el.value(); _visitor.visit_type_param_bound(it) };
David Tolnaycc0f0372017-12-28 19:11:04 -05002106 if let Some(ref it) = _i . eq_token { tokens_helper(_visitor, &(it).0) };
David Tolnayf0d63bf2017-12-26 12:29:47 -05002107 if let Some(ref it) = _i . default { _visitor.visit_type(it) };
Nika Layzell27726662017-10-24 23:16:35 -04002108}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002109# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002110pub fn visit_type_param_bound<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeParamBound) {
Nika Layzell27726662017-10-24 23:16:35 -04002111 match *_i {
David Tolnay40fb8ce2018-01-02 10:53:46 -08002112 TypeParamBound::Trait(ref _binding_0, ) => {
2113 _visitor.visit_trait_bound(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002114 }
David Tolnay40fb8ce2018-01-02 10:53:46 -08002115 TypeParamBound::Lifetime(ref _binding_0, ) => {
David Tolnay4ba63a02017-12-28 15:53:05 -05002116 _visitor.visit_lifetime(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002117 }
2118 }
2119}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002120# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002121pub fn visit_type_paren<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeParen) {
David Tolnay1e01f9c2017-12-28 20:16:19 -05002122 tokens_helper(_visitor, &(& _i . paren_token).0);
David Tolnayeadbda32017-12-29 02:33:47 -05002123 _visitor.visit_type(& * _i . elem);
Nika Layzell27726662017-10-24 23:16:35 -04002124}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002125# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002126pub fn visit_type_path<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypePath) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002127 if let Some(ref it) = _i . qself { _visitor.visit_qself(it) };
2128 _visitor.visit_path(& _i . path);
Nika Layzell27726662017-10-24 23:16:35 -04002129}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002130# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002131pub fn visit_type_ptr<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypePtr) {
David Tolnaycc0f0372017-12-28 19:11:04 -05002132 tokens_helper(_visitor, &(& _i . star_token).0);
2133 if let Some(ref it) = _i . const_token { tokens_helper(_visitor, &(it).0) };
David Tolnay136aaa32017-12-29 02:37:36 -05002134 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
2135 _visitor.visit_type(& * _i . elem);
Nika Layzell27726662017-10-24 23:16:35 -04002136}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002137# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002138pub fn visit_type_reference<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeReference) {
David Tolnaycc0f0372017-12-28 19:11:04 -05002139 tokens_helper(_visitor, &(& _i . and_token).0);
David Tolnay4ba63a02017-12-28 15:53:05 -05002140 if let Some(ref it) = _i . lifetime { _visitor.visit_lifetime(it) };
David Tolnay136aaa32017-12-29 02:37:36 -05002141 if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
2142 _visitor.visit_type(& * _i . elem);
Nika Layzell27726662017-10-24 23:16:35 -04002143}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002144# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002145pub fn visit_type_slice<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeSlice) {
David Tolnay1e01f9c2017-12-28 20:16:19 -05002146 tokens_helper(_visitor, &(& _i . bracket_token).0);
David Tolnayeadbda32017-12-29 02:33:47 -05002147 _visitor.visit_type(& * _i . elem);
Nika Layzell27726662017-10-24 23:16:35 -04002148}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002149# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002150pub fn visit_type_trait_object<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeTraitObject) {
David Tolnaycc0f0372017-12-28 19:11:04 -05002151 if let Some(ref it) = _i . dyn_token { tokens_helper(_visitor, &(it).0) };
David Tolnay56080682018-01-06 14:01:52 -08002152 for el in Punctuated::pairs(& _i . bounds) { let it = el.value(); _visitor.visit_type_param_bound(it) };
Nika Layzell27726662017-10-24 23:16:35 -04002153}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002154# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002155pub fn visit_type_tuple<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeTuple) {
David Tolnay1e01f9c2017-12-28 20:16:19 -05002156 tokens_helper(_visitor, &(& _i . paren_token).0);
David Tolnay56080682018-01-06 14:01:52 -08002157 for el in Punctuated::pairs(& _i . elems) { let it = el.value(); _visitor.visit_type(it) };
Nika Layzell27726662017-10-24 23:16:35 -04002158}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002159# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002160pub fn visit_type_verbatim<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast TypeVerbatim) {
David Tolnay2ae520a2017-12-29 11:19:50 -05002161 // Skipped field _i . tts;
2162}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002163# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002164pub fn visit_un_op<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast UnOp) {
Nika Layzell27726662017-10-24 23:16:35 -04002165 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05002166 UnOp::Deref(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -05002167 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -04002168 }
David Tolnay6702ade2017-12-30 23:38:15 -05002169 UnOp::Not(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -05002170 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -04002171 }
David Tolnay6702ade2017-12-30 23:38:15 -05002172 UnOp::Neg(ref _binding_0, ) => {
David Tolnaycc0f0372017-12-28 19:11:04 -05002173 tokens_helper(_visitor, &(_binding_0).0);
Nika Layzell27726662017-10-24 23:16:35 -04002174 }
2175 }
2176}
David Tolnay5f332a92017-12-26 00:42:45 -05002177# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002178pub fn visit_use_glob<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast UseGlob) {
David Tolnaycc0f0372017-12-28 19:11:04 -05002179 tokens_helper(_visitor, &(& _i . star_token).0);
David Tolnay5f332a92017-12-26 00:42:45 -05002180}
2181# [ cfg ( feature = "full" ) ]
David Tolnayd97a7d22018-03-31 19:17:01 +02002182pub fn visit_use_group<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast UseGroup) {
David Tolnay1e01f9c2017-12-28 20:16:19 -05002183 tokens_helper(_visitor, &(& _i . brace_token).0);
David Tolnay56080682018-01-06 14:01:52 -08002184 for el in Punctuated::pairs(& _i . items) { let it = el.value(); _visitor.visit_use_tree(it) };
David Tolnay5f332a92017-12-26 00:42:45 -05002185}
2186# [ cfg ( feature = "full" ) ]
David Tolnayd97a7d22018-03-31 19:17:01 +02002187pub fn visit_use_name<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast UseName) {
Alex Crichtona74a1c82018-05-16 10:20:44 -07002188 // Skipped field _i . ident;
David Tolnayd97a7d22018-03-31 19:17:01 +02002189}
2190# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002191pub fn visit_use_path<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast UsePath) {
Alex Crichtona74a1c82018-05-16 10:20:44 -07002192 // Skipped field _i . ident;
David Tolnayd97a7d22018-03-31 19:17:01 +02002193 tokens_helper(_visitor, &(& _i . colon2_token).0);
2194 _visitor.visit_use_tree(& * _i . tree);
2195}
2196# [ cfg ( feature = "full" ) ]
2197pub fn visit_use_rename<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast UseRename) {
Alex Crichtona74a1c82018-05-16 10:20:44 -07002198 // Skipped field _i . ident;
David Tolnayd97a7d22018-03-31 19:17:01 +02002199 tokens_helper(_visitor, &(& _i . as_token).0);
Alex Crichtona74a1c82018-05-16 10:20:44 -07002200 // Skipped field _i . rename;
David Tolnay5f332a92017-12-26 00:42:45 -05002201}
2202# [ cfg ( feature = "full" ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002203pub fn visit_use_tree<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast UseTree) {
David Tolnay5f332a92017-12-26 00:42:45 -05002204 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05002205 UseTree::Path(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002206 _visitor.visit_use_path(_binding_0);
David Tolnay5f332a92017-12-26 00:42:45 -05002207 }
David Tolnayd97a7d22018-03-31 19:17:01 +02002208 UseTree::Name(ref _binding_0, ) => {
2209 _visitor.visit_use_name(_binding_0);
2210 }
2211 UseTree::Rename(ref _binding_0, ) => {
2212 _visitor.visit_use_rename(_binding_0);
2213 }
David Tolnay6702ade2017-12-30 23:38:15 -05002214 UseTree::Glob(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002215 _visitor.visit_use_glob(_binding_0);
David Tolnay5f332a92017-12-26 00:42:45 -05002216 }
David Tolnayd97a7d22018-03-31 19:17:01 +02002217 UseTree::Group(ref _binding_0, ) => {
2218 _visitor.visit_use_group(_binding_0);
David Tolnay5f332a92017-12-26 00:42:45 -05002219 }
2220 }
2221}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002222# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002223pub fn visit_variant<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Variant) {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002224 for it in & _i . attrs { _visitor.visit_attribute(it) };
Alex Crichtona74a1c82018-05-16 10:20:44 -07002225 // Skipped field _i . ident;
David Tolnaye3d41b72017-12-31 15:24:00 -05002226 _visitor.visit_fields(& _i . fields);
David Tolnaye67902a2017-12-28 22:12:00 -05002227 if let Some(ref it) = _i . discriminant {
2228 tokens_helper(_visitor, &(& ( it ) . 0).0);
2229 _visitor.visit_expr(& ( it ) . 1);
2230 };
Nika Layzell27726662017-10-24 23:16:35 -04002231}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002232# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002233pub fn visit_vis_crate<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast VisCrate) {
David Tolnaycc0f0372017-12-28 19:11:04 -05002234 tokens_helper(_visitor, &(& _i . crate_token).0);
Nika Layzell27726662017-10-24 23:16:35 -04002235}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002236# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002237pub fn visit_vis_public<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast VisPublic) {
David Tolnaycc0f0372017-12-28 19:11:04 -05002238 tokens_helper(_visitor, &(& _i . pub_token).0);
Nika Layzell27726662017-10-24 23:16:35 -04002239}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002240# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002241pub fn visit_vis_restricted<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast VisRestricted) {
David Tolnaycc0f0372017-12-28 19:11:04 -05002242 tokens_helper(_visitor, &(& _i . pub_token).0);
David Tolnay1e01f9c2017-12-28 20:16:19 -05002243 tokens_helper(_visitor, &(& _i . paren_token).0);
David Tolnaycc0f0372017-12-28 19:11:04 -05002244 if let Some(ref it) = _i . in_token { tokens_helper(_visitor, &(it).0) };
David Tolnay4a918742017-12-28 16:54:41 -05002245 _visitor.visit_path(& * _i . path);
Nika Layzell27726662017-10-24 23:16:35 -04002246}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002247# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002248pub fn visit_visibility<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Visibility) {
Nika Layzell27726662017-10-24 23:16:35 -04002249 match *_i {
David Tolnay6702ade2017-12-30 23:38:15 -05002250 Visibility::Public(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002251 _visitor.visit_vis_public(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002252 }
David Tolnay6702ade2017-12-30 23:38:15 -05002253 Visibility::Crate(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002254 _visitor.visit_vis_crate(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002255 }
David Tolnay6702ade2017-12-30 23:38:15 -05002256 Visibility::Restricted(ref _binding_0, ) => {
David Tolnayf0d63bf2017-12-26 12:29:47 -05002257 _visitor.visit_vis_restricted(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002258 }
David Tolnay6702ade2017-12-30 23:38:15 -05002259 Visibility::Inherited => { }
Nika Layzell27726662017-10-24 23:16:35 -04002260 }
2261}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002262# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002263pub fn visit_where_clause<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast WhereClause) {
David Tolnaycc0f0372017-12-28 19:11:04 -05002264 tokens_helper(_visitor, &(& _i . where_token).0);
David Tolnay56080682018-01-06 14:01:52 -08002265 for el in Punctuated::pairs(& _i . predicates) { let it = el.value(); _visitor.visit_where_predicate(it) };
Nika Layzell27726662017-10-24 23:16:35 -04002266}
David Tolnay3cfd1d32018-01-03 00:22:08 -08002267# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
David Tolnay4b4c4b62018-01-06 13:48:05 -08002268pub fn visit_where_predicate<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast WherePredicate) {
Nika Layzell27726662017-10-24 23:16:35 -04002269 match *_i {
David Tolnayd4add852018-01-01 20:13:24 -08002270 WherePredicate::Type(ref _binding_0, ) => {
2271 _visitor.visit_predicate_type(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002272 }
David Tolnayd4add852018-01-01 20:13:24 -08002273 WherePredicate::Lifetime(ref _binding_0, ) => {
2274 _visitor.visit_predicate_lifetime(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002275 }
David Tolnayd4add852018-01-01 20:13:24 -08002276 WherePredicate::Eq(ref _binding_0, ) => {
2277 _visitor.visit_predicate_eq(_binding_0);
Nika Layzell27726662017-10-24 23:16:35 -04002278 }
2279 }
2280}
2281