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

Unified Diff: runtime/vm/parser.h

Issue 9559001: Fix Issue 1846: Improve error reporting in presence of imports. With this CL: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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 | « no previous file | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.h
===================================================================
--- runtime/vm/parser.h (revision 4770)
+++ runtime/vm/parser.h (working copy)
@@ -192,7 +192,18 @@
// Reports error message at given location.
void ErrorMsg(intptr_t token_index, const char* msg, ...);
void Warning(intptr_t token_index, const char* msg, ...);
+ // Concatenates two error messages, the previous and the current one.
+ void AppendErrorMsg(
+ const Error& prev_error, intptr_t token_index, const char* format, ...);
+ // Same as FormatError, but appends the new error to the 'prev_error'.
+ static RawError* FormatErrorWithAppend(const Error& prev_error,
+ const Script& script,
+ intptr_t token_index,
+ const char* message_header,
+ const char* format,
+ va_list args);
+
const Instance& EvaluateConstExpr(AstNode* expr);
void RunStaticFieldInitializer(const Field& field);
RawObject* EvaluateConstConstructorCall(
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698