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

Unified Diff: runtime/vm/report.h

Issue 1574213005: Report missing semicolons after function declarations (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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/raw_object_snapshot.cc ('k') | runtime/vm/report.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/report.h
diff --git a/runtime/vm/report.h b/runtime/vm/report.h
index 8cc50a102670f15a4ad101962147ed96fd16b4d7..1a8d22aa31fa273dc5843e2c24802231a459b28e 100644
--- a/runtime/vm/report.h
+++ b/runtime/vm/report.h
@@ -28,6 +28,9 @@ class Report : AllStatic {
kBailout,
};
+ static const bool AtLocation = false;
+ static const bool AfterLocation = true;
+
// Report an already formatted error via a long jump.
static void LongJump(const Error& error);
@@ -41,8 +44,10 @@ class Report : AllStatic {
// Report a warning/jswarning/error/bailout message.
static void MessageF(Kind kind, const Script& script, intptr_t token_pos,
- const char* format, ...) PRINTF_ATTRIBUTE(4, 5);
+ bool report_after_token,
+ const char* format, ...) PRINTF_ATTRIBUTE(5, 6);
static void MessageV(Kind kind, const Script& script, intptr_t token_pos,
+ bool report_after_token,
const char* format, va_list args);
// Support to report Javascript compatibility warnings. Note that a
@@ -67,6 +72,7 @@ class Report : AllStatic {
static RawString* PrependSnippet(Kind kind,
const Script& script,
intptr_t token_pos,
+ bool report_after_token,
const String& message);
private:
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/report.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698