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

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

Issue 2797173004: Remove use of Element in ResolutionEnqueuerListener. (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 | « no previous file | 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 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 {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698