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.element; | 4 library engine.element; |
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 'source.dart'; | 9 import 'source.dart'; |
10 import 'scanner.dart' show Keyword; | 10 import 'scanner.dart' show Keyword; |
(...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1270 static List<ClassElement> EMPTY_ARRAY = new List<ClassElement>(0); | 1270 static List<ClassElement> EMPTY_ARRAY = new List<ClassElement>(0); |
1271 /** | 1271 /** |
1272 * Initialize a newly created class element to have the given name. | 1272 * Initialize a newly created class element to have the given name. |
1273 * @param name the name of this element | 1273 * @param name the name of this element |
1274 */ | 1274 */ |
1275 ClassElementImpl(Identifier name) : super.con1(name) { | 1275 ClassElementImpl(Identifier name) : super.con1(name) { |
1276 } | 1276 } |
1277 accept(ElementVisitor visitor) => visitor.visitClassElement(this); | 1277 accept(ElementVisitor visitor) => visitor.visitClassElement(this); |
1278 List<PropertyAccessorElement> get accessors => _accessors; | 1278 List<PropertyAccessorElement> get accessors => _accessors; |
1279 List<InterfaceType> get allSupertypes { | 1279 List<InterfaceType> get allSupertypes { |
1280 Collection<InterfaceType> list = new Set<InterfaceType>(); | 1280 Iterable<InterfaceType> list = new Set<InterfaceType>(); |
floitsch
2013/04/11 15:17:50
Set and the name should be replaced from 'list' to
Anders Johnsen
2013/04/12 09:31:14
Done.
| |
1281 collectAllSupertypes(list); | 1281 collectAllSupertypes(list); |
1282 return new List.from(list); | 1282 return new List.from(list); |
1283 } | 1283 } |
1284 ElementImpl getChild(String identifier25) { | 1284 ElementImpl getChild(String identifier25) { |
1285 for (PropertyAccessorElement accessor in _accessors) { | 1285 for (PropertyAccessorElement accessor in _accessors) { |
1286 if (((accessor as PropertyAccessorElementImpl)).identifier == identifier25 ) { | 1286 if (((accessor as PropertyAccessorElementImpl)).identifier == identifier25 ) { |
1287 return accessor as PropertyAccessorElementImpl; | 1287 return accessor as PropertyAccessorElementImpl; |
1288 } | 1288 } |
1289 } | 1289 } |
1290 for (ConstructorElement constructor in _constructors) { | 1290 for (ConstructorElement constructor in _constructors) { |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1534 builder.append("<"); | 1534 builder.append("<"); |
1535 for (int i = 0; i < variableCount; i++) { | 1535 for (int i = 0; i < variableCount; i++) { |
1536 if (i > 0) { | 1536 if (i > 0) { |
1537 builder.append(", "); | 1537 builder.append(", "); |
1538 } | 1538 } |
1539 ((_typeVariables[i] as TypeVariableElementImpl)).appendTo(builder); | 1539 ((_typeVariables[i] as TypeVariableElementImpl)).appendTo(builder); |
1540 } | 1540 } |
1541 builder.append(">"); | 1541 builder.append(">"); |
1542 } | 1542 } |
1543 } | 1543 } |
1544 void collectAllSupertypes(Collection<InterfaceType> list) { | 1544 void collectAllSupertypes(Iterable<InterfaceType> list) { |
floitsch
2013/04/11 15:17:50
No. There is an 'add' call in line 1548.
Make it '
Anders Johnsen
2013/04/12 09:31:14
Done.
| |
1545 if (_supertype == null || list.contains(_supertype)) { | 1545 if (_supertype == null || list.contains(_supertype)) { |
1546 return; | 1546 return; |
1547 } | 1547 } |
1548 list.add(_supertype); | 1548 list.add(_supertype); |
1549 ((_supertype.element as ClassElementImpl)).collectAllSupertypes(list); | 1549 ((_supertype.element as ClassElementImpl)).collectAllSupertypes(list); |
1550 for (InterfaceType type in interfaces) { | 1550 for (InterfaceType type in interfaces) { |
1551 if (!list.contains(type)) { | 1551 if (!list.contains(type)) { |
1552 list.add(type); | 1552 list.add(type); |
1553 ((type.element as ClassElementImpl)).collectAllSupertypes(list); | 1553 ((type.element as ClassElementImpl)).collectAllSupertypes(list); |
1554 } | 1554 } |
(...skipping 3351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4906 */ | 4906 */ |
4907 abstract class TypeVariableType implements Type2 { | 4907 abstract class TypeVariableType implements Type2 { |
4908 TypeVariableElement get element; | 4908 TypeVariableElement get element; |
4909 } | 4909 } |
4910 /** | 4910 /** |
4911 * The interface {@code VoidType} defines the behavior of the unique object repr esenting the type{@code void}. | 4911 * The interface {@code VoidType} defines the behavior of the unique object repr esenting the type{@code void}. |
4912 * @coverage dart.engine.type | 4912 * @coverage dart.engine.type |
4913 */ | 4913 */ |
4914 abstract class VoidType implements Type2 { | 4914 abstract class VoidType implements Type2 { |
4915 VoidType substitute2(List<Type2> argumentTypes, List<Type2> parameterTypes); | 4915 VoidType substitute2(List<Type2> argumentTypes, List<Type2> parameterTypes); |
4916 } | 4916 } |
OLD | NEW |