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

Unified Diff: sdk/lib/_internal/compiler/implementation/tree_validator.dart

Issue 169763003: Update dart2js diagnostics to prepare for filtering. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove optional Uri. 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
Index: sdk/lib/_internal/compiler/implementation/tree_validator.dart
diff --git a/sdk/lib/_internal/compiler/implementation/tree_validator.dart b/sdk/lib/_internal/compiler/implementation/tree_validator.dart
index 5204ed63b393437ce366c4d15f6cdec4d4dab7f5..399ad60ed6ea70ac4bca52bdfcc74b36ce7b46aa 100644
--- a/sdk/lib/_internal/compiler/implementation/tree_validator.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree_validator.dart
@@ -16,7 +16,7 @@ class TreeValidatorTask extends CompilerTask {
void report(node, message) {
final error = new InvalidNodeError(node, message);
errors.add(error);
- compiler.reportWarning(node, message);
+ compiler.reportWarning(node, MessageKind.GENERIC, {'text': message});
};
final validator = new ValidatorVisitor(report);
tree.accept(new TraversingVisitor(validator));

Powered by Google App Engine
This is Rietveld 408576698