Rename TypeBinding to Binding
diff --git a/src/gen/fold.rs b/src/gen/fold.rs
index 11e071f..a9c8951 100644
--- a/src/gen/fold.rs
+++ b/src/gen/fold.rs
@@ -61,6 +61,8 @@
fn fold_bare_fn_arg_name(&mut self, i: BareFnArgName) -> BareFnArgName { fold_bare_fn_arg_name(self, i) }
fn fold_bin_op(&mut self, i: BinOp) -> BinOp { fold_bin_op(self, i) }
+
+fn fold_binding(&mut self, i: Binding) -> Binding { fold_binding(self, i) }
# [ cfg ( feature = "full" ) ]
fn fold_block(&mut self, i: Block) -> Block { fold_block(self, i) }
@@ -332,8 +334,6 @@
fn fold_type_bare_fn(&mut self, i: TypeBareFn) -> TypeBareFn { fold_type_bare_fn(self, i) }
-fn fold_type_binding(&mut self, i: TypeBinding) -> TypeBinding { fold_type_binding(self, i) }
-
fn fold_type_group(&mut self, i: TypeGroup) -> TypeGroup { fold_type_group(self, i) }
fn fold_type_impl_trait(&mut self, i: TypeImplTrait) -> TypeImplTrait { fold_type_impl_trait(self, i) }
@@ -655,6 +655,14 @@
}
}
}
+
+pub fn fold_binding<V: Folder + ?Sized>(_visitor: &mut V, _i: Binding) -> Binding {
+ Binding {
+ ident: _visitor.fold_ident(_i . ident),
+ eq_token: Token ! [ = ](tokens_helper(_visitor, &(_i . eq_token).0)),
+ ty: _visitor.fold_type(_i . ty),
+ }
+}
# [ cfg ( feature = "full" ) ]
pub fn fold_block<V: Folder + ?Sized>(_visitor: &mut V, _i: Block) -> Block {
Block {
@@ -1460,9 +1468,9 @@
_visitor.fold_type(_binding_0),
)
}
- TypeBinding(_binding_0, ) => {
- TypeBinding (
- _visitor.fold_type_binding(_binding_0),
+ Binding(_binding_0, ) => {
+ Binding (
+ _visitor.fold_binding(_binding_0),
)
}
Const(_binding_0, ) => {
@@ -2526,14 +2534,6 @@
}
}
-pub fn fold_type_binding<V: Folder + ?Sized>(_visitor: &mut V, _i: TypeBinding) -> TypeBinding {
- TypeBinding {
- ident: _visitor.fold_ident(_i . ident),
- eq_token: Token ! [ = ](tokens_helper(_visitor, &(_i . eq_token).0)),
- ty: _visitor.fold_type(_i . ty),
- }
-}
-
pub fn fold_type_group<V: Folder + ?Sized>(_visitor: &mut V, _i: TypeGroup) -> TypeGroup {
TypeGroup {
group_token: Group(tokens_helper(_visitor, &(_i . group_token).0)),