| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 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 java.util.List; | 7 import java.util.List; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Represents a Dart 'switch' member ('case' or 'default'). | 10 * Represents a Dart 'switch' member ('case' or 'default'). |
| 11 */ | 11 */ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 22 public List<DartStatement> getStatements() { | 22 public List<DartStatement> getStatements() { |
| 23 return statements; | 23 return statements; |
| 24 } | 24 } |
| 25 | 25 |
| 26 public DartLabel getLabel() { | 26 public DartLabel getLabel() { |
| 27 return label; | 27 return label; |
| 28 } | 28 } |
| 29 | 29 |
| 30 @Override | 30 @Override |
| 31 public void visitChildren(ASTVisitor<?> visitor) { | 31 public void visitChildren(ASTVisitor<?> visitor) { |
| 32 if (label != null) { | 32 safelyVisitChild(label, visitor); |
| 33 label.accept(visitor); | |
| 34 } | |
| 35 statements.accept(visitor); | 33 statements.accept(visitor); |
| 36 } | 34 } |
| 37 } | 35 } |
| OLD | NEW |