OLD | NEW |
1 // This code was auto-generated, is not intended to be edited, and is subject to | 1 // This code was auto-generated, is not intended to be edited, and is subject to |
2 // significant change. Please see the README file for more information. | 2 // significant change. Please see the README file for more information. |
3 | 3 |
4 library engine.ast; | 4 library engine.ast; |
5 | 5 |
6 import 'dart:collection'; | 6 import 'dart:collection'; |
7 import 'java_core.dart'; | 7 import 'java_core.dart'; |
8 import 'java_engine.dart'; | 8 import 'java_engine.dart'; |
9 import 'error.dart'; | 9 import 'error.dart'; |
10 import 'source.dart' show LineInfo; | 10 import 'source.dart' show LineInfo; |
(...skipping 13027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13038 */ | 13038 */ |
13039 accept(ASTVisitor visitor) { | 13039 accept(ASTVisitor visitor) { |
13040 for (E element in elements) { | 13040 for (E element in elements) { |
13041 element.accept(visitor); | 13041 element.accept(visitor); |
13042 } | 13042 } |
13043 } | 13043 } |
13044 void add(E node) { | 13044 void add(E node) { |
13045 owner.becomeParentOf(node); | 13045 owner.becomeParentOf(node); |
13046 elements.add(node); | 13046 elements.add(node); |
13047 } | 13047 } |
13048 bool addAll(Collection<E> nodes) { | 13048 bool addAll(Iterable<E> nodes) { |
13049 if (nodes != null) { | 13049 if (nodes != null) { |
13050 for (E node in nodes) { | 13050 for (E node in nodes) { |
13051 add(node); | 13051 add(node); |
13052 } | 13052 } |
13053 return true; | 13053 return true; |
13054 } | 13054 } |
13055 return false; | 13055 return false; |
13056 } | 13056 } |
13057 /** | 13057 /** |
13058 * Return the first token included in this node's source range. | 13058 * Return the first token included in this node's source range. |
(...skipping 15 matching lines...) Expand all Loading... |
13074 } | 13074 } |
13075 return elements[elements.length - 1].endToken; | 13075 return elements[elements.length - 1].endToken; |
13076 } | 13076 } |
13077 /** | 13077 /** |
13078 * Return the node that is the parent of each of the elements in the list. | 13078 * Return the node that is the parent of each of the elements in the list. |
13079 * @return the node that is the parent of each of the elements in the list | 13079 * @return the node that is the parent of each of the elements in the list |
13080 */ | 13080 */ |
13081 ASTNode getOwner() { | 13081 ASTNode getOwner() { |
13082 return owner; | 13082 return owner; |
13083 } | 13083 } |
13084 } | 13084 } |
OLD | NEW |