fix(47004): ignore arguments name in PropertyAssignment (#47054)

This commit is contained in:
Oleksandr T
2021-12-16 23:05:48 +02:00
committed by GitHub
parent 93bdfd2511
commit c282771d59
14 changed files with 542 additions and 0 deletions

View File

@@ -12737,6 +12737,9 @@ namespace ts {
case SyntaxKind.ElementAccessExpression:
return traverse((node as PropertyAccessExpression | ElementAccessExpression).expression);
case SyntaxKind.PropertyAssignment:
return traverse((node as PropertyAssignment).initializer);
default:
return !nodeStartsNewLexicalEnvironment(node) && !isPartOfTypeNode(node) && !!forEachChild(node, traverse);
}