Skip to content

Commit

Permalink
new view
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastián Gurín committed May 28, 2019
1 parent b9519ff commit 7ba346d
Show file tree
Hide file tree
Showing 19 changed files with 169 additions and 14,101 deletions.
16 changes: 8 additions & 8 deletions test/mediumComplexityTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ test('functions that contains variables, classes or parameters', t => {



export function findLargestDescendantContainingPosition(sourceFile: ts.SourceFile, position: number): ts.Node | undefined {
function find(node: ts.Node): ts.Node | undefined {
if (position >= node.getStart() && position < node.getEnd()) {
return ts.forEachChild(node, find) || node
}
}
return find(sourceFile)
}
// export function findLargestDescendantContainingPosition(sourceFile: ts.SourceFile, position: number): ts.Node | undefined {
// function find(node: ts.Node): ts.Node | undefined {
// if (position >= node.getStart() && position < node.getEnd()) {
// return ts.forEachChild(node, find) || node
// }
// }
// return find(sourceFile)
// }

0 comments on commit 7ba346d

Please sign in to comment.