aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast.h
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-03-22 13:20:31 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2023-03-30 16:48:26 +0200
commit028f85abf70e231f9517a9f693fb6f3111d3a213 (patch)
treefed477ae98fc5c86c7b7959243cf82743b3066a2 /gcc/rust/ast/rust-ast.h
parentcf6c77494c09e23aa2108eb238efcae35627e810 (diff)
downloadgcc-028f85abf70e231f9517a9f693fb6f3111d3a213.zip
gcc-028f85abf70e231f9517a9f693fb6f3111d3a213.tar.gz
gcc-028f85abf70e231f9517a9f693fb6f3111d3a213.tar.bz2
ast: Refactor and add some Path node visitors
Implement some functions for Path nodes and refactor existing ones by merging some common code. gcc/rust/ChangeLog: * ast/rust-ast-tokenstream.cc (TokenStream::visit): Implement visitors. * ast/rust-ast-tokenstream.h: Add function prototypes. * ast/rust-ast.h: Add missing getters. * ast/rust-expr.h: Likewise. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/ast/rust-ast.h')
-rw-r--r--gcc/rust/ast/rust-ast.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h
index 90a5773..a4da389 100644
--- a/gcc/rust/ast/rust-ast.h
+++ b/gcc/rust/ast/rust-ast.h
@@ -393,6 +393,11 @@ public:
std::string as_string () const;
+ bool get_has_opening_scope_resolution () const
+ {
+ return has_opening_scope_resolution;
+ }
+
Location get_locus () const { return locus; }
NodeId get_node_id () const { return node_id; }