Skip to content

Commit

Permalink
Use new tree-sitter-web version
Browse files Browse the repository at this point in the history
  • Loading branch information
razzeee committed Jul 30, 2019
1 parent 645fa84 commit 063f0c5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 17 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"rxjs": "^6.5.2",
"vscode-languageserver": "^5.2.1",
"vscode-uri": "^2.0.3",
"web-tree-sitter": "^0.15.7",
"ws": "^7.1.0"
"web-tree-sitter": "^0.15.9",
"ws": "^7.1.1"
},
"devDependencies": {
"@types/glob": "^7.1.1",
Expand Down
10 changes: 1 addition & 9 deletions src/util/treeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1067,14 +1067,6 @@ export class TreeUtils {
node: SyntaxNode,
type: string,
): SyntaxNode[] {
const result: SyntaxNode[] = [];
node.children.forEach((a: SyntaxNode) => {
if (a.type === type) {
result.push(a);
}

result.push(...TreeUtils.descendantsOfType(a, type));
});
return result;
return node.descendantsOfType(type);
}
}
Binary file modified tree-sitter-elm.wasm
Binary file not shown.

0 comments on commit 063f0c5

Please sign in to comment.