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 'constants/values.dart'; |
10 import 'elements/types.dart'; | 10 import 'elements/types.dart'; |
11 import 'elements/elements.dart' show PublicName; | 11 import 'elements/elements.dart' show PublicName; |
12 import 'elements/entities.dart'; | 12 import 'elements/entities.dart'; |
13 import 'js_backend/backend.dart' show JavaScriptBackend; | 13 import 'js_backend/backend.dart' show JavaScriptBackend; |
| 14 import 'js_backend/constant_system_javascript.dart'; |
14 import 'universe/call_structure.dart' show CallStructure; | 15 import 'universe/call_structure.dart' show CallStructure; |
15 import 'universe/selector.dart' show Selector; | 16 import 'universe/selector.dart' show Selector; |
16 import 'universe/call_structure.dart'; | 17 import 'universe/call_structure.dart'; |
17 | 18 |
18 /// The common elements and types in Dart. | 19 /// The common elements and types in Dart. |
19 class CommonElements { | 20 class CommonElements { |
20 final ElementEnvironment _env; | 21 final ElementEnvironment _env; |
21 | 22 |
22 CommonElements(this._env); | 23 CommonElements(this._env); |
23 | 24 |
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1252 // TODO(johnniwinther): Remove this when the resolver is removed. | 1253 // TODO(johnniwinther): Remove this when the resolver is removed. |
1253 DartType getUnaliasedType(DartType type); | 1254 DartType getUnaliasedType(DartType type); |
1254 | 1255 |
1255 /// Returns the [CallStructure] corresponding to calling [entity] with all | 1256 /// Returns the [CallStructure] corresponding to calling [entity] with all |
1256 /// arguments, both required and optional. | 1257 /// arguments, both required and optional. |
1257 CallStructure getCallStructure(FunctionEntity entity); | 1258 CallStructure getCallStructure(FunctionEntity entity); |
1258 | 1259 |
1259 /// Returns `true` if [member] a the synthetic getter `loadLibrary` injected | 1260 /// Returns `true` if [member] a the synthetic getter `loadLibrary` injected |
1260 /// on deferred libraries. | 1261 /// on deferred libraries. |
1261 bool isDeferredLoadLibraryGetter(MemberEntity member); | 1262 bool isDeferredLoadLibraryGetter(MemberEntity member); |
| 1263 |
| 1264 /// Returns the metadata constants declared on [member]. |
| 1265 Iterable<ConstantValue> getMemberMetadata(MemberEntity member); |
1262 } | 1266 } |
OLD | NEW |