diff options
Diffstat (limited to 'gcc/rust/ast/rust-ast.h')
-rw-r--r-- | gcc/rust/ast/rust-ast.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index 0c22c37..ba973f1 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -111,6 +111,7 @@ public: virtual ~MacroMatch () {} virtual std::string as_string () const = 0; + virtual Location get_match_locus () const = 0; // Unique pointer custom clone function std::unique_ptr<MacroMatch> clone_macro_match () const @@ -217,6 +218,7 @@ public: } std::string as_string () const override; + Location get_match_locus () const override { return tok_ref->get_locus (); }; void accept_vis (ASTVisitor &vis) override; |