Skip to content

Commit 0dc976d

Browse files
author
Andy Hanson
committed
Remove unused parameter
1 parent 7e6f18d commit 0dc976d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/services/services.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6463,7 +6463,7 @@ namespace ts {
64636463
if (referenceSymbol === searchSymbol && isClassLike(referenceClass)) {
64646464
Debug.assert(referenceClass.name === referenceLocation);
64656465
// This is the class declaration containing the constructor.
6466-
addReferences(findOwnConstructorCalls(referenceSymbol, referenceClass));
6466+
addReferences(findOwnConstructorCalls(searchSymbol));
64676467
}
64686468
else {
64696469
// If this class appears in `extends C`, then the extending class' "super" calls are references.
@@ -6481,20 +6481,20 @@ namespace ts {
64816481
}
64826482
}
64836483

6484-
/** `referenceLocation` is the class where the constructor was defined.
6484+
/** `classSymbol` is the class where the constructor was defined.
64856485
* Reference the constructor and all calls to `new this()`.
64866486
*/
6487-
function findOwnConstructorCalls(referenceSymbol: Symbol, referenceLocation: ClassLikeDeclaration): Node[] {
6487+
function findOwnConstructorCalls(classSymbol: Symbol): Node[] {
64886488
const result: Node[] = [];
64896489

6490-
for (const decl of referenceSymbol.members["__constructor"].declarations) {
6490+
for (const decl of classSymbol.members["__constructor"].declarations) {
64916491
Debug.assert(decl.kind === SyntaxKind.Constructor);
64926492
const ctrKeyword = decl.getChildAt(0);
64936493
Debug.assert(ctrKeyword.kind === SyntaxKind.ConstructorKeyword);
64946494
result.push(ctrKeyword);
64956495
}
64966496

6497-
forEachProperty(referenceSymbol.exports, member => {
6497+
forEachProperty(classSymbol.exports, member => {
64986498
const decl = member.valueDeclaration;
64996499
if (decl && decl.kind === SyntaxKind.MethodDeclaration) {
65006500
const body = (<MethodDeclaration>decl).body;

0 commit comments

Comments
 (0)