Skip to content

Commit d292346

Browse files
committed
Add comment providing context on the change
1 parent a65f35b commit d292346

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20387,6 +20387,7 @@ namespace ts {
2038720387

2038820388
function isValidPropertyAccessForCompletions(node: PropertyAccessExpression | ImportTypeNode | QualifiedName, type: Type, property: Symbol): boolean {
2038920389
return isValidPropertyAccessWithType(node, node.kind === SyntaxKind.PropertyAccessExpression && node.expression.kind === SyntaxKind.SuperKeyword, property.escapedName, type);
20390+
// Previously we validated the 'this' type of methods but this adversely affected performance. See #31377 for more context.
2039020391
}
2039120392

2039220393
function isValidPropertyAccessWithType(

0 commit comments

Comments
 (0)