| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.element; | 8 library engine.element; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1279 * @param name the name of this element | 1279 * @param name the name of this element |
| 1280 * @param nameOffset the offset of the name of this element in the file that c
ontains the | 1280 * @param nameOffset the offset of the name of this element in the file that c
ontains the |
| 1281 * declaration of this element | 1281 * declaration of this element |
| 1282 */ | 1282 */ |
| 1283 ClassElementImpl(String name, int nameOffset) : super(name, nameOffset); | 1283 ClassElementImpl(String name, int nameOffset) : super(name, nameOffset); |
| 1284 | 1284 |
| 1285 @override | 1285 @override |
| 1286 accept(ElementVisitor visitor) => visitor.visitClassElement(this); | 1286 accept(ElementVisitor visitor) => visitor.visitClassElement(this); |
| 1287 | 1287 |
| 1288 /** | 1288 /** |
| 1289 * Set the toolkit specific information objects attached to this class. | 1289 * Add the given [toolkitObject] to the list of toolkit specific information |
| 1290 * | 1290 * objects attached to this class. |
| 1291 * @param toolkitObjects the toolkit objects attached to this class | |
| 1292 */ | 1291 */ |
| 1293 void addToolkitObjects(ToolkitObjectElement toolkitObject) { | 1292 void addToolkitObjects(ToolkitObjectElement toolkitObject) { |
| 1294 (toolkitObject as ToolkitObjectElementImpl).enclosingElement = this; | 1293 (toolkitObject as ToolkitObjectElementImpl).enclosingElement = this; |
| 1295 _toolkitObjects = ArrayUtils.add(_toolkitObjects, toolkitObject); | 1294 if (_toolkitObjects.isEmpty) { |
| 1295 // Convert from a non-growable list to a growable list. |
| 1296 _toolkitObjects = <ToolkitObjectElement>[]; |
| 1297 } |
| 1298 _toolkitObjects.add(toolkitObject); |
| 1296 } | 1299 } |
| 1297 | 1300 |
| 1298 @override | 1301 @override |
| 1299 List<PropertyAccessorElement> get accessors => _accessors; | 1302 List<PropertyAccessorElement> get accessors => _accessors; |
| 1300 | 1303 |
| 1301 @override | 1304 @override |
| 1302 List<InterfaceType> get allSupertypes { | 1305 List<InterfaceType> get allSupertypes { |
| 1303 List<InterfaceType> list = new List<InterfaceType>(); | 1306 List<InterfaceType> list = new List<InterfaceType>(); |
| 1304 _collectAllSupertypes(list); | 1307 _collectAllSupertypes(list); |
| 1305 return new List.from(list); | 1308 return new List.from(list); |
| (...skipping 10465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11771 if (type is UnionType) { | 11774 if (type is UnionType) { |
| 11772 return (type as UnionTypeImpl).internalUnionTypeIsSuperTypeOf(this, visite
dTypePairs); | 11775 return (type as UnionTypeImpl).internalUnionTypeIsSuperTypeOf(this, visite
dTypePairs); |
| 11773 } | 11776 } |
| 11774 // The only subtype relations that pertain to void are therefore: | 11777 // The only subtype relations that pertain to void are therefore: |
| 11775 // void <: void (by reflexivity) | 11778 // void <: void (by reflexivity) |
| 11776 // bottom <: void (as bottom is a subtype of all types). | 11779 // bottom <: void (as bottom is a subtype of all types). |
| 11777 // void <: dynamic (as dynamic is a supertype of all types) | 11780 // void <: dynamic (as dynamic is a supertype of all types) |
| 11778 return identical(type, this) || type.isDynamic; | 11781 return identical(type, this) || type.isDynamic; |
| 11779 } | 11782 } |
| 11780 } | 11783 } |
| OLD | NEW |