Skip to content

Commit b25d855

Browse files
committed
Removed unused getContainingParameter function
1 parent 1b93265 commit b25d855

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/compiler/utilities.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -640,19 +640,6 @@ namespace ts {
640640
}
641641
}
642642
}
643-
644-
export function getContainingParameter(node: Node): ParameterDeclaration {
645-
while (true) {
646-
node = node.parent;
647-
if (!node || isFunctionLike(node)) {
648-
return undefined;
649-
}
650-
651-
if (node.kind === SyntaxKind.Parameter) {
652-
return <ParameterDeclaration>node;
653-
}
654-
}
655-
}
656643

657644
export function getThisContainer(node: Node, includeArrowFunctions: boolean): Node {
658645
while (true) {

0 commit comments

Comments
 (0)