Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Unified Diff: pkg/compiler/lib/src/patch_parser.dart

Issue 2265473004: Introduce "CommonElements" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: cl Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/mirrors_used.dart ('k') | pkg/compiler/lib/src/resolution/class_hierarchy.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9f510363de32bacdee68c312ec78a6a07d61111d..4e6ea8c40886cddfec8b2c2b4d5de4f802132513 100644
--- a/pkg/compiler/lib/src/patch_parser.dart
+++ b/pkg/compiler/lib/src/patch_parser.dart
@@ -432,7 +432,8 @@ class NativeAnnotationHandler implements EagerAnnotationHandler<String> {
void validate(Compiler compiler, Element element,
MetadataAnnotation annotation, ConstantValue constant) {
DartType annotationType = constant.getType(compiler.coreTypes);
- if (annotationType.element != compiler.nativeAnnotationClass) {
+ if (annotationType.element !=
+ compiler.commonElements.nativeAnnotationClass) {
DiagnosticReporter reporter = compiler.reporter;
reporter.internalError(annotation, 'Invalid @Native(...) annotation.');
}
@@ -500,7 +501,8 @@ class PatchAnnotationHandler implements EagerAnnotationHandler<PatchVersion> {
void validate(Compiler compiler, Element element,
MetadataAnnotation annotation, ConstantValue constant) {
DartType annotationType = constant.getType(compiler.coreTypes);
- if (annotationType.element != compiler.patchAnnotationClass) {
+ if (annotationType.element !=
+ compiler.commonElements.patchAnnotationClass) {
DiagnosticReporter reporter = compiler.reporter;
reporter.internalError(annotation, 'Invalid patch annotation.');
}
« no previous file with comments | « pkg/compiler/lib/src/mirrors_used.dart ('k') | pkg/compiler/lib/src/resolution/class_hierarchy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698