tree_sitter_language_pack 1.8.0.pre.rc.26-x86_64-linux → 1.8.0.pre.rc.28-x86_64-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/Steepfile +6 -0
- data/lib/ts_pack_core_rb.so +0 -0
- data/sig/types.rbs +433 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a8e5dff294c9f5ea2e1ce6b2e622fad62df8dd0b8a4e38026135e5566a825c0c
|
|
4
|
+
data.tar.gz: a2ac0a696063aed00c221aaf583637a268116ccc861e7d11fa46af5c2b8970a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cdcd8c698a20670d8aab18c68868a254d9648e4fca3afe903d45578df0dedbf8968cbf50ee4c046078592e8ae66bd3185d0dafbd9ea2b58b1b7cbcfc70a54326
|
|
7
|
+
data.tar.gz: 82bdb0b8835e2edfe1101813de6f2752ca3886e8e6baeec94a87ff50dbc5d8a2a4ff61dc0a0db6c70bf27def5376baf548cc2910f10c4fb9c18568665dfdd574
|
data/Steepfile
ADDED
data/lib/ts_pack_core_rb.so
CHANGED
|
Binary file
|
data/sig/types.rbs
ADDED
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
+
# alef:hash:0d3b300eefcfbd6c7811b0c13ecea1a68184c4a48894a7ba4291d66c0ded69c5
|
|
3
|
+
# To regenerate: alef generate
|
|
4
|
+
# To verify freshness: alef verify --exit-code
|
|
5
|
+
# Issues & docs: https://github.com/kreuzberg-dev/alef
|
|
6
|
+
|
|
7
|
+
module Tree_sitter_language_pack
|
|
8
|
+
|
|
9
|
+
VERSION: String
|
|
10
|
+
|
|
11
|
+
class Span
|
|
12
|
+
# Byte and line/column range in source code.
|
|
13
|
+
#
|
|
14
|
+
# Represents both byte offsets (for slicing) and human-readable line/column
|
|
15
|
+
# positions (for display and diagnostics).
|
|
16
|
+
|
|
17
|
+
attr_accessor start_byte: Integer?
|
|
18
|
+
attr_accessor end_byte: Integer?
|
|
19
|
+
attr_accessor start_line: Integer?
|
|
20
|
+
attr_accessor start_column: Integer?
|
|
21
|
+
attr_accessor end_line: Integer?
|
|
22
|
+
attr_accessor end_column: Integer?
|
|
23
|
+
|
|
24
|
+
def initialize: (start_byte: Integer, end_byte: Integer, start_line: Integer, start_column: Integer, end_line: Integer, end_column: Integer) -> void
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
class ProcessResult
|
|
28
|
+
# Complete analysis result from processing a source file.
|
|
29
|
+
#
|
|
30
|
+
# Contains metrics, structural analysis, imports/exports, comments,
|
|
31
|
+
# docstrings, symbols, diagnostics, and optionally chunked code segments.
|
|
32
|
+
# Fields are populated based on the `ProcessConfig` flags.
|
|
33
|
+
#
|
|
34
|
+
# # Fields
|
|
35
|
+
#
|
|
36
|
+
# - `language` - The language used for parsing
|
|
37
|
+
# - `metrics` - Always computed: line counts, byte sizes, error counts
|
|
38
|
+
# - `structure` - Functions, classes, structs (when `config.structure = true`)
|
|
39
|
+
# - `imports` - Import statements (when `config.imports = true`)
|
|
40
|
+
# - `exports` - Export statements (when `config.exports = true`)
|
|
41
|
+
# - `comments` - Comments (when `config.comments = true`)
|
|
42
|
+
# - `docstrings` - Docstrings (when `config.docstrings = true`)
|
|
43
|
+
# - `symbols` - Symbol definitions (when `config.symbols = true`)
|
|
44
|
+
# - `diagnostics` - Parse errors (when `config.diagnostics = true`)
|
|
45
|
+
# - `chunks` - Chunked code segments (when `config.chunk_max_size` is set)
|
|
46
|
+
|
|
47
|
+
attr_accessor language: String?
|
|
48
|
+
attr_accessor metrics: FileMetrics?
|
|
49
|
+
attr_accessor structure: Array[StructureItem]?
|
|
50
|
+
attr_accessor imports: Array[ImportInfo]?
|
|
51
|
+
attr_accessor exports: Array[ExportInfo]?
|
|
52
|
+
attr_accessor comments: Array[CommentInfo]?
|
|
53
|
+
attr_accessor docstrings: Array[DocstringInfo]?
|
|
54
|
+
attr_accessor symbols: Array[SymbolInfo]?
|
|
55
|
+
attr_accessor diagnostics: Array[Diagnostic]?
|
|
56
|
+
attr_accessor chunks: Array[CodeChunk]?
|
|
57
|
+
|
|
58
|
+
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]) -> void
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
class FileMetrics
|
|
62
|
+
# Aggregate metrics for a source file.
|
|
63
|
+
|
|
64
|
+
attr_accessor total_lines: Integer?
|
|
65
|
+
attr_accessor code_lines: Integer?
|
|
66
|
+
attr_accessor comment_lines: Integer?
|
|
67
|
+
attr_accessor blank_lines: Integer?
|
|
68
|
+
attr_accessor total_bytes: Integer?
|
|
69
|
+
attr_accessor node_count: Integer?
|
|
70
|
+
attr_accessor error_count: Integer?
|
|
71
|
+
attr_accessor max_depth: Integer?
|
|
72
|
+
|
|
73
|
+
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
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
class StructureItem
|
|
77
|
+
# A structural item (function, class, struct, etc.) in source code.
|
|
78
|
+
|
|
79
|
+
attr_accessor kind: StructureKind?
|
|
80
|
+
attr_accessor name: String?
|
|
81
|
+
attr_accessor visibility: String?
|
|
82
|
+
attr_accessor span: Span?
|
|
83
|
+
attr_accessor children: Array[StructureItem]?
|
|
84
|
+
attr_accessor decorators: Array[String]?
|
|
85
|
+
attr_accessor doc_comment: String?
|
|
86
|
+
attr_accessor signature: String?
|
|
87
|
+
attr_accessor body_span: Span?
|
|
88
|
+
|
|
89
|
+
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
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
class CommentInfo
|
|
93
|
+
# A comment extracted from source code.
|
|
94
|
+
|
|
95
|
+
attr_accessor text: String?
|
|
96
|
+
attr_accessor kind: CommentKind?
|
|
97
|
+
attr_accessor span: Span?
|
|
98
|
+
attr_accessor associated_node: String?
|
|
99
|
+
|
|
100
|
+
def initialize: (text: String, kind: CommentKind, span: Span, ?associated_node: String) -> void
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
class DocstringInfo
|
|
104
|
+
# A docstring extracted from source code.
|
|
105
|
+
|
|
106
|
+
attr_accessor text: String?
|
|
107
|
+
attr_accessor format: DocstringFormat?
|
|
108
|
+
attr_accessor span: Span?
|
|
109
|
+
attr_accessor associated_item: String?
|
|
110
|
+
attr_accessor parsed_sections: Array[DocSection]?
|
|
111
|
+
|
|
112
|
+
def initialize: (text: String, format: DocstringFormat, span: Span, ?associated_item: String, parsed_sections: Array[DocSection]) -> void
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
class DocSection
|
|
116
|
+
# A section within a docstring (e.g., Args, Returns, Raises).
|
|
117
|
+
|
|
118
|
+
attr_accessor kind: String?
|
|
119
|
+
attr_accessor name: String?
|
|
120
|
+
attr_accessor description: String?
|
|
121
|
+
|
|
122
|
+
def initialize: (kind: String, ?name: String, description: String) -> void
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
class ImportInfo
|
|
126
|
+
# An import statement extracted from source code.
|
|
127
|
+
|
|
128
|
+
attr_accessor source: String?
|
|
129
|
+
attr_accessor items: Array[String]?
|
|
130
|
+
attr_accessor alias: String?
|
|
131
|
+
attr_accessor is_wildcard: bool?
|
|
132
|
+
attr_accessor span: Span?
|
|
133
|
+
|
|
134
|
+
def initialize: (source: String, items: Array[String], ?alias: String, is_wildcard: bool, span: Span) -> void
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
class ExportInfo
|
|
138
|
+
# An export statement extracted from source code.
|
|
139
|
+
|
|
140
|
+
attr_accessor name: String?
|
|
141
|
+
attr_accessor kind: ExportKind?
|
|
142
|
+
attr_accessor span: Span?
|
|
143
|
+
|
|
144
|
+
def initialize: (name: String, kind: ExportKind, span: Span) -> void
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
class SymbolInfo
|
|
148
|
+
# A symbol (variable, function, type, etc.) extracted from source code.
|
|
149
|
+
|
|
150
|
+
attr_accessor name: String?
|
|
151
|
+
attr_accessor kind: SymbolKind?
|
|
152
|
+
attr_accessor span: Span?
|
|
153
|
+
attr_accessor type_annotation: String?
|
|
154
|
+
attr_accessor doc: String?
|
|
155
|
+
|
|
156
|
+
def initialize: (name: String, kind: SymbolKind, span: Span, ?type_annotation: String, ?doc: String) -> void
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
class Diagnostic
|
|
160
|
+
# A diagnostic (syntax error, missing node, etc.) from parsing.
|
|
161
|
+
|
|
162
|
+
attr_accessor message: String?
|
|
163
|
+
attr_accessor severity: DiagnosticSeverity?
|
|
164
|
+
attr_accessor span: Span?
|
|
165
|
+
|
|
166
|
+
def initialize: (message: String, severity: DiagnosticSeverity, span: Span) -> void
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
class CodeChunk
|
|
170
|
+
# A chunk of source code with rich metadata.
|
|
171
|
+
|
|
172
|
+
attr_accessor content: String?
|
|
173
|
+
attr_accessor start_byte: Integer?
|
|
174
|
+
attr_accessor end_byte: Integer?
|
|
175
|
+
attr_accessor start_line: Integer?
|
|
176
|
+
attr_accessor end_line: Integer?
|
|
177
|
+
attr_accessor metadata: ChunkContext?
|
|
178
|
+
|
|
179
|
+
def initialize: (content: String, start_byte: Integer, end_byte: Integer, start_line: Integer, end_line: Integer, metadata: ChunkContext) -> void
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
class ChunkContext
|
|
183
|
+
# Metadata for a single chunk of source code.
|
|
184
|
+
|
|
185
|
+
attr_accessor language: String?
|
|
186
|
+
attr_accessor chunk_index: Integer?
|
|
187
|
+
attr_accessor total_chunks: Integer?
|
|
188
|
+
attr_accessor node_types: Array[String]?
|
|
189
|
+
attr_accessor context_path: Array[String]?
|
|
190
|
+
attr_accessor symbols_defined: Array[String]?
|
|
191
|
+
attr_accessor comments: Array[CommentInfo]?
|
|
192
|
+
attr_accessor docstrings: Array[DocstringInfo]?
|
|
193
|
+
attr_accessor has_error_nodes: bool?
|
|
194
|
+
|
|
195
|
+
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
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
class PackConfig
|
|
199
|
+
# Configuration for the tree-sitter language pack.
|
|
200
|
+
#
|
|
201
|
+
# Controls cache directory and which languages to pre-download.
|
|
202
|
+
# Can be loaded from a TOML file, constructed programmatically,
|
|
203
|
+
# or passed as a dict/object from language bindings.
|
|
204
|
+
#
|
|
205
|
+
# # Example
|
|
206
|
+
#
|
|
207
|
+
# ```no_run
|
|
208
|
+
# use tree_sitter_language_pack::PackConfig;
|
|
209
|
+
#
|
|
210
|
+
# let config = PackConfig {
|
|
211
|
+
# cache_dir: None,
|
|
212
|
+
# languages: Some(vec!["python".to_string(), "rust".to_string()]),
|
|
213
|
+
# groups: None,
|
|
214
|
+
# };
|
|
215
|
+
# ```
|
|
216
|
+
|
|
217
|
+
attr_accessor cache_dir: String?
|
|
218
|
+
attr_accessor languages: Array[String]?
|
|
219
|
+
attr_accessor groups: Array[String]?
|
|
220
|
+
|
|
221
|
+
def initialize: (?cache_dir: String, ?languages: Array[String], ?groups: Array[String]) -> void
|
|
222
|
+
def self.from_toml_file: (String path) -> PackConfig
|
|
223
|
+
def self.discover: () -> PackConfig?
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
class ProcessConfig
|
|
227
|
+
# Configuration for the `process()` function.
|
|
228
|
+
#
|
|
229
|
+
# Controls which analysis features are enabled and whether chunking is performed.
|
|
230
|
+
#
|
|
231
|
+
# # Examples
|
|
232
|
+
#
|
|
233
|
+
# ```
|
|
234
|
+
# use tree_sitter_language_pack::ProcessConfig;
|
|
235
|
+
#
|
|
236
|
+
# // Defaults: structure + imports + exports enabled
|
|
237
|
+
# let config = ProcessConfig::new("python");
|
|
238
|
+
#
|
|
239
|
+
# // With chunking
|
|
240
|
+
# let config = ProcessConfig::new("python").with_chunking(1000);
|
|
241
|
+
#
|
|
242
|
+
# // Everything enabled
|
|
243
|
+
# let config = ProcessConfig::new("python").all();
|
|
244
|
+
# ```
|
|
245
|
+
|
|
246
|
+
attr_accessor language: String?
|
|
247
|
+
attr_accessor structure: bool?
|
|
248
|
+
attr_accessor imports: bool?
|
|
249
|
+
attr_accessor exports: bool?
|
|
250
|
+
attr_accessor comments: bool?
|
|
251
|
+
attr_accessor docstrings: bool?
|
|
252
|
+
attr_accessor symbols: bool?
|
|
253
|
+
attr_accessor diagnostics: bool?
|
|
254
|
+
attr_accessor chunk_max_size: Integer?
|
|
255
|
+
|
|
256
|
+
def initialize: (language: String, structure: bool, imports: bool, exports: bool, comments: bool, docstrings: bool, symbols: bool, diagnostics: bool, ?chunk_max_size: Integer) -> void
|
|
257
|
+
def with_chunking: (Integer max_size) -> ProcessConfig
|
|
258
|
+
def all: () -> ProcessConfig
|
|
259
|
+
def minimal: () -> ProcessConfig
|
|
260
|
+
def self.default: () -> ProcessConfig
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
class LanguageRegistry
|
|
264
|
+
# Thread-safe registry of tree-sitter language parsers.
|
|
265
|
+
#
|
|
266
|
+
# Manages both statically compiled and dynamically loaded language grammars.
|
|
267
|
+
# Use [`LanguageRegistry::new()`] for the default registry, or access the
|
|
268
|
+
# global instance via the module-level convenience functions
|
|
269
|
+
# (`get_language`, `available_languages`, etc.).
|
|
270
|
+
#
|
|
271
|
+
# # Example
|
|
272
|
+
#
|
|
273
|
+
# ```no_run
|
|
274
|
+
# use tree_sitter_language_pack::{LanguageRegistry, ProcessConfig};
|
|
275
|
+
#
|
|
276
|
+
# let registry = LanguageRegistry::new();
|
|
277
|
+
# let langs = registry.available_languages();
|
|
278
|
+
# println!("Available: {:?}", langs);
|
|
279
|
+
#
|
|
280
|
+
# let config = ProcessConfig::new("python").all();
|
|
281
|
+
# let result = registry.process("def hello(): pass", &config).unwrap();
|
|
282
|
+
# println!("Structure: {:?}", result.structure);
|
|
283
|
+
# ```
|
|
284
|
+
|
|
285
|
+
def add_extra_libs_dir: (String dir) -> void
|
|
286
|
+
def get_language: (String name) -> Language
|
|
287
|
+
def available_languages: () -> Array[String]
|
|
288
|
+
def has_language: (String name) -> bool
|
|
289
|
+
def language_count: () -> Integer
|
|
290
|
+
def process: (String source, ProcessConfig config) -> ProcessResult
|
|
291
|
+
def self.with_libs_dir: (String libs_dir) -> LanguageRegistry
|
|
292
|
+
def self.default: () -> LanguageRegistry
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
class ParserManifest
|
|
296
|
+
# Manifest describing available parser downloads for a specific version.
|
|
297
|
+
|
|
298
|
+
attr_reader version: String
|
|
299
|
+
attr_reader platforms: Hash[String, PlatformBundle]
|
|
300
|
+
attr_reader languages: Hash[String, LanguageInfo]
|
|
301
|
+
attr_reader groups: Hash[String, Array[String]]
|
|
302
|
+
|
|
303
|
+
def initialize: (version: String, platforms: Hash[String, PlatformBundle], languages: Hash[String, LanguageInfo], groups: Hash[String, Array[String]]) -> void
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
class PlatformBundle
|
|
307
|
+
attr_reader url: String
|
|
308
|
+
attr_reader sha256: String
|
|
309
|
+
attr_reader size: Integer
|
|
310
|
+
|
|
311
|
+
def initialize: (url: String, sha256: String, size: Integer) -> void
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
class LanguageInfo
|
|
315
|
+
attr_reader group: String
|
|
316
|
+
attr_reader size: Integer
|
|
317
|
+
|
|
318
|
+
def initialize: (group: String, size: Integer) -> void
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
class DownloadManager
|
|
322
|
+
# Manages downloading and caching of pre-built parser shared libraries.
|
|
323
|
+
|
|
324
|
+
def cache_dir: () -> String
|
|
325
|
+
def installed_languages: () -> Array[String]
|
|
326
|
+
def ensure_languages: (Array[String] names) -> void
|
|
327
|
+
def ensure_group: (String group) -> void
|
|
328
|
+
def lib_path: (String name) -> String
|
|
329
|
+
def fetch_manifest: () -> ParserManifest
|
|
330
|
+
def download_all_best_effort: () -> Integer
|
|
331
|
+
def clean_cache: () -> void
|
|
332
|
+
def self.new: (String version) -> DownloadManager
|
|
333
|
+
def self.with_cache_dir: (String version, String cache_dir) -> DownloadManager
|
|
334
|
+
def self.default_cache_dir: (String version) -> String
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
class Language
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
class Parser
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
class Tree
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
class StructureKind
|
|
347
|
+
# The kind of structural item found in source code.
|
|
348
|
+
#
|
|
349
|
+
# Categorizes top-level and nested declarations such as functions, classes,
|
|
350
|
+
# structs, enums, traits, and more. Use [`Other`](StructureKind::Other) for
|
|
351
|
+
# language-specific constructs that do not fit a standard category.
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
class CommentKind
|
|
355
|
+
# The kind of a comment found in source code.
|
|
356
|
+
#
|
|
357
|
+
# Distinguishes between single-line comments, block (multi-line) comments,
|
|
358
|
+
# and documentation comments.
|
|
359
|
+
type instance = :line | :block | :doc
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
class DocstringFormat
|
|
363
|
+
# The format of a docstring extracted from source code.
|
|
364
|
+
#
|
|
365
|
+
# Identifies the docstring convention used, which varies by language
|
|
366
|
+
# (e.g., Python triple-quoted strings, JSDoc, Rustdoc `///` comments).
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
class ExportKind
|
|
370
|
+
# The kind of an export statement found in source code.
|
|
371
|
+
#
|
|
372
|
+
# Covers named exports, default exports, and re-exports from other modules.
|
|
373
|
+
type instance = :named | :default | :re_export
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
class SymbolKind
|
|
377
|
+
# The kind of a symbol definition found in source code.
|
|
378
|
+
#
|
|
379
|
+
# Categorizes symbol definitions such as variables, constants, functions,
|
|
380
|
+
# classes, types, interfaces, enums, and modules.
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
class DiagnosticSeverity
|
|
384
|
+
# Severity level of a diagnostic produced during parsing.
|
|
385
|
+
#
|
|
386
|
+
# Used to classify parse errors, warnings, and informational messages
|
|
387
|
+
# found in the syntax tree.
|
|
388
|
+
type instance = :error | :warning | :info
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
def self.detect_language_from_extension: (String ext) -> String?
|
|
392
|
+
|
|
393
|
+
def self.detect_language_from_path: (String path) -> String?
|
|
394
|
+
|
|
395
|
+
def self.detect_language_from_content: (String content) -> String?
|
|
396
|
+
|
|
397
|
+
def self.get_highlights_query: (String language) -> String?
|
|
398
|
+
|
|
399
|
+
def self.get_injections_query: (String language) -> String?
|
|
400
|
+
|
|
401
|
+
def self.get_locals_query: (String language) -> String?
|
|
402
|
+
|
|
403
|
+
def self.get_language: (String name) -> Language
|
|
404
|
+
|
|
405
|
+
def self.get_parser: (String name) -> Parser
|
|
406
|
+
|
|
407
|
+
def self.detect_language: (String path) -> String?
|
|
408
|
+
|
|
409
|
+
def self.available_languages: () -> Array[String]
|
|
410
|
+
|
|
411
|
+
def self.has_language: (String name) -> bool
|
|
412
|
+
|
|
413
|
+
def self.language_count: () -> Integer
|
|
414
|
+
|
|
415
|
+
def self.process: (String source, ProcessConfig config) -> ProcessResult
|
|
416
|
+
|
|
417
|
+
def self.init: (PackConfig config) -> void
|
|
418
|
+
|
|
419
|
+
def self.configure: (PackConfig config) -> void
|
|
420
|
+
|
|
421
|
+
def self.download: (Array[String] names) -> Integer
|
|
422
|
+
|
|
423
|
+
def self.download_all: () -> Integer
|
|
424
|
+
|
|
425
|
+
def self.manifest_languages: () -> Array[String]
|
|
426
|
+
|
|
427
|
+
def self.downloaded_languages: () -> Array[String]
|
|
428
|
+
|
|
429
|
+
def self.clean_cache: () -> void
|
|
430
|
+
|
|
431
|
+
def self.cache_dir: () -> String
|
|
432
|
+
|
|
433
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tree_sitter_language_pack
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.8.0.pre.rc.
|
|
4
|
+
version: 1.8.0.pre.rc.28
|
|
5
5
|
platform: x86_64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Kreuzberg Team
|
|
@@ -14,8 +14,10 @@ executables: []
|
|
|
14
14
|
extensions: []
|
|
15
15
|
extra_rdoc_files: []
|
|
16
16
|
files:
|
|
17
|
+
- Steepfile
|
|
17
18
|
- lib/tree_sitter_language_pack.rb
|
|
18
19
|
- lib/ts_pack_core_rb.so
|
|
20
|
+
- sig/types.rbs
|
|
19
21
|
homepage: https://github.com/kreuzberg-dev/tree-sitter-language-pack
|
|
20
22
|
licenses:
|
|
21
23
|
- MIT
|