| 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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 */ | 692 */ |
| 693 void set mixinErrorsReported(bool value) { | 693 void set mixinErrorsReported(bool value) { |
| 694 setModifier(Modifier.MIXIN_ERRORS_REPORTED, value); | 694 setModifier(Modifier.MIXIN_ERRORS_REPORTED, value); |
| 695 } | 695 } |
| 696 | 696 |
| 697 @override | 697 @override |
| 698 AstNode get node { | 698 AstNode get node { |
| 699 if (isEnum) { | 699 if (isEnum) { |
| 700 return getNodeMatching((node) => node is EnumDeclaration); | 700 return getNodeMatching((node) => node is EnumDeclaration); |
| 701 } else { | 701 } else { |
| 702 return getNodeMatching((node) => node is ClassDeclaration); | 702 return getNodeMatching((node) => node is ClassDeclaration || node is Class
TypeAlias); |
| 703 } | 703 } |
| 704 } | 704 } |
| 705 | 705 |
| 706 /** | 706 /** |
| 707 * Set whether this class is defined by a typedef construct. | 707 * Set whether this class is defined by a typedef construct. |
| 708 */ | 708 */ |
| 709 void set typedef(bool isTypedef) { | 709 void set typedef(bool isTypedef) { |
| 710 setModifier(Modifier.TYPEDEF, isTypedef); | 710 setModifier(Modifier.TYPEDEF, isTypedef); |
| 711 } | 711 } |
| 712 | 712 |
| (...skipping 9719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10432 // void <: void (by reflexivity) | 10432 // void <: void (by reflexivity) |
| 10433 // bottom <: void (as bottom is a subtype of all types). | 10433 // bottom <: void (as bottom is a subtype of all types). |
| 10434 // void <: dynamic (as dynamic is a supertype of all types) | 10434 // void <: dynamic (as dynamic is a supertype of all types) |
| 10435 return identical(type, this) || type.isDynamic; | 10435 return identical(type, this) || type.isDynamic; |
| 10436 } | 10436 } |
| 10437 | 10437 |
| 10438 @override | 10438 @override |
| 10439 VoidTypeImpl substitute2( | 10439 VoidTypeImpl substitute2( |
| 10440 List<DartType> argumentTypes, List<DartType> parameterTypes) => this; | 10440 List<DartType> argumentTypes, List<DartType> parameterTypes) => this; |
| 10441 } | 10441 } |
| OLD | NEW |