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

Unified Diff: dart/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ScopedVisitor.java

Issue 64033002: Version 0.8.10.8 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ScopedVisitor.java
===================================================================
--- dart/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ScopedVisitor.java (revision 30037)
+++ dart/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ScopedVisitor.java (working copy)
@@ -449,6 +449,7 @@
@Override
public Void visitVariableDeclaration(VariableDeclaration node) {
+ super.visitVariableDeclaration(node);
if (!(node.getParent().getParent() instanceof TopLevelVariableDeclaration)
&& !(node.getParent().getParent() instanceof FieldDeclaration)) {
VariableElement element = node.getElement();
@@ -456,7 +457,6 @@
nameScope.define(element);
}
}
- super.visitVariableDeclaration(node);
return null;
}

Powered by Google App Engine
This is Rietveld 408576698