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

Unified Diff: pkg/compiler/lib/src/kernel/element_map.dart

Issue 2964683003: Split implementation of KernelToElementMapImpl (Closed)
Patch Set: Updated cf. comments Created 3 years, 6 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/js_model/js_strategy.dart ('k') | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/element_map.dart
diff --git a/pkg/compiler/lib/src/kernel/element_map.dart b/pkg/compiler/lib/src/kernel/element_map.dart
index 3b701de96d4bb9b9baa1efa0557106ec2b8627e1..08ff53e0b810771bdfd233dbf963ab77d9c580a2 100644
--- a/pkg/compiler/lib/src/kernel/element_map.dart
+++ b/pkg/compiler/lib/src/kernel/element_map.dart
@@ -108,6 +108,12 @@ abstract class KernelToElementMap {
/// Interface that translates between Kernel IR nodes and entities used for
/// computing the [WorldImpact] for members.
abstract class KernelToElementMapForImpact extends KernelToElementMap {
+ /// Adds libraries in [program] to the set of libraries.
+ ///
+ /// The main method of the first program is used as the main method for the
+ /// compilation.
+ void addProgram(ir.Program program);
+
/// Returns the [ConstructorEntity] corresponding to a super initializer in
/// [constructor].
///
@@ -161,6 +167,9 @@ abstract class KernelToElementMapForBuilding implements KernelToElementMap {
/// Returns the kernel IR node that defines the [member].
ir.Node getMemberNode(covariant MemberEntity member);
+ /// Returns the kernel IR node that defines the [cls].
+ ir.Class getClassNode(covariant ClassEntity cls);
+
/// Returns the [LibraryEntity] corresponding to the library [node].
LibraryEntity getLibrary(ir.Library node);
« no previous file with comments | « pkg/compiler/lib/src/js_model/js_strategy.dart ('k') | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698