tree_sitter_language_pack 1.8.0.pre.rc.44-aarch64-linux → 1.9.0.pre.rc.1-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3cba8a04a9c6f609e0709b1b4d20bb0685e630c575bd802caa518ceba8512e80
4
- data.tar.gz: e9e1d028ecc3476e8dc52315d08e69281cb99b16ffe63e1e325d23761b29a499
3
+ metadata.gz: 37ded7522def6ef0f3b74bd2136539ec971cbff1f7adff5835e7d84f08bfeeee
4
+ data.tar.gz: 82373efb5a45823b87bec5b8efe2a81a787c180d06ac43ffb3de4c75afd64ded
5
5
  SHA512:
6
- metadata.gz: 0c3bd1bcfb0b989f6f72dc75b9b831f0b464d75ffdca8511fd8e184933ac8ffbe0f0e494184133d823c278bd8f736635fe107b0ef2d037596dac37f058f1f34c
7
- data.tar.gz: ce4e0e5f3c4421b7581412aa0f2516e17ad57a581dec4ee51d0b63b483036dd0657d82e6b948e1fddc6c1cb4a7cedd1b743ce0d9af99def0fa9fa43cb284f703
6
+ metadata.gz: 30202794edabfc3509f854e00dee6c741507fc4a188e9f542136845dd91124a68c7e2f1c24e4018f7132cd37a6811352a9554ef3d6b69e49898d58250c5f08b8
7
+ data.tar.gz: 3127462b66f4765eb2cce05671e85e71a7058bfb7931997ed648987c571bfa1d520c0d615b74992930a5b62e0c25fc490692e72c563370cbedce61f0fc870938
@@ -1,46 +1,10 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:f1cee06ff8900ef2d958db4c1c0a5cb8d233243dfa3834f678c826f070dc817d
2
+ # alef:hash:7c2ad6574f6e1041a85475b2fb60302a621b00af3af9ae49ceacb610d7676405
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
  # Issues & docs: https://github.com/kreuzberg-dev/alef
6
6
  # frozen_string_literal: true
7
7
 
8
8
  require 'json'
9
+ require 'sorbet-runtime'
9
10
  require 'ts_pack_core_rb'
10
-
11
- # Add accessor methods to Hash-based internally-tagged enum instances
12
- class Hash
13
- # Support internally-tagged enum accessors like format.excel, format.email, etc.
14
- # Also support direct field access like format.sheet_count
15
- # rubocop:disable Metrics/CyclomaticComplexity
16
- def method_missing(method_name, *args, &)
17
- # Try symbol key first (how Magnus converts JSON keys)
18
- return self[method_name] if key?(method_name)
19
-
20
- # Try string key
21
- return self[method_name.to_s] if key?(method_name.to_s)
22
-
23
- # Check if this hash has a 'format_type' field (indicating an internally-tagged enum)
24
- format_type = self[:format_type] || self['format_type']
25
- return super unless format_type
26
-
27
- # If the method name matches the format_type (snake_case), extract and return the variant's wrapped data
28
- # Internally-tagged enums store variant data in the '_0' field (from alef's struct variant conversion)
29
- # This allows format.excel to return the ExcelMetadata hash with sheet_count, sheet_names, etc.
30
- snake_case_method = method_name.to_s.downcase
31
- return self[:_0] || self['_0'] || self if snake_case_method == format_type.to_s.downcase
32
-
33
- super
34
- end
35
- # rubocop:enable Metrics/CyclomaticComplexity
36
-
37
- def respond_to_missing?(method_name, include_private = false)
38
- return true if key?(method_name) || key?(method_name.to_s)
39
-
40
- format_type = self[:format_type] || self['format_type']
41
- return false unless format_type
42
-
43
- snake_case_method = method_name.to_s.downcase
44
- snake_case_method == format_type.to_s.downcase || super
45
- end
46
- end
@@ -1,10 +1,10 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:e0342931f53b51d8116ea5c8a064e3acc1783cc8acd0d0fe337866407e99f370
2
+ # alef:hash:f59a823c8d8df1cdf7d69cf9c267cfb7bc2b517fae98b3ce9c6ad6705aa819a2
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
  # Issues & docs: https://github.com/kreuzberg-dev/alef
6
6
  # frozen_string_literal: true
7
7
 
8
8
  module TreeSitterLanguagePack
9
- VERSION = '1.8.0.pre.rc.44'
9
+ VERSION = '1.9.0.pre.rc.1'
10
10
  end
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:d6b009b67f6b2b81396e42b3a3a93d5a0ad50e680621fbda45fed6329de157df
2
+ # alef:hash:dce0f2e0284f3f3b1b08ac2169c6eeef5ef1360cae2c75f8de2ea6411168295c
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
  # Issues & docs: https://github.com/kreuzberg-dev/alef
