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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java

Issue 10702054: Issue 3931. Visit children nodes safely. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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/ast/DartPropertyAccess.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java b/compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java
index 8bf3a46e7ebd275d490fc23eb4013ca54db5714c..04fddd92a82f08656a070e1b902fc188d06fe6eb 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java
@@ -63,8 +63,8 @@ public class DartPropertyAccess extends DartExpression {
@Override
public void visitChildren(ASTVisitor<?> visitor) {
- qualifier.accept(visitor);
- name.accept(visitor);
+ safelyVisitChild(qualifier, visitor);
+ safelyVisitChild(name, visitor);
}
@Override

Powered by Google App Engine
This is Rietveld 408576698