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

Unified Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 1167353003: Opt-in to generate code for compile-time error. Only supported for SSA. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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: tests/compiler/dart2js/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index f6c9cc87e433443859e1235213ee62db24650663..3d879dfc9cc15a0b6799f869856fbe05d5150784 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -389,9 +389,9 @@ api.DiagnosticHandler createHandler(MockCompiler compiler, String text,
sourceFile = compiler.sourceFiles[uri.toString()];
}
if (sourceFile != null && begin != null && end != null) {
- print(sourceFile.getLocationMessage(message, begin, end));
+ print('${kind}: ${sourceFile.getLocationMessage(message, begin, end)}');
} else {
- print(message);
+ print('${kind}: $message');
}
};
}
« no previous file with comments | « tests/compiler/dart2js/generate_code_with_compile_time_errors_test.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698