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

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

Issue 2884273002: Support mixins when loading from .dill (Closed)
Patch Set: Updated cf. comments Created 3 years, 7 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/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 f66804a9529e58c258495347c158cdbcce685db9..2bb02617a814c094926003bb8b5a2a3416e6a454 100644
--- a/pkg/compiler/lib/src/kernel/element_map.dart
+++ b/pkg/compiler/lib/src/kernel/element_map.dart
@@ -53,6 +53,25 @@ abstract class KernelToElementMap {
/// constructor [node].
ConstructorEntity getConstructor(ir.Member node);
+ /// Returns the [ConstructorEntity] corresponding to a super initializer in
+ /// [constructor].
+ ///
+ /// The IR resolves super initializers to a [target] up in the type hierarchy.
+ /// Most of the time, the result of this function will be the entity
+ /// corresponding to that target. In the presence of unnamed mixins, this
+ /// function returns an entity for an intermediate synthetic constructor that
+ /// kernel doesn't explicitly represent.
+ ///
+ /// For example:
+ /// class M {}
+ /// class C extends Object with M {}
+ ///
+ /// Kernel will say that C()'s super initializer resolves to Object(), but
+ /// this function will return an entity representing the unnamed mixin
+ /// application "Object+M"'s constructor.
+ ConstructorEntity getSuperConstructor(
+ ir.Constructor constructor, ir.Member target);
+
/// Returns the [MemberEntity] corresponding to the member [node].
MemberEntity getMember(ir.Member node);
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698