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

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

Issue 1410403003: Switch Js to JS (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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/js_backend/backend.dart ('k') | pkg/js/lib/js.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 a0ad4d9ac86df1a1e776aeab7a5e686453652e5d..1b9e8f39f926ccdd9fc815e84bdeadefcd5bd5f5 100644
--- a/pkg/compiler/lib/src/patch_parser.dart
+++ b/pkg/compiler/lib/src/patch_parser.dart
@@ -465,13 +465,13 @@ class NativeAnnotationHandler implements EagerAnnotationHandler<String> {
}
}
-/// Annotation handler for pre-resolution detection of `@Js(...)`
+/// Annotation handler for pre-resolution detection of `@JS(...)`
/// annotations.
class JsInteropAnnotationHandler implements EagerAnnotationHandler<bool> {
const JsInteropAnnotationHandler();
bool hasJsNameAnnotation(MetadataAnnotation annotation) =>
- annotation.beginToken != null && annotation.beginToken.next.value == 'Js';
+ annotation.beginToken != null && annotation.beginToken.next.value == 'JS';
bool apply(Compiler compiler,
Element element,
@@ -493,7 +493,7 @@ class JsInteropAnnotationHandler implements EagerAnnotationHandler<bool> {
JavaScriptBackend backend = compiler.backend;
if (constant.getType(compiler.coreTypes).element !=
backend.jsAnnotationClass) {
- compiler.reporter.internalError(annotation, 'Invalid @Js(...) annotation.');
+ compiler.reporter.internalError(annotation, 'Invalid @JS(...) annotation.');
}
}
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/js/lib/js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698