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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartTypeParameter.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/DartTypeParameter.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartTypeParameter.java b/compiler/java/com/google/dart/compiler/ast/DartTypeParameter.java
index 58a0c2920c3a0f696369f83252a5d0131ee2b5c4..38ff64187a57000bd5f10f10bf0c36b9070a5ba7 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartTypeParameter.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartTypeParameter.java
@@ -25,9 +25,7 @@ public class DartTypeParameter extends DartDeclaration<DartIdentifier> {
@Override
public void visitChildren(ASTVisitor<?> visitor) {
super.visitChildren(visitor);
- if (bound != null) {
- bound.accept(visitor);
- }
+ safelyVisitChild(bound, visitor);
}
@Override

Powered by Google App Engine
This is Rietveld 408576698