| Index: pkg/compiler/lib/src/mirrors_used.dart
|
| diff --git a/pkg/compiler/lib/src/mirrors_used.dart b/pkg/compiler/lib/src/mirrors_used.dart
|
| index 79dac05b8ba0dcf53800bf7d607c3f3aa204e556..3c20fc943592b1384811cee617483d3169287122 100644
|
| --- a/pkg/compiler/lib/src/mirrors_used.dart
|
| +++ b/pkg/compiler/lib/src/mirrors_used.dart
|
| @@ -251,7 +251,7 @@ class MirrorUsageAnalyzer {
|
| metadata.ensureResolved(compiler.resolution);
|
| ConstantValue value =
|
| compiler.constants.getConstantValue(metadata.constant);
|
| - Element element = value.getType(compiler.coreTypes).element;
|
| + Element element = value.getType(compiler.commonElements).element;
|
| if (element == compiler.commonElements.mirrorsUsedClass) {
|
| result.add(buildUsage(value));
|
| }
|
| @@ -415,7 +415,7 @@ class MirrorUsageBuilder {
|
|
|
| /// Find the first non-implementation interface of constant.
|
| DartType apiTypeOf(ConstantValue constant) {
|
| - DartType type = constant.getType(compiler.coreTypes);
|
| + DartType type = constant.getType(compiler.commonElements);
|
| LibraryElement library = type.element.library;
|
| if (type.isInterfaceType && library.isInternalLibrary) {
|
| InterfaceType interface = type;
|
|
|