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

Side by Side Diff: compiler/java/com/google/dart/compiler/ast/DartClass.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, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
Brian Wilkerson 2012/06/30 00:44:21 nit: copyright year
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 package com.google.dart.compiler.ast; 5 package com.google.dart.compiler.ast;
6 6
7 import com.google.dart.compiler.resolver.ClassNodeElement; 7 import com.google.dart.compiler.resolver.ClassNodeElement;
8 import com.google.dart.compiler.resolver.Element; 8 import com.google.dart.compiler.resolver.Element;
9 9
10 import java.util.List; 10 import java.util.List;
11 11
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 } 164 }
165 165
166 public DartStringLiteral getNativeName() { 166 public DartStringLiteral getNativeName() {
167 return nativeName; 167 return nativeName;
168 } 168 }
169 169
170 @Override 170 @Override
171 public void visitChildren(ASTVisitor<?> visitor) { 171 public void visitChildren(ASTVisitor<?> visitor) {
172 super.visitChildren(visitor); 172 super.visitChildren(visitor);
173 typeParameters.accept(visitor); 173 typeParameters.accept(visitor);
174 if (superclass != null) { 174 safelyVisitChild(superclass, visitor);
175 superclass.accept(visitor);
176 }
177 interfaces.accept(visitor); 175 interfaces.accept(visitor);
178 if (defaultClass != null) { 176 safelyVisitChild(defaultClass, visitor);
179 defaultClass.accept(visitor);
180 }
181 members.accept(visitor); 177 members.accept(visitor);
182 } 178 }
183 179
184 @Override 180 @Override
185 public <R> R accept(ASTVisitor<R> visitor) { 181 public <R> R accept(ASTVisitor<R> visitor) {
186 return visitor.visitClass(this); 182 return visitor.visitClass(this);
187 } 183 }
188 } 184 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698