@@ -248,7 +248,7 @@ class JSCodegenVisitor extends GeneralizingAstVisitor with ClosureAnnotator {
248
248
void visitLibraryDirective (LibraryDirective node) {
249
249
assert (_jsModuleValue == null );
250
250
251
- var jsName = findAnnotation (node.element, isJsNameAnnotation );
251
+ var jsName = findAnnotation (node.element, isJSAnnotation );
252
252
_jsModuleValue =
253
253
getConstantField (jsName, 'name' , types.stringType)? .toStringValue ();
254
254
}
@@ -409,7 +409,7 @@ class JSCodegenVisitor extends GeneralizingAstVisitor with ClosureAnnotator {
409
409
if (jsTypeName != null && jsTypeName != dartClassName) {
410
410
// We export the JS type as if it was a Dart type. For example this allows
411
411
// `dom.InputElement` to actually be HTMLInputElement.
412
- // TODO(jmesserly): if we had the JsName on the Element, we could just
412
+ // TODO(jmesserly): if we had the JS name on the Element, we could just
413
413
// generate it correctly when we refer to it.
414
414
if (isPublic (dartClassName)) _addExport (dartClassName);
415
415
return js.statement ('let # = #;' , [dartClassName, jsTypeName]);
@@ -421,7 +421,7 @@ class JSCodegenVisitor extends GeneralizingAstVisitor with ClosureAnnotator {
421
421
JS .Statement visitClassDeclaration (ClassDeclaration node) {
422
422
var classElem = node.element;
423
423
var type = classElem.type;
424
- var jsName = findAnnotation (classElem, isJsNameAnnotation );
424
+ var jsName = findAnnotation (classElem, isJSAnnotation );
425
425
426
426
if (jsName != null ) return _emitJsType (node.name.name, jsName);
427
427
@@ -2721,7 +2721,7 @@ class JSCodegenVisitor extends GeneralizingAstVisitor with ClosureAnnotator {
2721
2721
// TODO(jmesserly): ideally we'd check the method and see if it is marked
2722
2722
// `external`, but that doesn't work because it isn't in the element model.
2723
2723
bool _useNativeJsIndexer (DartType type) =>
2724
- findAnnotation (type.element, isJsNameAnnotation ) != null ;
2724
+ findAnnotation (type.element, isJSAnnotation ) != null ;
2725
2725
2726
2726
/// Gets the target of a [PropertyAccess] , [IndexExpression] , or
2727
2727
/// [MethodInvocation] . These three nodes can appear in a [CascadeExpression] .
0 commit comments