Binary file
data/sig/types.rbs CHANGED
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:3cbc9b7f5a084fe4fe656040ca379c3bbdd7a966ad4403cba58d0411a75cce07
2
+ # alef:hash:1d153369b7f668c63ef3a8277fe5de7e97f9d2457252de1b05aedb9fe0ab44fc
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
  # Issues & docs: https://github.com/kreuzberg-dev/alef
@@ -8,12 +8,10 @@ module TreeSitterLanguagePack
8
8
 
9
9
  VERSION: String
10
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).
11
+ type json_value = Hash[String, untyped] | Array[untyped] | String | Integer | Float | bool | nil
12
+ type JsonValue = json_value
16
13
 
14
+ class Span
17
15
  attr_accessor start_byte: Integer?
18
16
  attr_accessor end_byte: Integer?
19
17
  attr_accessor start_line: Integer?
@@ -21,29 +19,10 @@ module TreeSitterLanguagePack
21
19
  attr_accessor end_line: Integer?
22
20
  attr_accessor end_column: Integer?
23
21
 
24
- def initialize: (start_byte: Integer, end_byte: Integer, start_line: Integer, start_column: Integer, end_line: Integer, end_column: Integer) -> void
22
+ def initialize: (?start_byte: Integer, ?end_byte: Integer, ?start_line: Integer, ?start_column: Integer, ?end_line: Integer, ?end_column: Integer) -> void
25
23
  end
26
24
 
27
25
  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
26
  attr_accessor language: String?
48
27
  attr_accessor metrics: FileMetrics?
49
28
  attr_accessor structure: Array[StructureItem]?
@@ -55,12 +34,10 @@ module TreeSitterLanguagePack
55
34
  attr_accessor diagnostics: Array[Diagnostic]?
56
35
  attr_accessor chunks: Array[CodeChunk]?
57
36
 
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
37
+ 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
38
  end
60
39
 
61
40
  class FileMetrics
62
- # Aggregate metrics for a source file.
63
-
64
41
  attr_accessor total_lines: Integer?
65
42
  attr_accessor code_lines: Integer?
66
43
  attr_accessor comment_lines: Integer?
@@ -70,12 +47,10 @@ module TreeSitterLanguagePack
70
47
  attr_accessor error_count: Integer?
71
48
  attr_accessor max_depth: Integer?
72
49
 
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
50
+ 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
51
  end
75
52
 
76
53
  class StructureItem
77
- # A structural item (function, class, struct, etc.) in source code.
78
-
79
54
  attr_accessor kind: StructureKind?
80
55
  attr_accessor name: String?
81
56
  attr_accessor visibility: String?
@@ -86,89 +61,73 @@ module TreeSitterLanguagePack
86
61
  attr_accessor signature: String?
87
62
  attr_accessor body_span: Span?
88
63
 
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
64
+ 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
65
  end
91
66
 
92
67
  class CommentInfo
93
- # A comment extracted from source code.
94
-
95
68
  attr_accessor text: String?
96
69
  attr_accessor kind: CommentKind?
97
70
  attr_accessor span: Span?
98
71
  attr_accessor associated_node: String?
99
72
 
100
- def initialize: (text: String, kind: CommentKind, span: Span, ?associated_node: String) -> void
73
+ def initialize: (?text: String, ?kind: CommentKind, ?span: Span, ?associated_node: String) -> void
101
74
  end
102
75
 
103
76
  class DocstringInfo
104
- # A docstring extracted from source code.
105
-
106
77
  attr_accessor text: String?
107
78
  attr_accessor format: DocstringFormat?
108
79
  attr_accessor span: Span?
109
80
  attr_accessor associated_item: String?
110
81
  attr_accessor parsed_sections: Array[DocSection]?
111
82
 
112
- def initialize: (text: String, format: DocstringFormat, span: Span, ?associated_item: String, parsed_sections: Array[DocSection]) -> void
83
+ def initialize: (?text: String, ?format: DocstringFormat, ?span: Span, ?associated_item: String, ?parsed_sections: Array[DocSection]) -> void
113
84
  end
114
85
 
115
86
  class DocSection
116
- # A section within a docstring (e.g., Args, Returns, Raises).
117
-
118
87
  attr_accessor kind: String?
119
88
  attr_accessor name: String?
120
89
  attr_accessor description: String?
121
90
 
122
- def initialize: (kind: String, ?name: String, description: String) -> void
91
+ def initialize: (?kind: String, ?name: String, ?description: String) -> void
123
92
  end
