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

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

gcc/rust/ast/rust-ast.h

index 71facfff2671495d3ec576a9c2d2a5c1ca53bc8f..3f41034a7317b5309094a654108d9ba857472af3 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