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

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

Issue 173713002: Add --hide-package-warnings option. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comment Created 6 years, 10 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 | « tests/compiler/dart2js/in_user_code_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/memory_compiler.dart
diff --git a/tests/compiler/dart2js/memory_compiler.dart b/tests/compiler/dart2js/memory_compiler.dart
index 269cc1cf5b1b9eb9ec06410ad24a8efdcc44117a..b4091f3fe5ea7688646c4f1eb4300a7a691379e1 100644
--- a/tests/compiler/dart2js/memory_compiler.dart
+++ b/tests/compiler/dart2js/memory_compiler.dart
@@ -8,7 +8,6 @@ import 'memory_source_file_helper.dart';
import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart'
show NullSink;
-import '../../../sdk/lib/_internal/compiler/implementation/filenames.dart';
import '../../../sdk/lib/_internal/compiler/compiler.dart'
show Diagnostic, DiagnosticHandler;
@@ -26,6 +25,8 @@ class DiagnosticMessage {
final Diagnostic kind;
DiagnosticMessage(this.uri, this.begin, this.end, this.message, this.kind);
+
+ String toString() => '$uri:$begin:$end:$message:$kind';
}
class DiagnosticCollector {
@@ -52,6 +53,10 @@ class DiagnosticCollector {
Iterable<DiagnosticMessage> get hints {
return filterMessagesByKind(Diagnostic.HINT);
}
+
+ Iterable<DiagnosticMessage> get infos {
+ return filterMessagesByKind(Diagnostic.INFO);
+ }
}
DiagnosticHandler createDiagnosticHandler(DiagnosticHandler diagnosticHandler,
« no previous file with comments | « tests/compiler/dart2js/in_user_code_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698