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

Unified Diff: lib/src/codegen/js_interop.dart

Issue 1448993002: Switch ddc to use @JS instead of @JSName (Closed) Base URL: git://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 1 month 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 | « lib/src/codegen/js_codegen.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/codegen/js_interop.dart
diff --git a/lib/src/codegen/js_interop.dart b/lib/src/codegen/js_interop.dart
index 4e9cbad9d367a8cd1b19acfa20549a45f25c12c1..1e6dff69bcbaa90cd632c7b5ae37d12a6e94c3ed 100644
--- a/lib/src/codegen/js_interop.dart
+++ b/lib/src/codegen/js_interop.dart
@@ -24,8 +24,8 @@ bool isJsRestAnnotation(DartObjectImpl value) =>
bool isJsSpreadInvocation(MethodInvocation i) =>
_isJsLibType('spread', i.methodName?.bestElement);
-// TODO(jmesserly): Move JsName, JsPeerInterface to package:js (see issue #135).
-bool isJsNameAnnotation(DartObjectImpl value) => value.type.name == 'JsName';
+// TODO(jmesserly): Move JsPeerInterface to package:js (see issue #135).
+bool isJSAnnotation(DartObjectImpl value) => value.type.name == 'JS';
bool isJsPeerInterface(DartObjectImpl value) =>
value.type.name == 'JsPeerInterface';
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698