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

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

Issue 21242002: Retain elements a finer granularity than library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Variable initialized too early. Created 7 years, 4 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: dart/sdk/lib/_internal/compiler/implementation/typechecker.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/typechecker.dart b/dart/sdk/lib/_internal/compiler/implementation/typechecker.dart
index d9f7c5bc4240f174e74dc6582889cb91b6886239..3ea8af4269d46bfd616523412e83793def3c8db9 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/typechecker.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/typechecker.dart
@@ -189,7 +189,8 @@ class TypeCheckerVisitor extends Visitor<DartType> {
LibraryElement get currentLibrary => elements.currentElement.getLibrary();
reportTypeWarning(Node node, MessageKind kind, [Map arguments = const {}]) {
- compiler.reportWarning(node, new TypeWarning(kind, arguments));
+ compiler.reportWarning(
+ node, new TypeWarning(kind, arguments, compiler.terseDiagnostics));
}
reportTypeInfo(Spannable node, MessageKind kind, [Map arguments = const {}]) {

Powered by Google App Engine
This is Rietveld 408576698