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

Unified Diff: pkg/compiler/lib/src/common_elements.dart

Issue 2807593002: Use entities in impact transformers. (Closed)
Patch Set: Created 3 years, 8 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 | « pkg/compiler/lib/src/common/codegen.dart ('k') | pkg/compiler/lib/src/compiler.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 ddc0761bea70e7acaf2ae7902ae57f6fb9d67717..3a5d5d3d4f54db4d1ee39a9a61482ff90aecd5ac 100644
--- a/pkg/compiler/lib/src/common_elements.dart
+++ b/pkg/compiler/lib/src/common_elements.dart
@@ -211,6 +211,9 @@ abstract class CommonElements {
///
/// The _env makes private and injected members directly available and
/// should therefore not be used to determine scopes.
+// TODO(johnniwinther): Split this into an element environment and a type query
+// interface, the first should only be used during resolution and the latter in
+// both resolution and codegen.
abstract class ElementEnvironment {
/// Returns the main library for the compilation.
LibraryEntity get mainLibrary;
@@ -295,6 +298,15 @@ abstract class ElementEnvironment {
/// Returns the type if [function].
FunctionType getFunctionType(FunctionEntity function);
+ /// Returns the type of the [local] function.
+ FunctionType getLocalFunctionType(Local local);
+
+ /// Returns the unaliased type of [type].
+ ///
+ /// Use this during resolution to ensure that the alias has been computed.
+ // TODO(johnniwinther): Remove this when the resolver is removed.
+ DartType getUnaliasedType(DartType type);
+
/// Returns the [CallStructure] corresponding to calling [entity] with all
/// arguments, both required and optional.
CallStructure getCallStructure(FunctionEntity entity);
« no previous file with comments | « pkg/compiler/lib/src/common/codegen.dart ('k') | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698