]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: ast: Add get_locus() to DelimTokenTree
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 9 Apr 2025 12:44:11 +0000 (14:44 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 14 Apr 2025 16:23:54 +0000 (18:23 +0200)
gcc/rust/ChangeLog:

* ast/rust-ast.h (DelimTokenTree::get_locus): New function.

gcc/rust/ast/rust-ast.h

index 09e0fce4f1906bb19194cc06baf8189b7ed61491..91611ec6a622bcb498c27a1e00e58617d9c273c1 100644 (file)
@@ -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