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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/Resolver.java

Issue 10413041: Propagate variable type in TypeAnalyzer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments Created 8 years, 7 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: compiler/java/com/google/dart/compiler/resolver/Resolver.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/Resolver.java b/compiler/java/com/google/dart/compiler/resolver/Resolver.java
index 6789adebce186b0ebbbb300837b50bb3fe90769d..debeaa6d61482f2d72b86d758558ae95e88ae2d6 100644
--- a/compiler/java/com/google/dart/compiler/resolver/Resolver.java
+++ b/compiler/java/com/google/dart/compiler/resolver/Resolver.java
@@ -717,10 +717,10 @@ public class Resolver {
inStaticContext(currentMethod),
inFactoryContext(currentMethod),
TypeErrorCode.NO_SUCH_TYPE);
- for (DartVariable variable : node.getVariables()) {
- Elements.setType(resolveVariable(variable, node.getModifiers()), type);
- checkVariableStatement(node, variable, isImplicitlyInitialized);
- }
+ for (DartVariable variable : node.getVariables()) {
+ Elements.setType(resolveVariable(variable, node.getModifiers()), type);
+ checkVariableStatement(node, variable, isImplicitlyInitialized);
+ }
}
@Override

Powered by Google App Engine
This is Rietveld 408576698