]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: ast: Add AST::Kind::IDENTIFIER
authorSergey Bugaev <bugaevc@gmail.com>
Mon, 3 Apr 2023 15:48:45 +0000 (18:48 +0300)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:34:08 +0000 (18:34 +0100)
commitb503080cd219b8f05184f6322d943d1c03f56b08
tree3846fe5d952e9f57ef91e6a315d76189df3f18f4
parent635a63c032491f6da2c82d9fdac0b2c8c020d68e
gccrs: ast: Add AST::Kind::IDENTIFIER

...and return it from IdentifierExpr::get_ast_kind (). This enables
other code to dynamically test whether an expression is in fact an
IdentifierExpr.

gcc/rust/ChangeLog:
* ast/rust-ast.h: Add AST::Kind::IDENTIFIER

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
gcc/rust/ast/rust-ast.h