mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 00:55:32 -05:00
fix(48657): allow JSXElement names to be IdentifierNames (#48661)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user