-
Notifications
You must be signed in to change notification settings - Fork 1
/
__init__.py
66 lines (64 loc) · 1.5 KB
/
__init__.py
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
"""
Public-facing functions to interface with Tree-sitter, designed for use by other plugins.
Example usage: `from sublime_tree_sitter import get_tree_dict`
"""
from TreeSitter.src.api import (
BreadcrumbDict,
CaptureDict,
contains,
format_breadcrumbs,
get_ancestor,
get_ancestors,
get_captures_from_nodes,
get_cousins,
get_descendant,
get_larger_ancestor,
get_node_spanning_region,
get_query_s_from_file,
get_region_from_node,
get_scope_to_language_name,
get_selected_nodes,
get_sibling,
get_size,
get_tracked_buffer_ids,
get_tree_dict,
get_tree_from_code,
get_view_from_buffer_id,
goto_capture_options,
goto_captures,
query_node_with_s,
scroll_to_region,
show_node_under_selection,
walk_tree,
)
from TreeSitter.src.core import TreeDict
__all__ = [
"BreadcrumbDict",
"CaptureDict",
"contains",
"format_breadcrumbs",
"get_ancestor",
"get_ancestors",
"get_captures_from_nodes",
"get_cousins",
"get_descendant",
"get_larger_ancestor",
"get_node_spanning_region",
"get_query_s_from_file",
"get_region_from_node",
"get_scope_to_language_name",
"get_selected_nodes",
"get_sibling",
"get_size",
"get_tracked_buffer_ids",
"get_tree_dict",
"get_tree_from_code",
"get_view_from_buffer_id",
"goto_capture_options",
"goto_captures",
"query_node_with_s",
"scroll_to_region",
"show_node_under_selection",
"walk_tree",
"TreeDict",
]