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 a2246c426a0d7c343881b78b499b4f31cb5cabe0..9f510363de32bacdee68c312ec78a6a07d61111d 100644 |
--- a/pkg/compiler/lib/src/patch_parser.dart |
+++ b/pkg/compiler/lib/src/patch_parser.dart |
@@ -128,6 +128,7 @@ import 'elements/modelx.dart' |
ClassElementX, |
GetterElementX, |
LibraryElementX, |
+ MetadataAnnotationX, |
SetterElementX; |
import 'id_generator.dart'; |
import 'js_backend/js_backend.dart' show JavaScriptBackend; |
@@ -403,7 +404,7 @@ abstract class EagerAnnotationHandler<T> { |
class NativeAnnotationHandler implements EagerAnnotationHandler<String> { |
const NativeAnnotationHandler(); |
- String getNativeAnnotation(MetadataAnnotation annotation) { |
+ String getNativeAnnotation(MetadataAnnotationX annotation) { |
if (annotation.beginToken != null && |
annotation.beginToken.next.value == 'Native') { |
// Skipping '@', 'Native', and '('. |
@@ -443,7 +444,7 @@ class NativeAnnotationHandler implements EagerAnnotationHandler<String> { |
class JsInteropAnnotationHandler implements EagerAnnotationHandler<bool> { |
const JsInteropAnnotationHandler(); |
- bool hasJsNameAnnotation(MetadataAnnotation annotation) => |
+ bool hasJsNameAnnotation(MetadataAnnotationX annotation) => |
annotation.beginToken != null && annotation.beginToken.next.value == 'JS'; |
bool apply( |
@@ -474,7 +475,7 @@ class JsInteropAnnotationHandler implements EagerAnnotationHandler<bool> { |
class PatchAnnotationHandler implements EagerAnnotationHandler<PatchVersion> { |
const PatchAnnotationHandler(); |
- PatchVersion getPatchVersion(MetadataAnnotation annotation) { |
+ PatchVersion getPatchVersion(MetadataAnnotationX annotation) { |
if (annotation.beginToken != null) { |
if (annotation.beginToken.next.value == 'patch') { |
return const PatchVersion(null); |