diff options
Diffstat (limited to 'gcc/rust/parse/rust-parse.h')
-rw-r--r-- | gcc/rust/parse/rust-parse.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/rust/parse/rust-parse.h b/gcc/rust/parse/rust-parse.h index 86e0d2a..45f00f5 100644 --- a/gcc/rust/parse/rust-parse.h +++ b/gcc/rust/parse/rust-parse.h @@ -595,7 +595,6 @@ private: bool done_end_of_file (); void add_error (Error error) { error_table.push_back (std::move (error)); } - std::vector<Error> &get_errors () { return error_table; } public: // Construct parser with specified "managed" token source. @@ -615,6 +614,9 @@ public: // Returns whether any parsing errors have occurred. bool has_errors () const { return !error_table.empty (); } + // Get a reference to the list of errors encountered + std::vector<Error> &get_errors () { return error_table; } + private: // The token source (usually lexer) associated with the parser. ManagedTokenSource lexer; |