Skip to content

Commit 580f55d

Browse files
committed
Remove all unused variables
1 parent cbc72ff commit 580f55d

File tree

1 file changed

+0
-71
lines changed
  • packages/cursorless-engine/src/languages

1 file changed

+0
-71
lines changed

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

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -8,77 +8,6 @@ import { SyntaxNode } from "web-tree-sitter";
88
import { getNodeRange, unwrapSelectionExtractor } from "../util/nodeSelectors";
99
import { patternFinder } from "../util/nodeFinders";
1010

11-
// Generated by the following command:
12-
// curl https://raw.githubusercontent.com/ganezdragon/tree-sitter-perl/ee1001210af5f32ba14d2ced834636548e1b6485/src/node-types.json \
13-
// | jq '[.[] | select(.type|match("_statement")) | .type ]'
14-
const STATEMENT_TYPES = [
15-
"ellipsis_statement",
16-
"for_simple_statement",
17-
"for_statement_1",
18-
"for_statement_2",
19-
"foreach_simple_statement",
20-
"foreach_statement",
21-
"if_simple_statement",
22-
"if_statement",
23-
"loop_control_statement",
24-
"loop_control_statement",
25-
"named_block_statement",
26-
"package_statement",
27-
"pod_statement",
28-
"require_statement",
29-
"single_line_statement",
30-
"unless_simple_statement",
31-
"unless_statement",
32-
"until_simple_statement",
33-
"until_statement",
34-
"use_constant_statement",
35-
"use_no_feature_statement",
36-
"use_no_if_statement",
37-
"use_no_statement",
38-
"use_no_subs_statement",
39-
"use_parent_statement",
40-
"when_simple_statement",
41-
"while_simple_statement",
42-
"while_statement",
43-
];
44-
45-
const EXPRESSION_TYPES = [
46-
"array",
47-
"assignment",
48-
"begin",
49-
// MANY MORE TODO ...
50-
];
51-
52-
const EXPRESSION_STATEMENT_PARENT_TYPES = [
53-
"begin",
54-
"block",
55-
"do",
56-
"do_block",
57-
"else",
58-
"lambda",
59-
"method",
60-
"then",
61-
];
62-
63-
const assignmentOperators = [
64-
"=",
65-
"+=",
66-
"-=",
67-
"*=",
68-
"/=",
69-
"||=",
70-
"//=",
71-
"|=",
72-
"&&=",
73-
"&=",
74-
"%=",
75-
">>=",
76-
"<<=",
77-
"^=",
78-
];
79-
80-
const mapKeyValueSeparators = [",", "=>"];
81-
8211
const nodeMatchers: Partial<
8312
Record<SimpleScopeTypeType, NodeMatcherAlternative>
8413
> = {

0 commit comments

Comments
 (0)