-
Notifications
You must be signed in to change notification settings - Fork 4
/
ltreesitter.d.tl
110 lines (100 loc) · 4.62 KB
/
ltreesitter.d.tl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
-- Autogenerated type definitions
local record ltreesitter
-- Exports
record Cursor userdata
current_field_name: function(Cursor): string -- csrc/tree_cursor.c:32
current_node: function(Cursor): Node -- csrc/tree_cursor.c:20
goto_first_child: function(Cursor): boolean -- csrc/tree_cursor.c:74
goto_first_child_for_byte: function(Cursor, integer): integer -- csrc/tree_cursor.c:83
goto_next_sibling: function(Cursor): boolean -- csrc/tree_cursor.c:65
goto_parent: function(Cursor): boolean -- csrc/tree_cursor.c:56
reset: function(Cursor, Node) -- csrc/tree_cursor.c:46
end
record Node userdata
child: function(Node, idx: integer): Node -- csrc/node.c:129
child_by_field_name: function(Node, string): Node -- csrc/node.c:339
child_count: function(Node): integer -- csrc/node.c:146
children: function(Node): function(): Node -- csrc/node.c:218
create_cursor: function(Node): Cursor -- csrc/node.c:372
end_byte: function(Node): integer -- csrc/node.c:39
end_point: function(Node): Point -- csrc/node.c:72
is_extra: function(Node): boolean -- csrc/node.c:106
is_missing: function(Node): boolean -- csrc/node.c:97
is_named: function(Node): boolean -- csrc/node.c:88
name: function(Node): string -- csrc/node.c:319
named_child: function(Node, idx: integer): Node -- csrc/node.c:155
named_child_count: function(Node): integer -- csrc/node.c:170
named_children: function(Node): function(): Node -- csrc/node.c:232
next_named_sibling: function(Node): Node -- csrc/node.c:274
next_sibling: function(Node): Node -- csrc/node.c:244
prev_named_sibling: function(Node): Node -- csrc/node.c:289
prev_sibling: function(Node): Node -- csrc/node.c:259
source: function(Node): string -- csrc/node.c:357
start_byte: function(Node): integer -- csrc/node.c:30
start_point: function(Node): Point -- csrc/node.c:55
type: function(Node): string -- csrc/node.c:21
end
record Parser userdata
get_ranges: function(Parser): {Range} -- csrc/parser.c:633
get_version: function(Parser): integer -- csrc/parser.c:682
parse_string: function(Parser, string, Tree): Tree -- csrc/parser.c:377
parse_with: function(Parser, reader: function(integer, Point): (string), old_tree: Tree): Tree -- csrc/parser.c:470
query: function(Parser, string): Query -- csrc/parser.c:650
set_ranges: function(Parser, {Range}): boolean -- csrc/parser.c:554
set_timeout: function(Parser, integer) -- csrc/parser.c:520
end
record Query userdata
capture: function(Query, Node, start: integer | Point, end_: integer | Point): function(): (Node, string) -- csrc/query.c:514
exec: function(Query, Node, start: integer | Point, end_: integer | Point) -- csrc/query.c:602
match: function(Query, Node, start: integer | Point, end_: integer | Point): function(): Match -- csrc/query.c:468
source: function(Query): string -- csrc/query.c:657
with: function(Query, {string:function(...: string | Node | {Node}): any...}): Query -- csrc/query.c:543
end
record Tree userdata
copy: function(Tree): Tree -- csrc/tree.c:90
edit: function(
Tree,
start_byte: integer,
old_end_byte: integer,
new_end_byte: integer,
start_point_row: integer,
start_point_col: integer,
old_end_point_row: integer,
old_end_point_col: integer,
new_end_point_row: integer,
new_end_point_col: integer
) -- csrc/tree.c:177
edit_s: function(Tree, TreeEdit) -- csrc/tree.c:120
get_changed_ranges: function(old: Tree, new: Tree): {Range} -- csrc/tree.c:206
root: function(Tree): Node -- csrc/tree.c:71
end
load: function(file_name: string, language_name: string): Parser, string -- csrc/parser.c:111
require: function(library_file_name: string, language_name: string): Parser -- csrc/parser.c:167
version: string -- csrc/ltreesitter.c:14
-- Inlines
record TreeEdit
start_byte: integer
old_end_byte: integer
new_end_byte: integer
start_point: Point
old_end_point: Point
new_end_point: Point
end -- csrc/tree.c:109
record Match
id: integer
pattern_index: integer
capture_count: integer
captures: {string:Node|{Node}}
end -- csrc/query.c:328
record Point
row: integer
column: integer
end -- csrc/node.c:48
record Range
start_byte: integer
end_byte: integer
start_point: Point
end_point: Point
end -- csrc/parser.c:531
end
return ltreesitter