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

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

Issue 2964683003: Split implementation of KernelToElementMapImpl (Closed)
Patch Set: Updated cf. comments Created 3 years, 5 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/kernel/env.dart ('k') | pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « pkg/compiler/lib/src/kernel/env.dart ('k') | pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698