124
93
 
125
94
  class ImportInfo
126
- # An import statement extracted from source code.
127
-
128
95
  attr_accessor source: String?
129
96
  attr_accessor items: Array[String]?
130
97
  attr_accessor alias: String?
131
98
  attr_accessor is_wildcard: bool?
132
99
  attr_accessor span: Span?
133
100
 
134
- def initialize: (source: String, items: Array[String], ?alias: String, is_wildcard: bool, span: Span) -> void
101
+ def initialize: (?source: String, ?items: Array[String], ?alias: String, ?is_wildcard: bool, ?span: Span) -> void
135
102
  end
136
103
 
137
104
  class ExportInfo
138
- # An export statement extracted from source code.
139
-
140
105
  attr_accessor name: String?
141
106
  attr_accessor kind: ExportKind?
142
107
  attr_accessor span: Span?
143
108
 
144
- def initialize: (name: String, kind: ExportKind, span: Span) -> void
109
+ def initialize: (?name: String, ?kind: ExportKind, ?span: Span) -> void
145
110
  end
146
111
 
147
112
  class SymbolInfo
148
- # A symbol (variable, function, type, etc.) extracted from source code.
149
-
150
113
  attr_accessor name: String?
151
114
  attr_accessor kind: SymbolKind?
152
115
  attr_accessor span: Span?
153
116
  attr_accessor type_annotation: String?
154
117
  attr_accessor doc: String?
155
118
 
156
- def initialize: (name: String, kind: SymbolKind, span: Span, ?type_annotation: String, ?doc: String) -> void
119
+ def initialize: (?name: String, ?kind: SymbolKind, ?span: Span, ?type_annotation: String, ?doc: String) -> void
157
120
  end
158
121
 
159
122
  class Diagnostic
160
- # A diagnostic (syntax error, missing node, etc.) from parsing.
161
-
162
123
  attr_accessor message: String?
163
124
  attr_accessor severity: DiagnosticSeverity?
164
125
  attr_accessor span: Span?
165
126
 
166
- def initialize: (message: String, severity: DiagnosticSeverity, span: Span) -> void
127
+ def initialize: (?message: String, ?severity: DiagnosticSeverity, ?span: Span) -> void
167
128
  end
168
129
 
169
130
  class CodeChunk
170
- # A chunk of source code with rich metadata.
171
-
172
131
  attr_accessor content: String?
173
132
  attr_accessor start_byte: Integer?
174
133
  attr_accessor end_byte: Integer?
@@ -176,12 +135,10 @@ module TreeSitterLanguagePack
176
135
  attr_accessor end_line: Integer?
177
136
  attr_accessor metadata: ChunkContext?
178
137
 
179
- def initialize: (content: String, start_byte: Integer, end_byte: Integer, start_line: Integer, end_line: Integer, metadata: ChunkContext) -> void
138
+ def initialize: (?content: String, ?start_byte: Integer, ?end_byte: Integer, ?start_line: Integer, ?end_line: Integer, ?metadata: ChunkContext) -> void
180
139
  end
181
140
 
182
141
  class ChunkContext
183
- # Metadata for a single chunk of source code.
184
-
185
142
  attr_accessor language: String?
186
143
  attr_accessor chunk_index: Integer?
187
144
  attr_accessor total_chunks: Integer?
@@ -192,57 +149,77 @@ module TreeSitterLanguagePack
192
149
  attr_accessor docstrings: Array[DocstringInfo]?
193
150
  attr_accessor has_error_nodes: bool?
194
151
 
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
152
+ 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
153
  end
197
154
 
198
155
  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
156
  attr_accessor cache_dir: String?
218
157
  attr_accessor languages: Array[String]?
219
158
  attr_accessor groups: Array[String]?
220
159
 
221
160
  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
161
  end
