mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 01:49:57 -05:00
fix(39421): omit prefix text for rest binding element (#39433)
This commit is contained in:
@@ -402,7 +402,7 @@ namespace ts.FindAllReferences {
|
||||
const parent = node.parent;
|
||||
const name = originalNode.text;
|
||||
const isShorthandAssignment = isShorthandPropertyAssignment(parent);
|
||||
if (isShorthandAssignment || isObjectBindingElementWithoutPropertyName(parent) && parent.name === node) {
|
||||
if (isShorthandAssignment || (isObjectBindingElementWithoutPropertyName(parent) && parent.name === node && parent.dotDotDotToken === undefined)) {
|
||||
const prefixColon: PrefixAndSuffix = { prefixText: name + ": " };
|
||||
const suffixColon: PrefixAndSuffix = { suffixText: ": " + name };
|
||||
if (kind === EntryKind.SearchedLocalFoundProperty) {
|
||||
|
||||
Reference in New Issue
Block a user