@levelcode/cli 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +80038 -90096
- package/dist/tree-sitter-c_sharp-tags-anw39yqm.scm +23 -0
- package/dist/tree-sitter-cpp-tags-c1zyz4n8.scm +29 -0
- package/dist/tree-sitter-go-tags-yaem956t.scm +26 -0
- package/dist/tree-sitter-java-tags-gkyt3kxj.scm +19 -0
- package/dist/tree-sitter-javascript-tags-ddj2zehf.scm +16 -0
- package/dist/tree-sitter-python-tags-gdsrt3j2.scm +12 -0
- package/dist/tree-sitter-ruby-tags-ep8k1msj.scm +58 -0
- package/dist/tree-sitter-rust-tags-x5gtmm1e.scm +26 -0
- package/dist/tree-sitter-typescript-tags-nd4er62k.scm +22 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
(class_declaration
|
|
2
|
+
name: (identifier) @identifier
|
|
3
|
+
)
|
|
4
|
+
|
|
5
|
+
(interface_declaration
|
|
6
|
+
name: (identifier) @identifier
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
(method_declaration
|
|
10
|
+
name: (identifier) @identifier
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
; Method calls
|
|
14
|
+
(invocation_expression
|
|
15
|
+
function: (identifier) @call.identifier)
|
|
16
|
+
|
|
17
|
+
(invocation_expression
|
|
18
|
+
function: (member_access_expression
|
|
19
|
+
name: (identifier) @call.identifier))
|
|
20
|
+
|
|
21
|
+
; Constructor calls
|
|
22
|
+
(object_creation_expression
|
|
23
|
+
type: (identifier) @call.identifier)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
(struct_specifier name: (type_identifier) @identifier)
|
|
2
|
+
|
|
3
|
+
(declaration type: (union_specifier name: (type_identifier) @identifier))
|
|
4
|
+
|
|
5
|
+
(function_declarator declarator: (identifier) @identifier)
|
|
6
|
+
|
|
7
|
+
(function_declarator declarator: (field_identifier) @identifier)
|
|
8
|
+
|
|
9
|
+
(function_declarator declarator: (qualified_identifier scope: (namespace_identifier) name: (identifier) @identifier))
|
|
10
|
+
|
|
11
|
+
(type_definition declarator: (type_identifier) @identifier)
|
|
12
|
+
|
|
13
|
+
(enum_specifier name: (type_identifier) @identifier)
|
|
14
|
+
|
|
15
|
+
(class_specifier name: (type_identifier) @identifier)
|
|
16
|
+
|
|
17
|
+
; Function calls
|
|
18
|
+
(call_expression
|
|
19
|
+
function: (identifier) @call.identifier)
|
|
20
|
+
|
|
21
|
+
(call_expression
|
|
22
|
+
function: (field_expression field: (field_identifier) @call.identifier))
|
|
23
|
+
|
|
24
|
+
; Constructor calls
|
|
25
|
+
(class_specifier
|
|
26
|
+
name: (type_identifier) @call.identifier)
|
|
27
|
+
|
|
28
|
+
(new_expression
|
|
29
|
+
type: (type_identifier) @call.identifier)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(
|
|
2
|
+
(comment)*
|
|
3
|
+
.
|
|
4
|
+
(function_declaration
|
|
5
|
+
name: (identifier) @identifier)
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
(
|
|
9
|
+
(comment)*
|
|
10
|
+
.
|
|
11
|
+
(method_declaration
|
|
12
|
+
name: (field_identifier) @identifier)
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
(type_spec
|
|
16
|
+
name: (type_identifier) @identifier)
|
|
17
|
+
|
|
18
|
+
(type_identifier) @identifier
|
|
19
|
+
|
|
20
|
+
(call_expression
|
|
21
|
+
function: [
|
|
22
|
+
(identifier) @call.identifier
|
|
23
|
+
(parenthesized_expression (identifier) @call.identifier)
|
|
24
|
+
(selector_expression field: (field_identifier) @call.identifier)
|
|
25
|
+
(parenthesized_expression (selector_expression field: (field_identifier) @call.identifier))
|
|
26
|
+
])
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
(class_declaration
|
|
2
|
+
name: (identifier) @identifier)
|
|
3
|
+
|
|
4
|
+
(interface_declaration
|
|
5
|
+
name: (identifier) @identifier) @definition.interface
|
|
6
|
+
|
|
7
|
+
(method_declaration
|
|
8
|
+
name: (identifier) @identifier)
|
|
9
|
+
|
|
10
|
+
(method_invocation
|
|
11
|
+
name: (identifier) @call.identifier)
|
|
12
|
+
|
|
13
|
+
(type_list
|
|
14
|
+
(type_identifier) @call.identifier)
|
|
15
|
+
|
|
16
|
+
(object_creation_expression
|
|
17
|
+
type: (type_identifier) @call.identifier)
|
|
18
|
+
|
|
19
|
+
(superclass (type_identifier) @call.identifier)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
(function_declaration name: (identifier) @identifier)
|
|
2
|
+
(class_declaration name: (identifier) @identifier)
|
|
3
|
+
(method_definition name: (property_identifier) @identifier)
|
|
4
|
+
|
|
5
|
+
(export_statement
|
|
6
|
+
declaration: (lexical_declaration
|
|
7
|
+
(variable_declarator
|
|
8
|
+
name: (identifier) @identifier)))
|
|
9
|
+
(export_statement
|
|
10
|
+
declaration: (variable_declaration
|
|
11
|
+
(variable_declarator
|
|
12
|
+
name: (identifier) @identifier)))
|
|
13
|
+
|
|
14
|
+
(call_expression function: (identifier) @call.identifier)
|
|
15
|
+
(call_expression function: (member_expression property: (property_identifier) @call.identifier))
|
|
16
|
+
(new_expression constructor: (identifier) @call.identifier)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
; Method definitions
|
|
2
|
+
|
|
3
|
+
(
|
|
4
|
+
[
|
|
5
|
+
(method
|
|
6
|
+
name: (_) @identifier)
|
|
7
|
+
(singleton_method
|
|
8
|
+
name: (_) @identifier)
|
|
9
|
+
]
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
(alias
|
|
13
|
+
name: (_) @identifier)
|
|
14
|
+
|
|
15
|
+
; (setter
|
|
16
|
+
; (identifier) @identifier)
|
|
17
|
+
|
|
18
|
+
; Class definitions
|
|
19
|
+
|
|
20
|
+
(
|
|
21
|
+
(comment)*
|
|
22
|
+
.
|
|
23
|
+
[
|
|
24
|
+
(class
|
|
25
|
+
name: [
|
|
26
|
+
(constant) @identifier
|
|
27
|
+
(scope_resolution
|
|
28
|
+
name: (_) @identifier)
|
|
29
|
+
])
|
|
30
|
+
(singleton_class
|
|
31
|
+
value: [
|
|
32
|
+
(constant) @identifier
|
|
33
|
+
(scope_resolution
|
|
34
|
+
name: (_) @identifier)
|
|
35
|
+
])
|
|
36
|
+
]
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
; Module definitions
|
|
40
|
+
|
|
41
|
+
(
|
|
42
|
+
(module
|
|
43
|
+
name: [
|
|
44
|
+
(constant) @identifier
|
|
45
|
+
(scope_resolution
|
|
46
|
+
name: (_) @identifier)
|
|
47
|
+
])
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
; Calls
|
|
51
|
+
|
|
52
|
+
(call method: (identifier) @call.identifier)
|
|
53
|
+
|
|
54
|
+
(
|
|
55
|
+
[(identifier) (constant)] @call.identifier
|
|
56
|
+
(#is-not? local)
|
|
57
|
+
(#not-match? @call.identifier "^(lambda|load|require|require_relative|__FILE__|__LINE__)$")
|
|
58
|
+
)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(struct_item name: (type_identifier) @identifier)
|
|
2
|
+
(enum_item name: (type_identifier) @identifier)
|
|
3
|
+
(union_item name: (type_identifier) @identifier)
|
|
4
|
+
(type_item name: (type_identifier) @identifier)
|
|
5
|
+
(trait_item name: (type_identifier) @identifier)
|
|
6
|
+
(function_item name: (identifier) @identifier)
|
|
7
|
+
(macro_definition name: (identifier) @identifier)
|
|
8
|
+
(mod_item name: (identifier) @identifier)
|
|
9
|
+
(const_item name: (identifier) @identifier)
|
|
10
|
+
(static_item name: (identifier) @identifier)
|
|
11
|
+
|
|
12
|
+
; Function and macro calls
|
|
13
|
+
(call_expression function: (identifier) @call.identifier)
|
|
14
|
+
(call_expression function: (field_expression field: (field_identifier) @call.identifier))
|
|
15
|
+
(macro_invocation macro: (identifier) @call.identifier)
|
|
16
|
+
|
|
17
|
+
; Struct instantiation
|
|
18
|
+
(struct_expression (type_identifier) @call.identifier)
|
|
19
|
+
|
|
20
|
+
; Enum variant usage
|
|
21
|
+
(scoped_identifier path: (identifier) name: (identifier) @call.identifier)
|
|
22
|
+
|
|
23
|
+
; implementations
|
|
24
|
+
|
|
25
|
+
(impl_item trait: (type_identifier) @call.identifier)
|
|
26
|
+
(impl_item type: (type_identifier) @call.identifier !trait)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(function_declaration name: (identifier) @identifier)
|
|
2
|
+
(class_declaration name: (type_identifier) @identifier)
|
|
3
|
+
(interface_declaration name: (type_identifier) @identifier)
|
|
4
|
+
(method_definition name: (property_identifier) @identifier)
|
|
5
|
+
|
|
6
|
+
(export_statement
|
|
7
|
+
declaration: (function_declaration
|
|
8
|
+
name: (identifier) @identifier))
|
|
9
|
+
|
|
10
|
+
(export_statement
|
|
11
|
+
declaration: (lexical_declaration
|
|
12
|
+
(variable_declarator
|
|
13
|
+
name: (identifier) @identifier)))
|
|
14
|
+
|
|
15
|
+
(export_statement
|
|
16
|
+
declaration: (variable_declaration
|
|
17
|
+
(variable_declarator
|
|
18
|
+
name: (identifier) @identifier)))
|
|
19
|
+
|
|
20
|
+
(call_expression function: (identifier) @call.identifier)
|
|
21
|
+
(call_expression function: (member_expression property: (property_identifier) @call.identifier))
|
|
22
|
+
(new_expression constructor: (identifier) @call.identifier)
|