| 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 2068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2079 for (FunctionTypeAliasElement typeAlias in _typeAliases) { | 2079 for (FunctionTypeAliasElement typeAlias in _typeAliases) { |
| 2080 if ((typeAlias as FunctionTypeAliasElementImpl).identifier == identifier)
{ | 2080 if ((typeAlias as FunctionTypeAliasElementImpl).identifier == identifier)
{ |
| 2081 return typeAlias as FunctionTypeAliasElementImpl; | 2081 return typeAlias as FunctionTypeAliasElementImpl; |
| 2082 } | 2082 } |
| 2083 } | 2083 } |
| 2084 for (ClassElement type in _types) { | 2084 for (ClassElement type in _types) { |
| 2085 if ((type as ClassElementImpl).identifier == identifier) { | 2085 if ((type as ClassElementImpl).identifier == identifier) { |
| 2086 return type as ClassElementImpl; | 2086 return type as ClassElementImpl; |
| 2087 } | 2087 } |
| 2088 } | 2088 } |
| 2089 for (ClassElement type in _enums) { |
| 2090 if ((type as ClassElementImpl).identifier == identifier) { |
| 2091 return type as ClassElementImpl; |
| 2092 } |
| 2093 } |
| 2089 return null; | 2094 return null; |
| 2090 } | 2095 } |
| 2091 | 2096 |
| 2092 @override | 2097 @override |
| 2093 LibraryElement get enclosingElement => super.enclosingElement as LibraryElemen
t; | 2098 LibraryElement get enclosingElement => super.enclosingElement as LibraryElemen
t; |
| 2094 | 2099 |
| 2095 @override | 2100 @override |
| 2096 ClassElement getEnum(String enumName) { | 2101 ClassElement getEnum(String enumName) { |
| 2097 for (ClassElement enumDeclaration in _enums) { | 2102 for (ClassElement enumDeclaration in _enums) { |
| 2098 if (enumDeclaration.name == enumName) { | 2103 if (enumDeclaration.name == enumName) { |
| (...skipping 9660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11759 if (type is UnionType) { | 11764 if (type is UnionType) { |
| 11760 return (type as UnionTypeImpl).internalUnionTypeIsSuperTypeOf(this, visite
dTypePairs); | 11765 return (type as UnionTypeImpl).internalUnionTypeIsSuperTypeOf(this, visite
dTypePairs); |
| 11761 } | 11766 } |
| 11762 // The only subtype relations that pertain to void are therefore: | 11767 // The only subtype relations that pertain to void are therefore: |
| 11763 // void <: void (by reflexivity) | 11768 // void <: void (by reflexivity) |
| 11764 // bottom <: void (as bottom is a subtype of all types). | 11769 // bottom <: void (as bottom is a subtype of all types). |
| 11765 // void <: dynamic (as dynamic is a supertype of all types) | 11770 // void <: dynamic (as dynamic is a supertype of all types) |
| 11766 return identical(type, this) || type.isDynamic; | 11771 return identical(type, this) || type.isDynamic; |
| 11767 } | 11772 } |
| 11768 } | 11773 } |
| OLD | NEW |