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

Unified Diff: pkg/compiler/lib/src/dart2js.dart

Issue 1247773002: Add access the Message in CompilerDiagnostics.report. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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: pkg/compiler/lib/src/dart2js.dart
diff --git a/pkg/compiler/lib/src/dart2js.dart b/pkg/compiler/lib/src/dart2js.dart
index 5e36769e803afca344039956e7bed91fe93e53bf..24a058f317f0a1ccae0cf8995a05b00694614781 100644
--- a/pkg/compiler/lib/src/dart2js.dart
+++ b/pkg/compiler/lib/src/dart2js.dart
@@ -503,7 +503,7 @@ void writeString(Uri uri, String text) {
void fail(String message) {
if (diagnosticHandler != null) {
diagnosticHandler.report(
- null, -1, -1, message, api.Diagnostic.ERROR);
+ null, null, -1, -1, message, api.Diagnostic.ERROR);
} else {
print('Error: $message');
}

Powered by Google App Engine
This is Rietveld 408576698