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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartDeclaration.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/DartDeclaration.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartDeclaration.java b/compiler/java/com/google/dart/compiler/ast/DartDeclaration.java
index 6f5bd25e78eff73f3146852b6cfcff219125c9c4..da52fd066568f07c6dee51513615890da1c7a2a5 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartDeclaration.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartDeclaration.java
@@ -47,8 +47,6 @@ public abstract class DartDeclaration<N extends DartExpression> extends DartNode
@Override
public void visitChildren(ASTVisitor<?> visitor) {
- if (name != null) {
- name.accept(visitor);
- }
+ safelyVisitChild(name, visitor);
}
}

Powered by Google App Engine
This is Rietveld 408576698