From: Arthur Cohen Date: Wed, 9 Apr 2025 12:44:11 +0000 (+0200) Subject: gccrs: ast: Add get_locus() to DelimTokenTree X-Git-Tag: basepoints/gcc-16~111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4aa6cae27bd1ca3513dcb512158ed27a4afe800d;p=thirdparty%2Fgcc.git gccrs: ast: Add get_locus() to DelimTokenTree gcc/rust/ChangeLog: * ast/rust-ast.h (DelimTokenTree::get_locus): New function. --- diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index 09e0fce4f19..91611ec6a62 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