aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast-tokenstream.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-tokenstream.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-tokenstream.h')
-rw-r--r--gcc/rust/ast/rust-ast-tokenstream.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast-tokenstream.h b/gcc/rust/ast/rust-ast-tokenstream.h
index 6432ac4..70ef246 100644
--- a/gcc/rust/ast/rust-ast-tokenstream.h
+++ b/gcc/rust/ast/rust-ast-tokenstream.h
@@ -121,11 +121,15 @@ private:
void visit (ConstGenericParam &const_param);
// rust-path.h
+ void visit (SimplePath &path);
+ void visit (PathExprSegment &segment);
+ void visit (PathIdentSegment &segment);
void visit (PathInExpression &path);
void visit (TypePathSegment &segment);
void visit (TypePathSegmentGeneric &segment);
void visit (TypePathSegmentFunction &segment);
void visit (TypePath &path);
+ void visit (QualifiedPathType &path);
void visit (QualifiedPathInExpression &path);
void visit (QualifiedPathInType &path);