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

Unified Diff: runtime/vm/parser.h

Issue 9615035: Generate dynamic type errors according to spec. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.h
===================================================================
--- runtime/vm/parser.h (revision 5063)
+++ runtime/vm/parser.h (working copy)
@@ -89,6 +89,14 @@
const char* format,
va_list args);
+ // 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);
+
private:
struct Block;
class TryBlocks;
@@ -192,18 +200,14 @@
// Reports error message at given location.
void ErrorMsg(intptr_t token_index, const char* msg, ...);
void Warning(intptr_t token_index, const char* msg, ...);
+
+ // Reports an already formatted error message.
+ void ErrorMsg(const Error& error);
+
// 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 | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698