| Index: pkg/compiler/lib/src/resolution/resolution_strategy.dart
|
| diff --git a/pkg/compiler/lib/src/resolution/resolution_strategy.dart b/pkg/compiler/lib/src/resolution/resolution_strategy.dart
|
| index 08917226af90f23184ac7532646a50f8ca5d78ab..3b86999f7433670445439f34152ad5d719fda6a8 100644
|
| --- a/pkg/compiler/lib/src/resolution/resolution_strategy.dart
|
| +++ b/pkg/compiler/lib/src/resolution/resolution_strategy.dart
|
| @@ -14,9 +14,9 @@ import '../elements/entities.dart';
|
| import '../elements/resolution_types.dart';
|
| import '../environment.dart';
|
| import '../frontend_strategy.dart';
|
| +import '../js_backend/native_data.dart';
|
| import '../library_loader.dart';
|
| import '../native/resolver.dart';
|
| -import '../js_backend/native_data.dart';
|
| import '../serialization/task.dart';
|
| import '../patch_parser.dart';
|
| import '../resolved_uri_translator.dart';
|
| @@ -56,6 +56,16 @@ class ResolutionFrontEndStrategy implements FrontEndStrategy {
|
|
|
| AnnotationProcessor get annotationProcesser =>
|
| _annotationProcessor ??= new _ElementAnnotationProcessor(_compiler);
|
| +
|
| + @override
|
| + NativeClassFinder createNativeClassResolver(NativeBasicData nativeBasicData) {
|
| + return new ResolutionNativeClassFinder(
|
| + _compiler.resolution,
|
| + _compiler.reporter,
|
| + elementEnvironment,
|
| + _compiler.commonElements,
|
| + nativeBasicData);
|
| + }
|
| }
|
|
|
| /// An element environment base on a [Compiler].
|
| @@ -161,7 +171,10 @@ class _CompilerElementEnvironment implements ElementEnvironment {
|
| }
|
|
|
| @override
|
| - ClassEntity getSuperClass(ClassElement cls) => cls.superclass;
|
| + ClassEntity getSuperClass(ClassElement cls) {
|
| + cls.ensureResolved(_resolution);
|
| + return cls.superclass;
|
| + }
|
|
|
| @override
|
| void forEachSupertype(
|
|
|