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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 List<InterfaceType> get mixins; | 218 List<InterfaceType> get mixins; |
219 | 219 |
220 /** | 220 /** |
221 * Return the resolved [ClassDeclaration] or [EnumDeclaration] node that | 221 * Return the resolved [ClassDeclaration] or [EnumDeclaration] node that |
222 * declares this [ClassElement]. | 222 * declares this [ClassElement]. |
223 * | 223 * |
224 * This method is expensive, because resolved AST might be evicted from cache, | 224 * This method is expensive, because resolved AST might be evicted from cache, |
225 * so parsing and resolving will be performed. | 225 * so parsing and resolving will be performed. |
226 */ | 226 */ |
227 @override | 227 @override |
228 AstNode get node; | 228 NamedCompilationUnitMember get node; |
229 | 229 |
230 /** | 230 /** |
231 * Return the superclass of this class, or `null` if the class represents the | 231 * Return the superclass of this class, or `null` if the class represents the |
232 * class 'Object'. All other classes will have a non-`null` superclass. If the | 232 * class 'Object'. All other classes will have a non-`null` superclass. If the |
233 * superclass was not explicitly declared then the implicit superclass | 233 * superclass was not explicitly declared then the implicit superclass |
234 * 'Object' will be returned. | 234 * 'Object' will be returned. |
235 * | 235 * |
236 * <b>Note:</b> Because the element model represents the state of the code, it | 236 * <b>Note:</b> Because the element model represents the state of the code, it |
237 * is possible for it to be semantically invalid. In particular, it is not | 237 * is possible for it to be semantically invalid. In particular, it is not |
238 * safe to assume that the inheritance structure of a class does not contain a | 238 * safe to assume that the inheritance structure of a class does not contain a |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 | 694 |
695 /** | 695 /** |
696 * Set whether an error has reported explaining why this class is an | 696 * Set whether an error has reported explaining why this class is an |
697 * invalid mixin application. | 697 * invalid mixin application. |
698 */ | 698 */ |
699 void set mixinErrorsReported(bool value) { | 699 void set mixinErrorsReported(bool value) { |
700 setModifier(Modifier.MIXIN_ERRORS_REPORTED, value); | 700 setModifier(Modifier.MIXIN_ERRORS_REPORTED, value); |
701 } | 701 } |
702 | 702 |
703 @override | 703 @override |
704 AstNode get node { | 704 NamedCompilationUnitMember get node { |
705 if (isEnum) { | 705 if (isEnum) { |
706 return getNodeMatching((node) => node is EnumDeclaration); | 706 return getNodeMatching((node) => node is EnumDeclaration); |
707 } else { | 707 } else { |
708 return getNodeMatching( | 708 return getNodeMatching( |
709 (node) => node is ClassDeclaration || node is ClassTypeAlias); | 709 (node) => node is ClassDeclaration || node is ClassTypeAlias); |
710 } | 710 } |
711 } | 711 } |
712 | 712 |
713 /** | 713 /** |
714 * Set whether this class is defined by a typedef construct. | 714 * Set whether this class is defined by a typedef construct. |
(...skipping 9541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10256 // void <: void (by reflexivity) | 10256 // void <: void (by reflexivity) |
10257 // bottom <: void (as bottom is a subtype of all types). | 10257 // bottom <: void (as bottom is a subtype of all types). |
10258 // void <: dynamic (as dynamic is a supertype of all types) | 10258 // void <: dynamic (as dynamic is a supertype of all types) |
10259 return identical(type, this) || type.isDynamic; | 10259 return identical(type, this) || type.isDynamic; |
10260 } | 10260 } |
10261 | 10261 |
10262 @override | 10262 @override |
10263 VoidTypeImpl substitute2( | 10263 VoidTypeImpl substitute2( |
10264 List<DartType> argumentTypes, List<DartType> parameterTypes) => this; | 10264 List<DartType> argumentTypes, List<DartType> parameterTypes) => this; |
10265 } | 10265 } |
OLD | NEW |