Rename Expr::AddrOf to Reference
diff --git a/src/gen/visit.rs b/src/gen/visit.rs
index 1add246..6205c54 100644
--- a/src/gen/visit.rs
+++ b/src/gen/visit.rs
@@ -74,8 +74,6 @@
# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
fn visit_expr(&mut self, i: &'ast Expr) { visit_expr(self, i) }
# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
-fn visit_expr_addr_of(&mut self, i: &'ast ExprAddrOf) { visit_expr_addr_of(self, i) }
-# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
fn visit_expr_array(&mut self, i: &'ast ExprArray) { visit_expr_array(self, i) }
# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
fn visit_expr_assign(&mut self, i: &'ast ExprAssign) { visit_expr_assign(self, i) }
@@ -130,6 +128,8 @@
# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
fn visit_expr_range(&mut self, i: &'ast ExprRange) { visit_expr_range(self, i) }
# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
+fn visit_expr_reference(&mut self, i: &'ast ExprReference) { visit_expr_reference(self, i) }
+# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
fn visit_expr_repeat(&mut self, i: &'ast ExprRepeat) { visit_expr_repeat(self, i) }
# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
fn visit_expr_return(&mut self, i: &'ast ExprReturn) { visit_expr_return(self, i) }
@@ -733,8 +733,8 @@
Expr::Path(ref _binding_0, ) => {
_visitor.visit_expr_path(_binding_0);
}
- Expr::AddrOf(ref _binding_0, ) => {
- full!(_visitor.visit_expr_addr_of(_binding_0));
+ Expr::Reference(ref _binding_0, ) => {
+ full!(_visitor.visit_expr_reference(_binding_0));
}
Expr::Break(ref _binding_0, ) => {
full!(_visitor.visit_expr_break(_binding_0));
@@ -775,13 +775,6 @@
}
}
# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
-pub fn visit_expr_addr_of<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprAddrOf) {
- for it in & _i . attrs { _visitor.visit_attribute(it) };
- tokens_helper(_visitor, &(& _i . and_token).0);
- if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
- _visitor.visit_expr(& * _i . expr);
-}
-# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
pub fn visit_expr_array<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprArray) {
for it in & _i . attrs { _visitor.visit_attribute(it) };
tokens_helper(_visitor, &(& _i . bracket_token).0);
@@ -980,6 +973,13 @@
if let Some(ref it) = _i . to { _visitor.visit_expr(& * * it) };
}
# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
+pub fn visit_expr_reference<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprReference) {
+ for it in & _i . attrs { _visitor.visit_attribute(it) };
+ tokens_helper(_visitor, &(& _i . and_token).0);
+ if let Some(ref it) = _i . mutability { tokens_helper(_visitor, &(it).0) };
+ _visitor.visit_expr(& * _i . expr);
+}
+# [ cfg ( feature = "full" ) ] # [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
pub fn visit_expr_repeat<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast ExprRepeat) {
for it in & _i . attrs { _visitor.visit_attribute(it) };
tokens_helper(_visitor, &(& _i . bracket_token).0);