| Index: pkg/compiler/lib/src/patch_parser.dart
|
| diff --git a/pkg/compiler/lib/src/patch_parser.dart b/pkg/compiler/lib/src/patch_parser.dart
|
| index 3050c0daa7d14c148e86ed454b084ee4835a460c..82c20b078520646901411f5fc80f8b214f8d9cb5 100644
|
| --- a/pkg/compiler/lib/src/patch_parser.dart
|
| +++ b/pkg/compiler/lib/src/patch_parser.dart
|
| @@ -428,7 +428,7 @@ class NativeAnnotationHandler implements EagerAnnotationHandler<String> {
|
|
|
| void validate(Compiler compiler, Element element,
|
| MetadataAnnotation annotation, ConstantValue constant) {
|
| - DartType annotationType = constant.getType(compiler.coreTypes);
|
| + DartType annotationType = constant.getType(compiler.commonElements);
|
| if (annotationType.element !=
|
| compiler.commonElements.nativeAnnotationClass) {
|
| DiagnosticReporter reporter = compiler.reporter;
|
| @@ -461,7 +461,7 @@ class JsInteropAnnotationHandler implements EagerAnnotationHandler<bool> {
|
| void validate(Compiler compiler, Element element,
|
| MetadataAnnotation annotation, ConstantValue constant) {
|
| JavaScriptBackend backend = compiler.backend;
|
| - if (constant.getType(compiler.coreTypes).element !=
|
| + if (constant.getType(compiler.commonElements).element !=
|
| backend.helpers.jsAnnotationClass) {
|
| compiler.reporter
|
| .internalError(annotation, 'Invalid @JS(...) annotation.');
|
| @@ -497,7 +497,7 @@ class PatchAnnotationHandler implements EagerAnnotationHandler<PatchVersion> {
|
| @override
|
| void validate(Compiler compiler, Element element,
|
| MetadataAnnotation annotation, ConstantValue constant) {
|
| - DartType annotationType = constant.getType(compiler.coreTypes);
|
| + DartType annotationType = constant.getType(compiler.commonElements);
|
| if (annotationType.element !=
|
| compiler.commonElements.patchAnnotationClass) {
|
| DiagnosticReporter reporter = compiler.reporter;
|
|
|