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); |