aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-02-23 09:17:08 +0000
committerGitHub <noreply@github.com>2022-02-23 09:17:08 +0000
commit10de9cf4f3765526a1a82a4a7d14908b58c6538c (patch)
tree74a005cad16ea7ccd00f95720523c2f569de0fa1 /gcc/rust/ast
parente0f261f1aea2c9968a07442ca5d4eab813f86a58 (diff)
parent92a62562c804b8cc400383bc4b0acb9e79e22a93 (diff)
downloadgcc-10de9cf4f3765526a1a82a4a7d14908b58c6538c.zip
gcc-10de9cf4f3765526a1a82a4a7d14908b58c6538c.tar.gz
gcc-10de9cf4f3765526a1a82a4a7d14908b58c6538c.tar.bz2
Merge #956
956: Substitute repetitions r=CohenArthur a=CohenArthur Needs #955 This PR splits up the `substitute_tokens` function into multiple smaller functions. Still a draft until I can get repetitions working. Closes #960 Closes #961 Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diffstat (limited to 'gcc/rust/ast')
-rw-r--r--gcc/rust/ast/rust-ast.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h
index e72937e..dfd0b3e 100644
--- a/gcc/rust/ast/rust-ast.h
+++ b/gcc/rust/ast/rust-ast.h
@@ -204,6 +204,7 @@ public:
std::vector<std::unique_ptr<Token> > to_token_stream () const override;
TokenId get_id () const { return tok_ref->get_id (); }
+ const std::string &get_str () const { return tok_ref->get_str (); }
Location get_locus () const { return tok_ref->get_locus (); }