Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Unified Diff: runtime/vm/object.h

Issue 2044753002: Make compile-time errors catchable (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address review comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/object_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 6697e5c55b39e2d4718c7f89b5c995b98394e73b..0e820b7cc6ba95898c660be91eff476fa86d45e6 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -5349,6 +5349,8 @@ class LanguageError : public Error {
virtual const char* ToErrorCString() const;
+ TokenPosition token_pos() const { return raw_ptr()->token_pos_; }
+
private:
RawError* previous_error() const {
return raw_ptr()->previous_error_;
@@ -5358,7 +5360,6 @@ class LanguageError : public Error {
RawScript* script() const { return raw_ptr()->script_; }
void set_script(const Script& value) const;
- TokenPosition token_pos() const { return raw_ptr()->token_pos_; }
void set_token_pos(TokenPosition value) const;
bool report_after_token() const { return raw_ptr()->report_after_token_; }
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/object_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698