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

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

Issue 804333002: Add CoreTypes interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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
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 0899be3419411bc66fd745de6ce41499c0ae0651..51b5cac215da27ee87e479110c94674c46ec58ee 100644
--- a/pkg/compiler/lib/src/patch_parser.dart
+++ b/pkg/compiler/lib/src/patch_parser.dart
@@ -379,7 +379,7 @@ class NativeAnnotationHandler implements EagerAnnotationHandler {
Element element,
MetadataAnnotation annotation,
ConstantValue constant) {
- if (constant.computeType(compiler).element !=
+ if (constant.getType(compiler.coreTypes).element !=
compiler.nativeAnnotationClass) {
compiler.internalError(annotation, 'Invalid @Native(...) annotation.');
}

Powered by Google App Engine
This is Rietveld 408576698