fix(48657): allow JSXElement names to be IdentifierNames (#48661)

This commit is contained in:
Oleksandr T authored and GitHub committed 2022-04-13 12:32:10 -07:00
1 parent a027cfa8ac
commit 73c93eec5c
7 files changed
+113 -31

No files matched your search

+4 -1
View File
@@ -3112,7 +3112,10 @@ namespace ts {
return (parent as BindingElement | ImportSpecifier).propertyName === node;
case SyntaxKind.ExportSpecifier:
case SyntaxKind.JsxAttribute:
// Any name in an export specifier or JSX Attribute
case SyntaxKind.JsxSelfClosingElement:
case SyntaxKind.JsxOpeningElement:
case SyntaxKind.JsxClosingElement:
// Any name in an export specifier or JSX Attribute or Jsx Element
return true;
}
return false;