diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-10-10 22:50:55 -0400 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:09:14 +0100 |
commit | 292aec084c9986ea4274cd23f73248879a713911 (patch) | |
tree | bce445c2baf3b4fd9177d30eec16a5f49e4479d2 /gcc/rust/ast/rust-macro.h | |
parent | 4c835425d056444a2fc3d13d9aa0625c445189a2 (diff) | |
download | gcc-292aec084c9986ea4274cd23f73248879a713911.zip gcc-292aec084c9986ea4274cd23f73248879a713911.tar.gz gcc-292aec084c9986ea4274cd23f73248879a713911.tar.bz2 |
gccrs: Replace get_pattern_node_id with get_node_id
gcc/rust/ChangeLog:
* ast/rust-ast.h
(Pattern::get_pattern_node_id): Rename to...
(Pattern::get_node_id): ...here.
* ast/rust-macro.h
(MacroInvocation::get_pattern_node_id): Rename to...
(MacroInvocation::get_node_id): ...here.
* ast/rust-path.h
(PathInExpression::get_pattern_node_id): Remove.
(QualifiedPathInExpression::get_pattern_node_id): Remove.
* ast/rust-pattern.h
(LiteralPattern::get_pattern_node_id): Remove.
(IdentifierPattern::get_pattern_node_id): Remove.
(WildcardPattern::get_pattern_node_id): Remove.
(RestPattern::get_pattern_node_id): Rename to...
(RestPattern::get_node_id): ...here.
(RangePattern::get_pattern_node_id): Remove.
(ReferencePattern::get_pattern_node_id): Remove.
(StructPattern::get_pattern_node_id): Remove.
(TupleStructPattern::get_pattern_node_id): Remove.
(TuplePattern::get_pattern_node_id): Remove.
(GroupedPattern::get_pattern_node_id): Remove.
(SlicePattern::get_pattern_node_id): Remove.
(AltPattern::get_pattern_node_id): Remove.
* resolve/rust-early-name-resolver.cc
(EarlyNameResolver::visit):
Use get_node_id instead of get_pattern_node_id.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/ast/rust-macro.h')
-rw-r--r-- | gcc/rust/ast/rust-macro.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h index 490e812..435ecb1 100644 --- a/gcc/rust/ast/rust-macro.h +++ b/gcc/rust/ast/rust-macro.h @@ -668,7 +668,7 @@ public: outer_attrs = std::move (new_attrs); } - NodeId get_pattern_node_id () const override final + NodeId get_node_id () const override final { return ExprWithoutBlock::get_node_id (); } |