diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-04-09 14:44:11 +0200 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2025-04-14 08:03:49 +0000 |
commit | 64d4e0f1e587d167f7734acad8dbf48be1e33fa3 (patch) | |
tree | 6638cba69015c44330e4fcca0cadb5619ff9cd31 /gcc | |
parent | 4d09dd4abab3b0f4b9ceeaf434001ae2b41eb7e0 (diff) | |
download | gcc-64d4e0f1e587d167f7734acad8dbf48be1e33fa3.zip gcc-64d4e0f1e587d167f7734acad8dbf48be1e33fa3.tar.gz gcc-64d4e0f1e587d167f7734acad8dbf48be1e33fa3.tar.bz2 |
ast: Add get_locus() to DelimTokenTree
gcc/rust/ChangeLog:
* ast/rust-ast.h (DelimTokenTree::get_locus): New function.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-ast.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index 71facff..3f41034 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -1018,6 +1018,7 @@ public: } DelimType get_delim_type () const { return delim_type; } + location_t get_locus () const { return locus; } }; /* Forward decl - definition moved to rust-expr.h as it requires LiteralExpr |