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.dart'; | 8 import 'common.dart'; |
9 import 'common/names.dart' show Identifiers, Uris; | 9 import 'common/names.dart' show Identifiers, Uris; |
10 import 'constants/values.dart'; | 10 import 'constants/values.dart'; |
(...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1315 /// The upper bound on the [typeVariable]. If not explicitly declared, this is | 1315 /// The upper bound on the [typeVariable]. If not explicitly declared, this is |
1316 /// `Object`. | 1316 /// `Object`. |
1317 DartType getTypeVariableBound(TypeVariableEntity typeVariable); | 1317 DartType getTypeVariableBound(TypeVariableEntity typeVariable); |
1318 | 1318 |
1319 /// Returns the type if [function]. | 1319 /// Returns the type if [function]. |
1320 FunctionType getFunctionType(FunctionEntity function); | 1320 FunctionType getFunctionType(FunctionEntity function); |
1321 | 1321 |
1322 /// Returns the type of the [local] function. | 1322 /// Returns the type of the [local] function. |
1323 FunctionType getLocalFunctionType(Local local); | 1323 FunctionType getLocalFunctionType(Local local); |
1324 | 1324 |
1325 /// Returns the unaliased type of [type]. | 1325 /// Returns the unaliased type of [type]. |
Siggi Cherem (dart-lang)
2017/07/12 18:11:14
we might want to define what "unaliased" type mean
Johnni Winther
2017/07/13 09:19:18
Done.
| |
1326 /// | 1326 /// |
1327 /// Use this during resolution to ensure that the alias has been computed. | 1327 /// Use this during resolution to ensure that the alias has been computed. |
1328 // TODO(johnniwinther): Remove this when the resolver is removed. | 1328 // TODO(johnniwinther): Remove this when the resolver is removed. |
1329 DartType getUnaliasedType(DartType type); | 1329 DartType getUnaliasedType(DartType type); |
1330 | 1330 |
1331 /// Returns `true` if [member] a the synthetic getter `loadLibrary` injected | 1331 /// Returns `true` if [member] a the synthetic getter `loadLibrary` injected |
1332 /// on deferred libraries. | 1332 /// on deferred libraries. |
1333 bool isDeferredLoadLibraryGetter(MemberEntity member); | 1333 bool isDeferredLoadLibraryGetter(MemberEntity member); |
1334 | 1334 |
1335 /// Returns the metadata constants declared on [member]. | 1335 /// Returns the metadata constants declared on [member]. |
1336 Iterable<ConstantValue> getMemberMetadata(MemberEntity member); | 1336 Iterable<ConstantValue> getMemberMetadata(MemberEntity member); |
1337 | |
1338 /// Returns the alias of a [typedef], that is, the function type it is an | |
Siggi Cherem (dart-lang)
2017/07/12 18:11:13
nit, how about:
/// Returns the function type tha
Johnni Winther
2017/07/13 09:19:18
Done.
| |
1339 /// alias of. | |
1340 FunctionType getTypedefAlias(TypedefEntity typedef); | |
Siggi Cherem (dart-lang)
2017/07/12 18:11:14
other name ideas:
- getFunctionTypeOf
- function
Johnni Winther
2017/07/13 09:19:18
Renamed to [getFunctionTypeOfTypedef].
| |
1337 } | 1341 } |
OLD | NEW |