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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/common_elements.dart
diff --git a/pkg/compiler/lib/src/common_elements.dart b/pkg/compiler/lib/src/common_elements.dart
index aed124f505b7a4492a74e21f102d7d1309ee5b4a..bcbf446980afbee98c891fb880300538e439ba4a 100644
--- a/pkg/compiler/lib/src/common_elements.dart
+++ b/pkg/compiler/lib/src/common_elements.dart
@@ -1322,7 +1322,8 @@ abstract class ElementEnvironment {
/// Returns the type of the [local] function.
FunctionType getLocalFunctionType(Local local);
- /// Returns the unaliased type of [type].
+ /// Returns the 'unaliased' type of [type]. For typedefs this is the function
+ /// type it is an alias of, for other types it is the type itself.
///
/// Use this during resolution to ensure that the alias has been computed.
// TODO(johnniwinther): Remove this when the resolver is removed.
@@ -1334,4 +1335,7 @@ abstract class ElementEnvironment {
/// Returns the metadata constants declared on [member].
Iterable<ConstantValue> getMemberMetadata(MemberEntity member);
+
+ /// Returns the function type that is an alias of a [typedef].
+ FunctionType getFunctionTypeOfTypedef(TypedefEntity typedef);
}
« 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