diff options
author | Philip Herron <phil@nebuloninc.com> | 2020-05-16 23:04:02 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2020-11-28 19:13:35 +0000 |
commit | 821e1fb4a6ad8d969753524341fbb8bfb59ef4b8 (patch) | |
tree | db967438128d84a749d524160ad055377bf20fb9 /gcc | |
parent | d02f55c38818dba81934c4cb6806c32a3283fb0f (diff) | |
download | gcc-821e1fb4a6ad8d969753524341fbb8bfb59ef4b8.zip gcc-821e1fb4a6ad8d969753524341fbb8bfb59ef4b8.tar.gz gcc-821e1fb4a6ad8d969753524341fbb8bfb59ef4b8.tar.bz2 |
Need to be able to visit LHS and RHS of AssignmentExpr
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-expr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index 45cb14c..d310968 100644 --- a/gcc/rust/ast/rust-expr.h +++ b/gcc/rust/ast/rust-expr.h @@ -941,6 +941,10 @@ public: virtual void accept_vis (ASTVisitor &vis) OVERRIDE; + void visit_lhs (ASTVisitor &vis) { main_or_left_expr->accept_vis (vis); } + + void visit_rhs (ASTVisitor &vis) { right_expr->accept_vis (vis); } + protected: // Use covariance to implement clone function as returning this object rather // than base |