| 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 5751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5762 * An empty list of types. | 5762 * An empty list of types. |
| 5763 */ | 5763 */ |
| 5764 static const List<InterfaceType> EMPTY_LIST = const <InterfaceType>[]; | 5764 static const List<InterfaceType> EMPTY_LIST = const <InterfaceType>[]; |
| 5765 | 5765 |
| 5766 /** | 5766 /** |
| 5767 * Return a list containing all of the accessors (getters and setters) | 5767 * Return a list containing all of the accessors (getters and setters) |
| 5768 * declared in this type. | 5768 * declared in this type. |
| 5769 */ | 5769 */ |
| 5770 List<PropertyAccessorElement> get accessors; | 5770 List<PropertyAccessorElement> get accessors; |
| 5771 | 5771 |
| 5772 /** |
| 5773 * Return a list containing all of the constructors declared in this type. |
| 5774 */ |
| 5775 List<ConstructorElement> get constructors; |
| 5776 |
| 5772 @override | 5777 @override |
| 5773 ClassElement get element; | 5778 ClassElement get element; |
| 5774 | 5779 |
| 5775 /** | 5780 /** |
| 5776 * Return a list containing all of the interfaces that are implemented by this | 5781 * Return a list containing all of the interfaces that are implemented by this |
| 5777 * interface. Note that this is <b>not</b>, in general, equivalent to getting | 5782 * interface. Note that this is <b>not</b>, in general, equivalent to getting |
| 5778 * the interfaces from this type's element because the types returned by this | 5783 * the interfaces from this type's element because the types returned by this |
| 5779 * method will have had their type parameters replaced. | 5784 * method will have had their type parameters replaced. |
| 5780 */ | 5785 */ |
| 5781 List<InterfaceType> get interfaces; | 5786 List<InterfaceType> get interfaces; |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6120 List<PropertyAccessorElement> accessors = element.accessors; | 6125 List<PropertyAccessorElement> accessors = element.accessors; |
| 6121 List<PropertyAccessorElement> members = | 6126 List<PropertyAccessorElement> members = |
| 6122 new List<PropertyAccessorElement>(accessors.length); | 6127 new List<PropertyAccessorElement>(accessors.length); |
| 6123 for (int i = 0; i < accessors.length; i++) { | 6128 for (int i = 0; i < accessors.length; i++) { |
| 6124 members[i] = PropertyAccessorMember.from(accessors[i], this); | 6129 members[i] = PropertyAccessorMember.from(accessors[i], this); |
| 6125 } | 6130 } |
| 6126 return members; | 6131 return members; |
| 6127 } | 6132 } |
| 6128 | 6133 |
| 6129 @override | 6134 @override |
| 6135 List<ConstructorElement> get constructors { |
| 6136 List<ConstructorElement> constructors = element.constructors; |
| 6137 List<ConstructorElement> members = |
| 6138 new List<ConstructorElement>(constructors.length); |
| 6139 for (int i = 0; i < constructors.length; i++) { |
| 6140 members[i] = ConstructorMember.from(constructors[i], this); |
| 6141 } |
| 6142 return members; |
| 6143 } |
| 6144 |
| 6145 @override |
| 6130 String get displayName { | 6146 String get displayName { |
| 6131 String name = this.name; | 6147 String name = this.name; |
| 6132 List<DartType> typeArguments = this.typeArguments; | 6148 List<DartType> typeArguments = this.typeArguments; |
| 6133 bool allDynamic = true; | 6149 bool allDynamic = true; |
| 6134 for (DartType type in typeArguments) { | 6150 for (DartType type in typeArguments) { |
| 6135 if (type != null && !type.isDynamic) { | 6151 if (type != null && !type.isDynamic) { |
| 6136 allDynamic = false; | 6152 allDynamic = false; |
| 6137 break; | 6153 break; |
| 6138 } | 6154 } |
| 6139 } | 6155 } |
| (...skipping 4275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10415 | 10431 |
| 10416 @override | 10432 @override |
| 10417 void visitElement(Element element) { | 10433 void visitElement(Element element) { |
| 10418 int offset = element.nameOffset; | 10434 int offset = element.nameOffset; |
| 10419 if (offset != -1) { | 10435 if (offset != -1) { |
| 10420 map[offset] = element; | 10436 map[offset] = element; |
| 10421 } | 10437 } |
| 10422 super.visitElement(element); | 10438 super.visitElement(element); |
| 10423 } | 10439 } |
| 10424 } | 10440 } |
| OLD | NEW |