225
162
 
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
- # ```
163
+ class Point
164
+ attr_reader row: Integer
165
+ attr_reader column: Integer
166
+
167
+ def initialize: (row: Integer, column: Integer) -> void
168
+ end
169
+
170
+ class ByteRange
171
+ attr_reader start: Integer
172
+ attr_reader end: Integer
173
+
174
+ def initialize: (start: Integer, end: Integer) -> void
175
+ end
176
+
177
+ class Parser
178
+ def set_language: (String name) -> void
179
+ def parse: (String source) -> Tree?
180
+ def parse_bytes: (String source) -> Tree?
181
+ def reset: () -> void
182
+ def self.default: () -> Parser
183
+ end
184
+
185
+ class Tree
186
+ def root_node: () -> Node
187
+ def walk: () -> TreeCursor
188
+ end
189
+
190
+ class Node
191
+ def clone: () -> Node
192
+ def kind: () -> String
193
+ def kind_id: () -> Integer
194
+ def start_byte: () -> Integer
195
+ def end_byte: () -> Integer
196
+ def byte_range: () -> ByteRange
197
+ def start_position: () -> Point
198
+ def end_position: () -> Point
199
+ def is_named: () -> bool
200
+ def is_error: () -> bool
201
+ def is_missing: () -> bool
202
+ def is_extra: () -> bool
203
+ def has_error: () -> bool
204
+ def parent: () -> Node?
205
+ def child: (Integer index) -> Node?
206
+ def child_count: () -> Integer
207
+ def named_child: (Integer index) -> Node?
208
+ def named_child_count: () -> Integer
209
+ def child_by_field_name: (String name) -> Node?
210
+ def to_sexp: () -> String
211
+ def walk: () -> TreeCursor
212
+ end
245
213
 
214
+ class TreeCursor
215
+ def node: () -> Node
216
+ def goto_first_child: () -> bool
217
+ def goto_parent: () -> bool
218
+ def goto_next_sibling: () -> bool
219
+ def field_name: () -> String?
220
+ end
221
+
222
+ class ProcessConfig
246
223
  attr_accessor language: String?
247
224
  attr_accessor structure: bool?
248
225
  attr_accessor imports: bool?
@@ -253,7 +230,7 @@ module TreeSitterLanguagePack
253
230
  attr_accessor diagnostics: bool?
254
231
  attr_accessor chunk_max_size: Integer?
255
232
 
256
- def initialize: (language: String, structure: bool, imports: bool, exports: bool, comments: bool, docstrings: bool, symbols: bool, diagnostics: bool, ?chunk_max_size: Integer) -> void
233
+ def initialize: (?language: String, ?structure: bool, ?imports: bool, ?exports: bool, ?comments: bool, ?docstrings: bool, ?symbols: bool, ?diagnostics: bool, ?chunk_max_size: Integer) -> void
257
234
  def with_chunking: (Integer max_size) -> ProcessConfig
258
235
  def all: () -> ProcessConfig
259
236
  def minimal: () -> ProcessConfig
@@ -261,131 +238,44 @@ module TreeSitterLanguagePack
261
238
  end
262
239
 
263
240
  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
241
  def get_language: (String name) -> Language
287
242
  def available_languages: () -> Array[String]
288
243
  def has_language: (String name) -> bool
289
244
  def language_count: () -> Integer
290
245
  def process: (String source, ProcessConfig config) -> ProcessResult
291
- def self.with_libs_dir: (String libs_dir) -> LanguageRegistry
292
246
  def self.default: () -> LanguageRegistry
293
247
  end
294
248
 
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
249
  class DownloadManager
322
- # Manages downloading and caching of pre-built parser shared libraries.
323
-
324
- def cache_dir: () -> String
325
250
  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
251
  def download_all_best_effort: () -> Integer
331
252
  def clean_cache: () -> void
332
253
  def self.new: (String version) -> DownloadManager
333
254
  def self.with_cache_dir: (String version, String cache_dir) -> DownloadManager
334
- def self.default_cache_dir: (String version) -> String
335
255
  end
336
256
 
337
257
  class Language
338
258
  end
339
259
 
340
- class Parser
341
- end
342
-
343
- class Tree
344
- end
345
-
346
260
  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
261
  end
353
262
 
354
263
  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
264
+ type value = :line | :block | :doc
360
265
  end
361
266
 
362
267
  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
268
  end
368
269
 
369
270
  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
271
+ type value = :named | :default | :re_export
374
272
  end
375
273
 
376
274
  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
275
  end
382
276
 
383
277
  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
278
+ type value = :error | :warning | :info
389
279
  end
390
280
 
391
281
  def self.detect_language_from_extension: (String ext) -> String?
@@ -422,6 +312,8 @@ module TreeSitterLanguagePack
422
312
 
423
313
  def self.download_all: () -> Integer
424
314
 
315
+ def self.download_group: (String name) -> Integer
316
+
425
317
  def self.manifest_languages: () -> Array[String]
426
318
 
427
319
  def self.downloaded_languages: () -> Array[String]
metadata CHANGED
@@ -1,14 +1,28 @@
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.44
4
+ version: 1.9.0.pre.rc.1
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Kreuzberg Team
8
8
  bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
- dependencies: []
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: sorbet-runtime
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '0.5'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: '0.5'
12
26
  description: Pre-compiled tree-sitter grammars for 305 programming languages
13
27
  executables: []
14
28
  extensions: []