aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2025-04-09 14:44:11 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2025-04-14 18:23:54 +0200
commit4aa6cae27bd1ca3513dcb512158ed27a4afe800d (patch)
treea7b84c2d603add04196a236340ea460222298fbc
parent09c4a7a58b4dd6a95b72224d83c715308da9838a (diff)
downloadgcc-4aa6cae27bd1ca3513dcb512158ed27a4afe800d.zip
gcc-4aa6cae27bd1ca3513dcb512158ed27a4afe800d.tar.gz
gcc-4aa6cae27bd1ca3513dcb512158ed27a4afe800d.tar.bz2
gccrs: ast: Add get_locus() to DelimTokenTree
gcc/rust/ChangeLog: * ast/rust-ast.h (DelimTokenTree::get_locus): New function.
-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 09e0fce..91611ec 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