mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-29 16:29:19 -05:00
Properly handle both special export forms when renaming (#36914)
* Properly handle both special export forms when renaming Fixes #36713 * Lint
This commit is contained in:
@@ -5009,6 +5009,14 @@ namespace ts {
|
||||
return node.kind === SyntaxKind.PropertyAccessExpression || node.kind === SyntaxKind.ElementAccessExpression;
|
||||
}
|
||||
|
||||
export function getNameOfAccessExpression(node: AccessExpression) {
|
||||
if (node.kind === SyntaxKind.PropertyAccessExpression) {
|
||||
return node.name;
|
||||
}
|
||||
Debug.assert(node.kind === SyntaxKind.ElementAccessExpression);
|
||||
return node.argumentExpression;
|
||||
}
|
||||
|
||||
export function isBundleFileTextLike(section: BundleFileSection): section is BundleFileTextLike {
|
||||
switch (section.kind) {
|
||||
case BundleFileSectionKind.Text:
|
||||
|
||||
Reference in New Issue
Block a user