| Index: pkg/compiler/lib/src/kernel/elements.dart
|
| diff --git a/pkg/compiler/lib/src/kernel/elements.dart b/pkg/compiler/lib/src/kernel/elements.dart
|
| index 3d92e5213af5aedb19849d757a4b005bd691dc93..2af98f11822eeb6dc55a07870ca0e275c7439475 100644
|
| --- a/pkg/compiler/lib/src/kernel/elements.dart
|
| +++ b/pkg/compiler/lib/src/kernel/elements.dart
|
| @@ -19,9 +19,11 @@ class KLibrary implements LibraryEntity {
|
| }
|
|
|
| class KClass implements ClassEntity {
|
| + /// Class index used for fast lookup in [KernelWorldBuilder].
|
| + final int classIndex;
|
| final String name;
|
|
|
| - KClass(this.name);
|
| + KClass(this.classIndex, this.name);
|
|
|
| @override
|
| bool get isClosure => false;
|
| @@ -168,6 +170,8 @@ class KTypeVariable implements TypeVariableEntity {
|
| final int index;
|
|
|
| KTypeVariable(this.typeDeclaration, this.name, this.index);
|
| +
|
| + String toString() => 'type_variable(${typeDeclaration.name}.$name)';
|
| }
|
|
|
| class KLocalFunction implements Local {
|
| @@ -176,4 +180,7 @@ class KLocalFunction implements Local {
|
| final Entity executableContext;
|
|
|
| KLocalFunction(this.name, this.memberContext, this.executableContext);
|
| +
|
| + String toString() =>
|
| + 'local_function(${memberContext.name}.${name ?? '<anonymous>'})';
|
| }
|
|
|