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

Unified Diff: sdk/lib/_internal/compiler/implementation/resolution/members.dart

Issue 11882017: Add --analyze-only flag to dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add analyze_only_test Created 7 years, 11 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/resolution/members.dart
diff --git a/sdk/lib/_internal/compiler/implementation/resolution/members.dart b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
index 87f1de46a577fde4391e8f9b39c3c278644d0eee..e8053b3d49c22c5b99fca42648ff87cd15858cc0 100644
--- a/sdk/lib/_internal/compiler/implementation/resolution/members.dart
+++ b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
@@ -352,6 +352,10 @@ class ResolverTask extends CompilerTask {
}
ResolverVisitor visitor = visitorFor(element);
initializerDo(tree, visitor.visit);
+
+ // Perform various checks as side effect of "computing" the type.
+ element.computeType(compiler);
+
return visitor.mapping;
}

Powered by Google App Engine
This is Rietveld 408576698