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

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

Issue 574683002: Use ConstExp for storing constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes and further implementation. Created 6 years, 3 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 4f1ab34a161076afb08709a4c97ee03f3403b396..e7daa0185347537efea75bb00b9592ee43af8206 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -363,8 +363,10 @@ class MockDeferredLoadTask extends DeferredLoadTask {
}
}
-api.DiagnosticHandler createHandler(MockCompiler compiler, String text) {
+api.DiagnosticHandler createHandler(MockCompiler compiler, String text,
+ {bool verbose: false}) {
return (uri, int begin, int end, String message, kind) {
+ if (kind == api.Diagnostic.VERBOSE_INFO && !verbose) return;
SourceFile sourceFile;
if (uri == null) {
sourceFile = new StringSourceFile('analysis', text);

Powered by Google App Engine
This is Rietveld 408576698