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

Unified Diff: runtime/vm/class_finalizer.h

Issue 340203003: Cleanup of error and warning reporting. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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
Index: runtime/vm/class_finalizer.h
===================================================================
--- runtime/vm/class_finalizer.h (revision 37456)
+++ runtime/vm/class_finalizer.h (working copy)
@@ -162,16 +162,19 @@
static void PrintClassInformation(const Class& cls);
static void CollectInterfaces(const Class& cls,
const GrowableObjectArray& interfaces);
- static void ReportMalformedType(const Error& prev_error,
- const Script& script,
- const Type& type,
- const char* format,
- va_list args);
+ static void MarkTypeMalformed(const Error& prev_error,
+ const Script& script,
+ const Type& type,
+ const char* format,
+ va_list args);
static void ReportError(const Error& error);
- static void ReportError(const Error& prev_error,
- const Script& script,
- intptr_t token_index,
- const char* format, ...) PRINTF_ATTRIBUTE(4, 5);
+ static void ReportError(const Class& cls,
+ intptr_t token_pos,
+ const char* format, ...) PRINTF_ATTRIBUTE(3, 4);
+ static void ReportErrors(const Error& error,
srdjan 2014/06/18 21:26:42 For documentation purpose: s/error/prev_error/
regis 2014/06/18 22:13:28 Done here, in parser, and in report.
+ const Class& cls,
+ intptr_t token_pos,
+ const char* format, ...) PRINTF_ATTRIBUTE(4, 5);
// Verify implicit offsets recorded in the VM for direct access to fields of
// Dart instances (e.g: _TypedListView, _ByteDataView).

Powered by Google App Engine
This is Rietveld 408576698