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 7cadd33b94f1e5b42d91df9d9755756db25ba497..00cb3d71a031cffaf2b9f135c88330eb5ad4631b 100644 |
--- a/pkg/compiler/lib/src/patch_parser.dart |
+++ b/pkg/compiler/lib/src/patch_parser.dart |
@@ -389,9 +389,9 @@ class PatchAnnotationHandler extends EagerAnnotationHandler<bool> { |
void validate(Compiler compiler, Element element, |
MetadataAnnotation annotation, ConstantValue constant) { |
ResolutionDartType annotationType = |
- constant.getType(compiler.commonElements); |
+ constant.getType(compiler.resolution.commonElements); |
if (annotationType.element != |
- compiler.commonElements.patchAnnotationClass) { |
+ compiler.resolution.commonElements.patchAnnotationClass) { |
DiagnosticReporter reporter = compiler.reporter; |
reporter.internalError(annotation, 'Invalid patch annotation.'); |
} |