Index: pkg/compiler/lib/src/kernel/kelements.dart |
diff --git a/pkg/compiler/lib/src/kernel/elements.dart b/pkg/compiler/lib/src/kernel/kelements.dart |
similarity index 93% |
copy from pkg/compiler/lib/src/kernel/elements.dart |
copy to pkg/compiler/lib/src/kernel/kelements.dart |
index e90b58c1d85e55a08f5ba735d5c5dca7dbf9ee2d..4015af636ae2aff382b40b7d2706076a90210759 100644 |
--- a/pkg/compiler/lib/src/kernel/elements.dart |
+++ b/pkg/compiler/lib/src/kernel/kelements.dart |
@@ -7,8 +7,9 @@ |
import '../elements/entities.dart'; |
import '../elements/names.dart'; |
import '../elements/types.dart'; |
+import 'elements.dart'; |
-class KLibrary implements LibraryEntity { |
+class KLibrary implements IndexedLibrary { |
/// Library index used for fast lookup in [KernelWorldBuilder]. |
final int libraryIndex; |
final String name; |
@@ -19,7 +20,7 @@ class KLibrary implements LibraryEntity { |
String toString() => 'library($name)'; |
} |
-class KClass implements ClassEntity { |
+class KClass implements IndexedClass { |
final KLibrary library; |
/// Class index used for fast lookup in [KernelWorldBuilder]. |
@@ -36,7 +37,7 @@ class KClass implements ClassEntity { |
String toString() => 'class($name)'; |
} |
-abstract class KMember implements MemberEntity { |
+abstract class KMember implements IndexedMember { |
/// Member index used for fast lookup in [KernelWorldBuilder]. |
final int memberIndex; |
final KLibrary library; |
@@ -91,7 +92,8 @@ abstract class KMember implements MemberEntity { |
'$_kind(${enclosingClass != null ? '${enclosingClass.name}.' : ''}$name)'; |
} |
-abstract class KFunction extends KMember implements FunctionEntity { |
+abstract class KFunction extends KMember |
+ implements FunctionEntity, IndexedFunction { |
final ParameterStructure parameterStructure; |
final bool isExternal; |
final AsyncMarker asyncMarker; |
@@ -102,7 +104,8 @@ abstract class KFunction extends KMember implements FunctionEntity { |
: super(memberIndex, library, enclosingClass, name, isStatic: isStatic); |
} |
-abstract class KConstructor extends KFunction implements ConstructorEntity { |
+abstract class KConstructor extends KFunction |
+ implements ConstructorEntity, IndexedConstructor { |
final bool isConst; |
KConstructor(int memberIndex, KClass enclosingClass, Name name, |
@@ -209,7 +212,7 @@ class KSetter extends KFunction { |
String get _kind => 'setter'; |
} |
-class KField extends KMember implements FieldEntity { |
+class KField extends KMember implements FieldEntity, IndexedField { |
final bool isAssignable; |
final bool isConst; |