mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
fix(47004): ignore arguments name in PropertyAssignment (#47054)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user