tree_sitter_language_pack 1.12.1-aarch64-linux → 1.12.2-aarch64-linux
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.
- checksums.yaml +4 -4
- data/lib/tree_sitter_language_pack/native.rb +1 -1
- data/lib/tree_sitter_language_pack/version.rb +2 -2
- data/lib/tree_sitter_language_pack.rb +2 -2
- data/lib/ts_pack_core_rb.so +0 -0
- data/sig/types.rbs +191 -191
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0002d7d9bd6acf83c80264bf975ee502ffc4c2a20745e754907fa61cde4eaa51
|
|
4
|
+
data.tar.gz: 95b75a43fe0caca92bc216754d854c5bcedf4d000816c850fd79d998e43d3b23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d821f18ac28c06889ee9ad1160f057b6f579c0a5bd4fb82fe59b41a4a11f28c52e4e25b8527346f85a44279684bcbe5c240cfc6581b618dd0a3fd970ec41f04
|
|
7
|
+
data.tar.gz: 1adb3d26d3d02d671c8cebd5c3c925b2c84b2a00f5e538c89d17fbffeb6c0402744c50bad0ca103ca23de007273ae4c7741337548b4b15fd42a4b1d8ad466203
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:d52ce7c026fac10e1f63c1823f2d7e68872bab43e264e5db5c29124d912a5c7c
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
# frozen_string_literal: true
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:d52ce7c026fac10e1f63c1823f2d7e68872bab43e264e5db5c29124d912a5c7c
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
# frozen_string_literal: true
|
|
6
6
|
|
|
7
7
|
module TreeSitterLanguagePack
|
|
8
8
|
## The version string for this package.
|
|
9
|
-
VERSION = "1.12.
|
|
9
|
+
VERSION = "1.12.2"
|
|
10
10
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:d52ce7c026fac10e1f63c1823f2d7e68872bab43e264e5db5c29124d912a5c7c
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
# frozen_string_literal: true
|
|
@@ -23,5 +23,5 @@ end
|
|
|
23
23
|
# under TreeSitterLanguagePack by this point.
|
|
24
24
|
TreeSitterLanguagePack.constants.each do |const_name|
|
|
25
25
|
value = TreeSitterLanguagePack.const_get(const_name)
|
|
26
|
-
Object.const_set(const_name, value) if value.is_a?(Module) &&
|
|
26
|
+
::Object.const_set(const_name, value) if value.is_a?(Module) && !::Object.const_defined?(const_name)
|
|
27
27
|
end
|
data/lib/ts_pack_core_rb.so
CHANGED
|
Binary file
|
data/sig/types.rbs
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:d52ce7c026fac10e1f63c1823f2d7e68872bab43e264e5db5c29124d912a5c7c
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
|
|
6
6
|
module TreeSitterLanguagePack
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
VERSION: String
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
type json_value = Hash[String, untyped] | Array[untyped] | String | Integer | Float | bool | nil
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
class DataAttribute
|
|
13
|
+
attr_accessor name: String?
|
|
14
|
+
attr_accessor value: String?
|
|
15
|
+
attr_accessor span: Span?
|
|
16
16
|
|
|
17
17
|
def initialize: (?name: String, ?value: String, ?span: Span) -> void
|
|
18
|
-
|
|
18
|
+
end
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
class DataNode
|
|
21
|
+
attr_accessor kind: DataNodeKind?
|
|
22
|
+
attr_accessor key: String?
|
|
23
|
+
attr_accessor value: String?
|
|
24
24
|
attr_accessor attributes: Array[DataAttribute]?
|
|
25
25
|
attr_accessor children: Array[DataNode]?
|
|
26
|
-
|
|
26
|
+
attr_accessor span: Span?
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
def initialize: (?kind: DataNodeKind, ?key: String, ?value: String, ?attributes: Array[DataAttribute], ?children: Array[DataNode], ?span: Span) -> void
|
|
29
|
+
end
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
class Span
|
|
32
|
+
attr_accessor start_byte: Integer?
|
|
33
|
+
attr_accessor end_byte: Integer?
|
|
34
|
+
attr_accessor start_line: Integer?
|
|
35
|
+
attr_accessor start_column: Integer?
|
|
36
|
+
attr_accessor end_line: Integer?
|
|
37
|
+
attr_accessor end_column: Integer?
|
|
38
38
|
|
|
39
39
|
def initialize: (?start_byte: Integer, ?end_byte: Integer, ?start_line: Integer, ?start_column: Integer, ?end_line: Integer, ?end_column: Integer) -> void
|
|
40
|
-
|
|
40
|
+
end
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
class ProcessResult
|
|
43
|
+
attr_accessor language: String?
|
|
44
|
+
attr_accessor metrics: FileMetrics?
|
|
45
45
|
attr_accessor structure: Array[StructureItem]?
|
|
46
46
|
attr_accessor imports: Array[ImportInfo]?
|
|
47
47
|
attr_accessor exports: Array[ExportInfo]?
|
|
@@ -50,163 +50,163 @@ module TreeSitterLanguagePack
|
|
|
50
50
|
attr_accessor symbols: Array[SymbolInfo]?
|
|
51
51
|
attr_accessor diagnostics: Array[Diagnostic]?
|
|
52
52
|
attr_accessor chunks: Array[CodeChunk]?
|
|
53
|
-
|
|
53
|
+
attr_accessor data: DataNode?
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
def initialize: (?language: String, ?metrics: FileMetrics, ?structure: Array[StructureItem], ?imports: Array[ImportInfo], ?exports: Array[ExportInfo], ?comments: Array[CommentInfo], ?docstrings: Array[DocstringInfo], ?symbols: Array[SymbolInfo], ?diagnostics: Array[Diagnostic], ?chunks: Array[CodeChunk], ?data: DataNode) -> void
|
|
56
|
+
end
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
58
|
+
class FileMetrics
|
|
59
|
+
attr_accessor total_lines: Integer?
|
|
60
|
+
attr_accessor code_lines: Integer?
|
|
61
|
+
attr_accessor comment_lines: Integer?
|
|
62
|
+
attr_accessor blank_lines: Integer?
|
|
63
|
+
attr_accessor total_bytes: Integer?
|
|
64
|
+
attr_accessor node_count: Integer?
|
|
65
|
+
attr_accessor error_count: Integer?
|
|
66
|
+
attr_accessor max_depth: Integer?
|
|
67
67
|
|
|
68
68
|
def initialize: (?total_lines: Integer, ?code_lines: Integer, ?comment_lines: Integer, ?blank_lines: Integer, ?total_bytes: Integer, ?node_count: Integer, ?error_count: Integer, ?max_depth: Integer) -> void
|
|
69
|
-
|
|
69
|
+
end
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
class StructureItem
|
|
72
|
+
attr_accessor kind: StructureKind?
|
|
73
|
+
attr_accessor name: String?
|
|
74
|
+
attr_accessor visibility: String?
|
|
75
|
+
attr_accessor span: Span?
|
|
76
76
|
attr_accessor children: Array[StructureItem]?
|
|
77
77
|
attr_accessor decorators: Array[String]?
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
attr_accessor doc_comment: String?
|
|
79
|
+
attr_accessor signature: String?
|
|
80
|
+
attr_accessor body_span: Span?
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
def initialize: (?kind: StructureKind, ?name: String, ?visibility: String, ?span: Span, ?children: Array[StructureItem], ?decorators: Array[String], ?doc_comment: String, ?signature: String, ?body_span: Span) -> void
|
|
83
|
+
end
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
class CommentInfo
|
|
86
|
+
attr_accessor text: String?
|
|
87
|
+
attr_accessor kind: CommentKind?
|
|
88
|
+
attr_accessor span: Span?
|
|
89
|
+
attr_accessor associated_node: String?
|
|
90
90
|
|
|
91
91
|
def initialize: (?text: String, ?kind: CommentKind, ?span: Span, ?associated_node: String) -> void
|
|
92
|
-
|
|
92
|
+
end
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
class DocstringInfo
|
|
95
|
+
attr_accessor text: String?
|
|
96
|
+
attr_accessor format: DocstringFormat?
|
|
97
|
+
attr_accessor span: Span?
|
|
98
|
+
attr_accessor associated_item: String?
|
|
99
99
|
attr_accessor parsed_sections: Array[DocSection]?
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
def initialize: (?text: String, ?format: DocstringFormat, ?span: Span, ?associated_item: String, ?parsed_sections: Array[DocSection]) -> void
|
|
102
|
+
end
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
class DocSection
|
|
105
|
+
attr_accessor kind: String?
|
|
106
|
+
attr_accessor name: String?
|
|
107
|
+
attr_accessor description: String?
|
|
108
108
|
|
|
109
109
|
def initialize: (?kind: String, ?name: String, ?description: String) -> void
|
|
110
|
-
|
|
110
|
+
end
|
|
111
111
|
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
class ImportInfo
|
|
113
|
+
attr_accessor source: String?
|
|
114
114
|
attr_accessor items: Array[String]?
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
attr_accessor alias: String?
|
|
116
|
+
attr_accessor is_wildcard: bool?
|
|
117
|
+
attr_accessor span: Span?
|
|
118
118
|
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
def initialize: (?source: String, ?items: Array[String], ?alias: String, ?is_wildcard: bool, ?span: Span) -> void
|
|
120
|
+
end
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
class ExportInfo
|
|
123
|
+
attr_accessor name: String?
|
|
124
|
+
attr_accessor kind: ExportKind?
|
|
125
|
+
attr_accessor span: Span?
|
|
126
126
|
|
|
127
127
|
def initialize: (?name: String, ?kind: ExportKind, ?span: Span) -> void
|
|
128
|
-
|
|
128
|
+
end
|
|
129
129
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
130
|
+
class SymbolInfo
|
|
131
|
+
attr_accessor name: String?
|
|
132
|
+
attr_accessor kind: SymbolKind?
|
|
133
|
+
attr_accessor span: Span?
|
|
134
|
+
attr_accessor type_annotation: String?
|
|
135
|
+
attr_accessor doc: String?
|
|
136
136
|
|
|
137
137
|
def initialize: (?name: String, ?kind: SymbolKind, ?span: Span, ?type_annotation: String, ?doc: String) -> void
|
|
138
|
-
|
|
138
|
+
end
|
|
139
139
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
class Diagnostic
|
|
141
|
+
attr_accessor message: String?
|
|
142
|
+
attr_accessor severity: DiagnosticSeverity?
|
|
143
|
+
attr_accessor span: Span?
|
|
144
144
|
|
|
145
145
|
def initialize: (?message: String, ?severity: DiagnosticSeverity, ?span: Span) -> void
|
|
146
|
-
|
|
146
|
+
end
|
|
147
147
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
148
|
+
class CodeChunk
|
|
149
|
+
attr_accessor content: String?
|
|
150
|
+
attr_accessor start_byte: Integer?
|
|
151
|
+
attr_accessor end_byte: Integer?
|
|
152
|
+
attr_accessor start_line: Integer?
|
|
153
|
+
attr_accessor end_line: Integer?
|
|
154
|
+
attr_accessor metadata: ChunkContext?
|
|
155
155
|
|
|
156
156
|
def initialize: (?content: String, ?start_byte: Integer, ?end_byte: Integer, ?start_line: Integer, ?end_line: Integer, ?metadata: ChunkContext) -> void
|
|
157
|
-
|
|
157
|
+
end
|
|
158
158
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
159
|
+
class ChunkContext
|
|
160
|
+
attr_accessor language: String?
|
|
161
|
+
attr_accessor chunk_index: Integer?
|
|
162
|
+
attr_accessor total_chunks: Integer?
|
|
163
163
|
attr_accessor node_types: Array[String]?
|
|
164
164
|
attr_accessor context_path: Array[String]?
|
|
165
165
|
attr_accessor symbols_defined: Array[String]?
|
|
166
166
|
attr_accessor comments: Array[CommentInfo]?
|
|
167
167
|
attr_accessor docstrings: Array[DocstringInfo]?
|
|
168
|
-
|
|
168
|
+
attr_accessor has_error_nodes: bool?
|
|
169
169
|
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
def initialize: (?language: String, ?chunk_index: Integer, ?total_chunks: Integer, ?node_types: Array[String], ?context_path: Array[String], ?symbols_defined: Array[String], ?comments: Array[CommentInfo], ?docstrings: Array[DocstringInfo], ?has_error_nodes: bool) -> void
|
|
171
|
+
end
|
|
172
172
|
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
class PackConfig
|
|
174
|
+
attr_accessor cache_dir: String?
|
|
175
175
|
attr_accessor languages: Array[String]?
|
|
176
176
|
attr_accessor groups: Array[String]?
|
|
177
177
|
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
def initialize: (?cache_dir: String, ?languages: Array[String], ?groups: Array[String]) -> void
|
|
179
|
+
end
|
|
180
180
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
class Point
|
|
182
|
+
attr_reader row: Integer
|
|
183
|
+
attr_reader column: Integer
|
|
184
184
|
|
|
185
185
|
def initialize: (row: Integer, column: Integer) -> void
|
|
186
|
-
|
|
186
|
+
end
|
|
187
187
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
class ByteRange
|
|
189
|
+
attr_reader start: Integer
|
|
190
|
+
attr_reader end: Integer
|
|
191
191
|
|
|
192
192
|
def initialize: (start: Integer, end: Integer) -> void
|
|
193
|
-
|
|
193
|
+
end
|
|
194
194
|
|
|
195
|
-
|
|
195
|
+
class Parser
|
|
196
196
|
def set_language: (String name) -> void
|
|
197
197
|
def parse: (String source) -> Tree?
|
|
198
198
|
def parse_bytes: (String source) -> Tree?
|
|
199
199
|
def reset: () -> void
|
|
200
200
|
def self.new: () -> Parser
|
|
201
201
|
def self.default: () -> Parser
|
|
202
|
-
|
|
202
|
+
end
|
|
203
203
|
|
|
204
|
-
|
|
204
|
+
class Tree
|
|
205
205
|
def root_node: () -> Node
|
|
206
206
|
def walk: () -> TreeCursor
|
|
207
|
-
|
|
207
|
+
end
|
|
208
208
|
|
|
209
|
-
|
|
209
|
+
class Node
|
|
210
210
|
def clone: () -> Node
|
|
211
211
|
def kind: () -> String
|
|
212
212
|
def kind_id: () -> Integer
|
|
@@ -228,27 +228,27 @@ module TreeSitterLanguagePack
|
|
|
228
228
|
def child_by_field_name: (String name) -> Node?
|
|
229
229
|
def to_sexp: () -> String
|
|
230
230
|
def walk: () -> TreeCursor
|
|
231
|
-
|
|
231
|
+
end
|
|
232
232
|
|
|
233
|
-
|
|
233
|
+
class TreeCursor
|
|
234
234
|
def node: () -> Node
|
|
235
235
|
def goto_first_child: () -> bool
|
|
236
236
|
def goto_parent: () -> bool
|
|
237
237
|
def goto_next_sibling: () -> bool
|
|
238
238
|
def field_name: () -> String?
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
class ProcessConfig
|
|
242
|
+
attr_accessor language: String?
|
|
243
|
+
attr_accessor structure: bool?
|
|
244
|
+
attr_accessor imports: bool?
|
|
245
|
+
attr_accessor exports: bool?
|
|
246
|
+
attr_accessor comments: bool?
|
|
247
|
+
attr_accessor docstrings: bool?
|
|
248
|
+
attr_accessor symbols: bool?
|
|
249
|
+
attr_accessor diagnostics: bool?
|
|
250
|
+
attr_accessor chunk_max_size: Integer?
|
|
251
|
+
attr_accessor data_extraction: bool?
|
|
252
252
|
|
|
253
253
|
def initialize: (?language: String, ?structure: bool, ?imports: bool, ?exports: bool, ?comments: bool, ?docstrings: bool, ?symbols: bool, ?diagnostics: bool, ?chunk_max_size: Integer, ?data_extraction: bool) -> void
|
|
254
254
|
def with_chunking: (Integer max_size) -> ProcessConfig
|
|
@@ -256,104 +256,104 @@ module TreeSitterLanguagePack
|
|
|
256
256
|
def minimal: () -> ProcessConfig
|
|
257
257
|
def with_data_extraction: (bool enabled) -> ProcessConfig
|
|
258
258
|
def self.default: () -> ProcessConfig
|
|
259
|
-
|
|
259
|
+
end
|
|
260
260
|
|
|
261
|
-
|
|
261
|
+
class LanguageRegistry
|
|
262
262
|
def get_language: (String name) -> Language
|
|
263
|
-
|
|
263
|
+
def available_languages: () -> Array[String]
|
|
264
264
|
def has_parser: (String name) -> bool
|
|
265
265
|
def has_language: (String name) -> bool
|
|
266
266
|
def language_count: () -> Integer
|
|
267
267
|
def process: (String source, ProcessConfig config) -> ProcessResult
|
|
268
268
|
def self.new: () -> LanguageRegistry
|
|
269
269
|
def self.default: () -> LanguageRegistry
|
|
270
|
-
|
|
270
|
+
end
|
|
271
271
|
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
class DownloadManager
|
|
273
|
+
def installed_languages: () -> Array[String]
|
|
274
274
|
def download_all_best_effort: () -> Integer
|
|
275
275
|
def clean_cache: () -> void
|
|
276
276
|
def self.new: (String version) -> DownloadManager
|
|
277
|
-
|
|
277
|
+
end
|
|
278
278
|
|
|
279
|
-
|
|
280
|
-
|
|
279
|
+
class Language
|
|
280
|
+
end
|
|
281
281
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
class DataNodeKind
|
|
283
|
+
type value = :key_value | :element | :sequence
|
|
284
|
+
end
|
|
285
285
|
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
class StructureKind
|
|
287
|
+
end
|
|
288
288
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
289
|
+
class CommentKind
|
|
290
|
+
type value = :line | :block | :doc
|
|
291
|
+
end
|
|
292
292
|
|
|
293
|
-
|
|
294
|
-
|
|
293
|
+
class DocstringFormat
|
|
294
|
+
end
|
|
295
295
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
296
|
+
class ExportKind
|
|
297
|
+
type value = :named | :default | :re_export
|
|
298
|
+
end
|
|
299
299
|
|
|
300
|
-
|
|
301
|
-
|
|
300
|
+
class SymbolKind
|
|
301
|
+
end
|
|
302
302
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
303
|
+
class DiagnosticSeverity
|
|
304
|
+
type value = :error | :warning | :info
|
|
305
|
+
end
|
|
306
306
|
|
|
307
|
-
|
|
307
|
+
def self.detect_language_from_extension: (String ext) -> String?
|
|
308
308
|
|
|
309
|
-
|
|
309
|
+
def self.detect_language_from_path: (String path) -> String?
|
|
310
310
|
|
|
311
|
-
|
|
311
|
+
def self.detect_language_from_content: (String content) -> String?
|
|
312
312
|
|
|
313
|
-
|
|
313
|
+
def self.get_highlights_query: (String language) -> String?
|
|
314
314
|
|
|
315
|
-
|
|
315
|
+
def self.get_injections_query: (String language) -> String?
|
|
316
316
|
|
|
317
|
-
|
|
317
|
+
def self.get_locals_query: (String language) -> String?
|
|
318
318
|
|
|
319
|
-
|
|
319
|
+
def self.get_tags_query: (String language) -> String?
|
|
320
320
|
|
|
321
|
-
|
|
321
|
+
def self.get_indents_query: (String language) -> String?
|
|
322
322
|
|
|
323
|
-
|
|
323
|
+
def self.get_folds_query: (String language) -> String?
|
|
324
324
|
|
|
325
|
-
|
|
325
|
+
def self.get_language: (String name) -> Language
|
|
326
326
|
|
|
327
|
-
|
|
327
|
+
def self.get_parser: (String name) -> Parser
|
|
328
328
|
|
|
329
|
-
|
|
329
|
+
def self.detect_language: (String path) -> String?
|
|
330
330
|
|
|
331
|
-
|
|
331
|
+
def self.available_languages: () -> Array[String]
|
|
332
332
|
|
|
333
|
-
|
|
333
|
+
def self.has_language: (String name) -> bool
|
|
334
334
|
|
|
335
|
-
|
|
335
|
+
def self.language_count: () -> Integer
|
|
336
336
|
|
|
337
|
-
|
|
337
|
+
def self.process: (String source, ProcessConfig config) -> ProcessResult
|
|
338
338
|
|
|
339
|
-
|
|
339
|
+
def self.init: (PackConfig config) -> void
|
|
340
340
|
|
|
341
|
-
|
|
341
|
+
def self.configure: (PackConfig config) -> void
|
|
342
342
|
|
|
343
|
-
|
|
343
|
+
def self.download: (Array[String] names) -> Integer
|
|
344
344
|
|
|
345
|
-
|
|
345
|
+
def self.prefetch: (Array[String] languages) -> void
|
|
346
346
|
|
|
347
|
-
|
|
347
|
+
def self.download_all: () -> Integer
|
|
348
348
|
|
|
349
|
-
|
|
349
|
+
def self.download_group: (String name) -> Integer
|
|
350
350
|
|
|
351
|
-
|
|
351
|
+
def self.manifest_languages: () -> Array[String]
|
|
352
352
|
|
|
353
|
-
|
|
353
|
+
def self.downloaded_languages: () -> Array[String]
|
|
354
354
|
|
|
355
|
-
|
|
355
|
+
def self.clean_cache: () -> void
|
|
356
356
|
|
|
357
|
-
|
|
357
|
+
def self.cache_dir: () -> String
|
|
358
358
|
|
|
359
359
|
end
|