| 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 // TODO(sigmund): rename and move to common/elements.dart | 5 // TODO(sigmund): rename and move to common/elements.dart |
| 6 library dart2js.type_system; | 6 library dart2js.type_system; |
| 7 | 7 |
| 8 import 'common/names.dart' show Identifiers, Uris; | 8 import 'common/names.dart' show Identifiers, Uris; |
| 9 import 'js_backend/constant_system_javascript.dart'; | 9 import 'js_backend/constant_system_javascript.dart'; |
| 10 import 'elements/types.dart'; | 10 import 'elements/types.dart'; |
| (...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 /// Returns the main method for the compilation. | 1101 /// Returns the main method for the compilation. |
| 1102 FunctionEntity get mainFunction; | 1102 FunctionEntity get mainFunction; |
| 1103 | 1103 |
| 1104 /// Returns all known libraries. | 1104 /// Returns all known libraries. |
| 1105 Iterable<LibraryEntity> get libraries; | 1105 Iterable<LibraryEntity> get libraries; |
| 1106 | 1106 |
| 1107 /// Lookup the library with the canonical [uri], fail if the library is | 1107 /// Lookup the library with the canonical [uri], fail if the library is |
| 1108 /// missing and [required]; | 1108 /// missing and [required]; |
| 1109 LibraryEntity lookupLibrary(Uri uri, {bool required: false}); | 1109 LibraryEntity lookupLibrary(Uri uri, {bool required: false}); |
| 1110 | 1110 |
| 1111 /// Calls [f] for every class declared in [library]. |
| 1112 void forEachClass(LibraryEntity library, void f(ClassEntity cls)); |
| 1113 |
| 1111 /// Lookup the class [name] in [library], fail if the class is missing and | 1114 /// Lookup the class [name] in [library], fail if the class is missing and |
| 1112 /// [required]. | 1115 /// [required]. |
| 1113 ClassEntity lookupClass(LibraryEntity library, String name, | 1116 ClassEntity lookupClass(LibraryEntity library, String name, |
| 1114 {bool required: false}); | 1117 {bool required: false}); |
| 1115 | 1118 |
| 1116 /// Lookup the member [name] in [library], fail if the class is missing and | 1119 /// Lookup the member [name] in [library], fail if the class is missing and |
| 1117 /// [required]. | 1120 /// [required]. |
| 1118 MemberEntity lookupLibraryMember(LibraryEntity library, String name, | 1121 MemberEntity lookupLibraryMember(LibraryEntity library, String name, |
| 1119 {bool setter: false, bool required: false}); | 1122 {bool setter: false, bool required: false}); |
| 1120 | 1123 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1191 DartType getUnaliasedType(DartType type); | 1194 DartType getUnaliasedType(DartType type); |
| 1192 | 1195 |
| 1193 /// Returns the [CallStructure] corresponding to calling [entity] with all | 1196 /// Returns the [CallStructure] corresponding to calling [entity] with all |
| 1194 /// arguments, both required and optional. | 1197 /// arguments, both required and optional. |
| 1195 CallStructure getCallStructure(FunctionEntity entity); | 1198 CallStructure getCallStructure(FunctionEntity entity); |
| 1196 | 1199 |
| 1197 /// Returns `true` if [member] a the synthetic getter `loadLibrary` injected | 1200 /// Returns `true` if [member] a the synthetic getter `loadLibrary` injected |
| 1198 /// on deferred libraries. | 1201 /// on deferred libraries. |
| 1199 bool isDeferredLoadLibraryGetter(MemberEntity member); | 1202 bool isDeferredLoadLibraryGetter(MemberEntity member); |
| 1200 } | 1203 } |
| OLD | NEW |