]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: ast: Add new Expr::Kinds
authorArthur Cohen <arthur.cohen@embecosm.com>
Thu, 23 Jan 2025 11:43:31 +0000 (11:43 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 24 Mar 2025 12:06:58 +0000 (13:06 +0100)
commitc1d6807f7a50f4a84b4e4d4bba12ca9d360473d8
tree2503e9987ed7847bcb459ca5e4913de63ec8e8cc
parent89d8c5434c62949d8bb66ac3bd2475b7150d4d45
gccrs: 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()
gcc/rust/ast/rust-ast.h
gcc/rust/ast/rust-expr.h