| Index: pkg/compiler/lib/src/kernel/world_builder.dart
|
| diff --git a/pkg/compiler/lib/src/kernel/world_builder.dart b/pkg/compiler/lib/src/kernel/world_builder.dart
|
| index aea5bb0a1c9584672b05216ff80256bfd5cbf31c..5c9c84685742013642b24f164b7f0be690310ecf 100644
|
| --- a/pkg/compiler/lib/src/kernel/world_builder.dart
|
| +++ b/pkg/compiler/lib/src/kernel/world_builder.dart
|
| @@ -806,4 +806,19 @@ class WorldDeconstructionForTesting {
|
|
|
| KLibrary getLibraryForField(KField field) =>
|
| _getLibrary(field, builder._fieldMap);
|
| +
|
| + KClass getSuperclassForClass(KClass cls) {
|
| + KClassEnv env = builder._classEnvs[cls.classIndex];
|
| + ir.Supertype supertype = env.cls.supertype;
|
| + if (supertype == null) return null;
|
| + return builder.getClass(supertype.classNode);
|
| + }
|
| +
|
| + InterfaceType getMixinTypeForClass(KClass cls) {
|
| + KClassEnv env = builder._classEnvs[cls.classIndex];
|
| + ir.Supertype mixedInType = env.cls.mixedInType;
|
| + if (mixedInType == null) return null;
|
| + return builder.createInterfaceType(
|
| + mixedInType.classNode, mixedInType.typeArguments);
|
| + }
|
| }
|
|
|