Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: pkg/compiler/lib/src/common_elements.dart

Issue 2981633002: Introduce TypedefEntity (Closed)
Patch Set: Updated cf. comments Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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]. For typedefs this is the function
1326 /// type it is an alias of, for other types it is the type itself.
1326 /// 1327 ///
1327 /// Use this during resolution to ensure that the alias has been computed. 1328 /// Use this during resolution to ensure that the alias has been computed.
1328 // TODO(johnniwinther): Remove this when the resolver is removed. 1329 // TODO(johnniwinther): Remove this when the resolver is removed.
1329 DartType getUnaliasedType(DartType type); 1330 DartType getUnaliasedType(DartType type);
1330 1331
1331 /// Returns `true` if [member] a the synthetic getter `loadLibrary` injected 1332 /// Returns `true` if [member] a the synthetic getter `loadLibrary` injected
1332 /// on deferred libraries. 1333 /// on deferred libraries.
1333 bool isDeferredLoadLibraryGetter(MemberEntity member); 1334 bool isDeferredLoadLibraryGetter(MemberEntity member);
1334 1335
1335 /// Returns the metadata constants declared on [member]. 1336 /// Returns the metadata constants declared on [member].
1336 Iterable<ConstantValue> getMemberMetadata(MemberEntity member); 1337 Iterable<ConstantValue> getMemberMetadata(MemberEntity member);
1338
1339 /// Returns the function type that is an alias of a [typedef].
1340 FunctionType getFunctionTypeOfTypedef(TypedefEntity typedef);
1337 } 1341 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698