| 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 1449d6f24be842f0dadea4aeab095bd34c222fec..a356887dd3bc69ba8f959d11dfd057a140e4115e 100644
|
| --- a/pkg/compiler/lib/src/patch_parser.dart
|
| +++ b/pkg/compiler/lib/src/patch_parser.dart
|
| @@ -120,7 +120,7 @@ import 'common/tasks.dart' show CompilerTask;
|
| import 'common.dart';
|
| import 'compiler.dart' show Compiler;
|
| import 'constants/values.dart' show ConstantValue;
|
| -import 'elements/resolution_types.dart' show DartType;
|
| +import 'elements/resolution_types.dart' show ResolutionDartType;
|
| import 'elements/elements.dart';
|
| import 'elements/modelx.dart'
|
| show
|
| @@ -204,8 +204,8 @@ class PatchParserTask extends CompilerTask {
|
| Token token = parser.parseTopLevelDeclaration(cls.beginToken);
|
| assert(identical(token, cls.endToken.next));
|
| } on ParserError catch (e) {
|
| - // No need to recover from a parser error in platform libraries, user
|
| - // will never see this if the libraries are tested correctly.
|
| + // No need to recover from a parser error in platform libraries,
|
| + // user will never see this if the libraries are tested correctly.
|
| reporter.internalError(cls, "Parser error in patch file: $e");
|
| }
|
| cls.cachedNode = listener.popNode();
|
| @@ -428,7 +428,8 @@ class NativeAnnotationHandler implements EagerAnnotationHandler<String> {
|
|
|
| void validate(Compiler compiler, Element element,
|
| MetadataAnnotation annotation, ConstantValue constant) {
|
| - DartType annotationType = constant.getType(compiler.commonElements);
|
| + ResolutionDartType annotationType =
|
| + constant.getType(compiler.commonElements);
|
| if (annotationType.element !=
|
| compiler.commonElements.nativeAnnotationClass) {
|
| DiagnosticReporter reporter = compiler.reporter;
|
| @@ -497,7 +498,8 @@ class PatchAnnotationHandler implements EagerAnnotationHandler<PatchVersion> {
|
| @override
|
| void validate(Compiler compiler, Element element,
|
| MetadataAnnotation annotation, ConstantValue constant) {
|
| - DartType annotationType = constant.getType(compiler.commonElements);
|
| + ResolutionDartType annotationType =
|
| + constant.getType(compiler.commonElements);
|
| if (annotationType.element !=
|
| compiler.commonElements.patchAnnotationClass) {
|
| DiagnosticReporter reporter = compiler.reporter;
|
|
|