diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-04-25 21:41:26 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-04-28 15:15:05 +0200 |
commit | ad326924829d618e1f2ec94a2152bfad2a0ad0c5 (patch) | |
tree | 8c74d24c5a928ce11cdb603af398928375c5b5b9 /gcc | |
parent | 1ada076b9324982fd6f49aea6456e99613e394a8 (diff) | |
download | gcc-ad326924829d618e1f2ec94a2152bfad2a0ad0c5.zip gcc-ad326924829d618e1f2ec94a2152bfad2a0ad0c5.tar.gz gcc-ad326924829d618e1f2ec94a2152bfad2a0ad0c5.tar.bz2 |
ast: resolve: Move ResolveItem into its own source file
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-ast.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index f2b14ab..666fd7c 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -404,6 +404,11 @@ public: = {AST::SimplePathSegment (std::move (str), locus)}; return SimplePath (std::move (single_segments)); } + + const std::vector<SimplePathSegment> &get_segments () const + { + return segments; + } }; // path-to-string inverse comparison operator |