mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Allow JSXAttribute to be IdentifierName (#17466)
* Add test * Fix #17452 - Allow JSXAttribute names to be IdentifierNames * Move check into isIdentifierName
This commit is contained in:
1 parent
32d9292a83
commit
c73fdc87d0
5 files changed
+78
-1
No files matched your search
@@ -1781,7 +1781,8 @@ namespace ts {
|
||||
// Property name in binding element or import specifier
|
||||
return (<BindingElement | ImportSpecifier>parent).propertyName === node;
|
||||
case SyntaxKind.ExportSpecifier:
|
||||
// Any name in an export specifier
|
||||
case SyntaxKind.JsxAttribute:
|
||||
// Any name in an export specifier or JSX Attribute
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user