Skip to content

Commit 65270f8

Browse files
Clean up
1 parent c9e0c37 commit 65270f8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/cursorless-engine/src/languages/TreeSitterQuery/TreeSitterQuery.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { Position, TextDocument } from "@cursorless/common";
22
import { showError, type TreeSitter } from "@cursorless/common";
33
import type Parser from "web-tree-sitter";
4-
import type { Query } from "web-tree-sitter";
54
import { ide } from "../../singletons/ide.singleton";
65
import { getNodeRange } from "../../util/nodeSelectors";
76
import type {
@@ -32,7 +31,7 @@ export class TreeSitterQuery {
3231
/**
3332
* The raw tree-sitter query as parsed by tree-sitter from the query file
3433
*/
35-
private query: Query,
34+
private query: Parser.Query,
3635

3736
/**
3837
* The predicates for each pattern in the query. Each element of the outer
@@ -42,7 +41,11 @@ export class TreeSitterQuery {
4241
private patternPredicates: ((match: MutableQueryMatch) => boolean)[][],
4342
) {}
4443

45-
static create(languageId: string, treeSitter: TreeSitter, query: Query) {
44+
static create(
45+
languageId: string,
46+
treeSitter: TreeSitter,
47+
query: Parser.Query,
48+
) {
4649
const { errors, predicates } = parsePredicates(query.predicates);
4750

4851
if (errors.length > 0) {

0 commit comments

Comments
 (0)