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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartBinaryExpression.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/DartBinaryExpression.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartBinaryExpression.java b/compiler/java/com/google/dart/compiler/ast/DartBinaryExpression.java
index 8c0424b09f33e8c8f5f8473f4d0f5cfb15ead8bc..25017d28440d89cf227ec5efff36bcdae6081280 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartBinaryExpression.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartBinaryExpression.java
@@ -49,8 +49,8 @@ public class DartBinaryExpression extends DartExpression {
@Override
public void visitChildren(ASTVisitor<?> visitor) {
- arg1.accept(visitor);
- arg2.accept(visitor);
+ safelyVisitChild(arg1, visitor);
+ safelyVisitChild(arg2, visitor);
}
@Override

Powered by Google App Engine
This is Rietveld 408576698