diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-01-23 11:43:31 +0000 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2025-01-30 12:06:37 +0000 |
commit | 51a2da3d567dfbc70e9407276dfabc0b963ad420 (patch) | |
tree | 15e1526300e8952b0e918e621e3a98c9e9862c80 /gcc/rust/ast/rust-ast.h | |
parent | ad46f0871d80966a1dd1adf7bf444c99f094d42a (diff) | |
download | gcc-51a2da3d567dfbc70e9407276dfabc0b963ad420.zip gcc-51a2da3d567dfbc70e9407276dfabc0b963ad420.tar.gz gcc-51a2da3d567dfbc70e9407276dfabc0b963ad420.tar.bz2 |
ast: Add new Expr::Kinds
Collapses all of the OperatorExprs into Expr instead of first having to check for OperatorExpr and
then check for each OperatorExpr::Kind.
gcc/rust/ChangeLog:
* ast/rust-ast.h: Add new Expr::Kinds.
* ast/rust-expr.h: Implement missing get_expr_kind(), Add get_function_expr_ptr()
Diffstat (limited to 'gcc/rust/ast/rust-ast.h')
-rw-r--r-- | gcc/rust/ast/rust-ast.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index 2d907e2..e3999db 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -1263,6 +1263,16 @@ public: Identifier, FormatArgs, MacroInvocation, + Borrow, + Dereference, + ErrorPropagation, + Negation, + ArithmeticOrLogical, + Comparison, + LazyBoolean, + TypeCast, + Assignment, + CompoundAssignment, }; virtual Kind get_expr_kind () const = 0; |