...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>
UNKNOWN,
MACRO_RULES_DEFINITION,
MACRO_INVOCATION,
+ IDENTIFIER,
};
class Visitable
outer_attrs = std::move (new_attrs);
}
+ Kind get_ast_kind () const override { return Kind::IDENTIFIER; }
+
protected:
// Clone method implementation
IdentifierExpr *clone_expr_without_block_impl () const final override