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 aec08718fc3b19d90e377bed071d894713e8fea7..136c482c05b05590ed0dfd6b0743257c59c26258 100644 |
--- a/pkg/compiler/lib/src/common_elements.dart |
+++ b/pkg/compiler/lib/src/common_elements.dart |
@@ -8,6 +8,7 @@ library dart2js.type_system; |
import 'common/names.dart' show Uris; |
import 'elements/types.dart'; |
import 'elements/entities.dart'; |
+import 'universe/call_structure.dart'; |
/// The common elements and types in Dart. |
abstract class CommonElements { |
@@ -284,6 +285,17 @@ abstract class ElementEnvironment { |
/// Returns `true` if [a] is a subtype of [b]. |
bool isSubtype(DartType a, DartType b); |
+ |
+ /// Returns the type if [function]. |
+ FunctionType getFunctionType(FunctionEntity function); |
+ |
+ /// Returns the [CallStructure] corresponding to calling [entity] with all |
+ /// arguments, both required and optional. |
+ CallStructure getCallStructure(FunctionEntity entity); |
+ |
+ /// Returns `true` if [member] a the synthetic getter `loadLibrary` injected |
+ /// on deferred libraries. |
+ bool isDeferredLoadLibraryGetter(MemberEntity member); |
} |
class CommonElementsImpl implements CommonElements { |