tree_sitter_language_pack 1.8.0.pre.rc.34 → 1.8.0.pre.rc.36
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/ext/ts_pack_core_rb/src/lib.rs +30 -1
- data/ext/ts_pack_core_rb/src/tree_sitter_language_pack/version.rb +2 -2
- data/lib/tree_sitter_language_pack/native.rb +21 -0
- data/lib/tree_sitter_language_pack/version.rb +10 -0
- data/lib/tree_sitter_language_pack.rb +11 -1
- data/sig/types.rbs +2 -2
- metadata +3 -2
- data/ext/ts_pack_core_rb/src/tree_sitter_language_pack.rb +0 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 915af952f8b760fe9c0d94dc967d9b86a000abd2b2db76c05243a77a57c82989
|
|
4
|
+
data.tar.gz: 5499a3ce214323d87e5483efe522ec2b40814062e7b0c21895b935a5d50198ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bff0f3de9bb6c20092607dc3ac4fb6c06a2b568035f2531b595023882a3a24895e16f0eeddd778aa56d3753b45f4617d8b2b09b367f46efaa10fa43b230efafa
|
|
7
|
+
data.tar.gz: 95d3f4b0043b02d7f043ba2fcf11b5a6afe34cfa5e0fcb0edc7d38ed45613ec5b2d19826d2da34a0141cad127f8bc4d29945c9bbc20133b729a1d38a17bfc001
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by alef. DO NOT EDIT.
|
|
2
|
-
// alef:hash:
|
|
2
|
+
// alef:hash:83124a3f83f17a666686c66331d247a252604e3e5b73bc08fff08c9deb9f3c8c
|
|
3
3
|
// Re-generate with: alef generate
|
|
4
4
|
#![allow(dead_code, unused_imports, unused_variables)]
|
|
5
5
|
#![allow(
|
|
@@ -91,6 +91,7 @@ impl magnus::TryConvert for Span {
|
|
|
91
91
|
})
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
+
|
|
94
95
|
unsafe impl TryConvertOwned for Span {}
|
|
95
96
|
|
|
96
97
|
impl Default for Span {
|
|
@@ -191,6 +192,7 @@ impl magnus::TryConvert for ProcessResult {
|
|
|
191
192
|
})
|
|
192
193
|
}
|
|
193
194
|
}
|
|
195
|
+
|
|
194
196
|
unsafe impl TryConvertOwned for ProcessResult {}
|
|
195
197
|
|
|
196
198
|
impl Default for ProcessResult {
|
|
@@ -317,6 +319,7 @@ impl magnus::TryConvert for FileMetrics {
|
|
|
317
319
|
})
|
|
318
320
|
}
|
|
319
321
|
}
|
|
322
|
+
|
|
320
323
|
unsafe impl TryConvertOwned for FileMetrics {}
|
|
321
324
|
|
|
322
325
|
impl Default for FileMetrics {
|
|
@@ -430,6 +433,7 @@ impl magnus::TryConvert for StructureItem {
|
|
|
430
433
|
})
|
|
431
434
|
}
|
|
432
435
|
}
|
|
436
|
+
|
|
433
437
|
unsafe impl TryConvertOwned for StructureItem {}
|
|
434
438
|
|
|
435
439
|
impl StructureItem {
|
|
@@ -529,6 +533,7 @@ impl magnus::TryConvert for CommentInfo {
|
|
|
529
533
|
})
|
|
530
534
|
}
|
|
531
535
|
}
|
|
536
|
+
|
|
532
537
|
unsafe impl TryConvertOwned for CommentInfo {}
|
|
533
538
|
|
|
534
539
|
impl CommentInfo {
|
|
@@ -594,6 +599,7 @@ impl magnus::TryConvert for DocstringInfo {
|
|
|
594
599
|
})
|
|
595
600
|
}
|
|
596
601
|
}
|
|
602
|
+
|
|
597
603
|
unsafe impl TryConvertOwned for DocstringInfo {}
|
|
598
604
|
|
|
599
605
|
impl DocstringInfo {
|
|
@@ -668,6 +674,7 @@ impl magnus::TryConvert for DocSection {
|
|
|
668
674
|
})
|
|
669
675
|
}
|
|
670
676
|
}
|
|
677
|
+
|
|
671
678
|
unsafe impl TryConvertOwned for DocSection {}
|
|
672
679
|
|
|
673
680
|
impl Default for DocSection {
|
|
@@ -738,6 +745,7 @@ impl magnus::TryConvert for ImportInfo {
|
|
|
738
745
|
})
|
|
739
746
|
}
|
|
740
747
|
}
|
|
748
|
+
|
|
741
749
|
unsafe impl TryConvertOwned for ImportInfo {}
|
|
742
750
|
|
|
743
751
|
impl Default for ImportInfo {
|
|
@@ -818,6 +826,7 @@ impl magnus::TryConvert for ExportInfo {
|
|
|
818
826
|
})
|
|
819
827
|
}
|
|
820
828
|
}
|
|
829
|
+
|
|
821
830
|
unsafe impl TryConvertOwned for ExportInfo {}
|
|
822
831
|
|
|
823
832
|
impl ExportInfo {
|
|
@@ -874,6 +883,7 @@ impl magnus::TryConvert for SymbolInfo {
|
|
|
874
883
|
})
|
|
875
884
|
}
|
|
876
885
|
}
|
|
886
|
+
|
|
877
887
|
unsafe impl TryConvertOwned for SymbolInfo {}
|
|
878
888
|
|
|
879
889
|
impl SymbolInfo {
|
|
@@ -942,6 +952,7 @@ impl magnus::TryConvert for Diagnostic {
|
|
|
942
952
|
})
|
|
943
953
|
}
|
|
944
954
|
}
|
|
955
|
+
|
|
945
956
|
unsafe impl TryConvertOwned for Diagnostic {}
|
|
946
957
|
|
|
947
958
|
impl Diagnostic {
|
|
@@ -1003,6 +1014,7 @@ impl magnus::TryConvert for CodeChunk {
|
|
|
1003
1014
|
})
|
|
1004
1015
|
}
|
|
1005
1016
|
}
|
|
1017
|
+
|
|
1006
1018
|
unsafe impl TryConvertOwned for CodeChunk {}
|
|
1007
1019
|
|
|
1008
1020
|
impl Default for CodeChunk {
|
|
@@ -1060,6 +1072,11 @@ impl CodeChunk {
|
|
|
1060
1072
|
fn metadata(&self) -> ChunkContext {
|
|
1061
1073
|
self.metadata.clone()
|
|
1062
1074
|
}
|
|
1075
|
+
|
|
1076
|
+
#[allow(clippy::should_implement_trait)]
|
|
1077
|
+
fn to_s(&self) -> String {
|
|
1078
|
+
self.content.clone()
|
|
1079
|
+
}
|
|
1063
1080
|
}
|
|
1064
1081
|
|
|
1065
1082
|
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]
|
|
@@ -1102,6 +1119,7 @@ impl magnus::TryConvert for ChunkContext {
|
|
|
1102
1119
|
})
|
|
1103
1120
|
}
|
|
1104
1121
|
}
|
|
1122
|
+
|
|
1105
1123
|
unsafe impl TryConvertOwned for ChunkContext {}
|
|
1106
1124
|
|
|
1107
1125
|
impl Default for ChunkContext {
|
|
@@ -1216,6 +1234,7 @@ impl magnus::TryConvert for PackConfig {
|
|
|
1216
1234
|
})
|
|
1217
1235
|
}
|
|
1218
1236
|
}
|
|
1237
|
+
|
|
1219
1238
|
unsafe impl TryConvertOwned for PackConfig {}
|
|
1220
1239
|
|
|
1221
1240
|
impl Default for PackConfig {
|
|
@@ -1290,6 +1309,7 @@ impl magnus::TryConvert for ProcessConfig {
|
|
|
1290
1309
|
})
|
|
1291
1310
|
}
|
|
1292
1311
|
}
|
|
1312
|
+
|
|
1293
1313
|
unsafe impl TryConvertOwned for ProcessConfig {}
|
|
1294
1314
|
|
|
1295
1315
|
impl Default for ProcessConfig {
|
|
@@ -1429,6 +1449,7 @@ impl magnus::TryConvert for LanguageRegistry {
|
|
|
1429
1449
|
Ok(r.clone())
|
|
1430
1450
|
}
|
|
1431
1451
|
}
|
|
1452
|
+
|
|
1432
1453
|
unsafe impl TryConvertOwned for LanguageRegistry {}
|
|
1433
1454
|
|
|
1434
1455
|
impl LanguageRegistry {
|
|
@@ -1502,6 +1523,7 @@ impl magnus::TryConvert for ParserManifest {
|
|
|
1502
1523
|
})
|
|
1503
1524
|
}
|
|
1504
1525
|
}
|
|
1526
|
+
|
|
1505
1527
|
unsafe impl TryConvertOwned for ParserManifest {}
|
|
1506
1528
|
|
|
1507
1529
|
impl ParserManifest {
|
|
@@ -1569,6 +1591,7 @@ impl magnus::TryConvert for PlatformBundle {
|
|
|
1569
1591
|
})
|
|
1570
1592
|
}
|
|
1571
1593
|
}
|
|
1594
|
+
|
|
1572
1595
|
unsafe impl TryConvertOwned for PlatformBundle {}
|
|
1573
1596
|
|
|
1574
1597
|
impl PlatformBundle {
|
|
@@ -1621,6 +1644,7 @@ impl magnus::TryConvert for LanguageInfo {
|
|
|
1621
1644
|
})
|
|
1622
1645
|
}
|
|
1623
1646
|
}
|
|
1647
|
+
|
|
1624
1648
|
unsafe impl TryConvertOwned for LanguageInfo {}
|
|
1625
1649
|
|
|
1626
1650
|
impl LanguageInfo {
|
|
@@ -1651,6 +1675,7 @@ impl magnus::TryConvert for DownloadManager {
|
|
|
1651
1675
|
Ok(r.clone())
|
|
1652
1676
|
}
|
|
1653
1677
|
}
|
|
1678
|
+
|
|
1654
1679
|
unsafe impl TryConvertOwned for DownloadManager {}
|
|
1655
1680
|
|
|
1656
1681
|
impl DownloadManager {
|
|
@@ -1728,6 +1753,7 @@ impl magnus::TryConvert for Language {
|
|
|
1728
1753
|
Ok(r.clone())
|
|
1729
1754
|
}
|
|
1730
1755
|
}
|
|
1756
|
+
|
|
1731
1757
|
unsafe impl TryConvertOwned for Language {}
|
|
1732
1758
|
|
|
1733
1759
|
impl Language {}
|
|
@@ -1746,6 +1772,7 @@ impl magnus::TryConvert for Parser {
|
|
|
1746
1772
|
Ok(r.clone())
|
|
1747
1773
|
}
|
|
1748
1774
|
}
|
|
1775
|
+
|
|
1749
1776
|
unsafe impl TryConvertOwned for Parser {}
|
|
1750
1777
|
|
|
1751
1778
|
impl Parser {}
|
|
@@ -1764,6 +1791,7 @@ impl magnus::TryConvert for Tree {
|
|
|
1764
1791
|
Ok(r.clone())
|
|
1765
1792
|
}
|
|
1766
1793
|
}
|
|
1794
|
+
|
|
1767
1795
|
unsafe impl TryConvertOwned for Tree {}
|
|
1768
1796
|
|
|
1769
1797
|
impl Tree {}
|
|
@@ -2951,6 +2979,7 @@ fn ruby_init(ruby: &Ruby) -> Result<(), Error> {
|
|
|
2951
2979
|
class.define_method("start_line", method!(CodeChunk::start_line, 0))?;
|
|
2952
2980
|
class.define_method("end_line", method!(CodeChunk::end_line, 0))?;
|
|
2953
2981
|
class.define_method("metadata", method!(CodeChunk::metadata, 0))?;
|
|
2982
|
+
class.define_method("to_s", method!(CodeChunk::to_s, 0))?;
|
|
2954
2983
|
|
|
2955
2984
|
let class = module.define_class("ChunkContext", ruby.class_object())?;
|
|
2956
2985
|
class.define_singleton_method("new", function!(ChunkContext::new, 9))?;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:fed46f168c22b886839aea53c1253707bdf116529d3efed413320d85b21a6e59
|
|
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 Tree_sitter_language_pack
|
|
9
|
-
VERSION = '1.8.0.pre.rc.
|
|
9
|
+
VERSION = '1.8.0.pre.rc.36'
|
|
10
10
|
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
+
# alef:hash:65dca29124041e2f34be3b08410bfa9b3bab821bef834cd8706e27734359d133
|
|
3
|
+
# To regenerate: alef generate
|
|
4
|
+
# To verify freshness: alef verify --exit-code
|
|
5
|
+
# Issues & docs: https://github.com/kreuzberg-dev/alef
|
|
6
|
+
# frozen_string_literal: true
|
|
7
|
+
|
|
8
|
+
require 'json'
|
|
9
|
+
require 'ts_pack_core_rb'
|
|
10
|
+
|
|
11
|
+
module TreeSitterLanguagePack
|
|
12
|
+
# Re-export all public module functions from the native extension
|
|
13
|
+
TreeSitterLanguagePack.methods(false).each do |m|
|
|
14
|
+
define_singleton_method(m) { |*args, **kwargs, &blk| TreeSitterLanguagePack.public_send(m, *args, **kwargs, &blk) }
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# Re-export all constants (classes, structs, etc.) from the native extension
|
|
18
|
+
TreeSitterLanguagePack.constants.each do |c|
|
|
19
|
+
const_set(c, TreeSitterLanguagePack.const_get(c)) unless const_defined?(c)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
+
# alef:hash:340a9818fbe972ec16e0ad142ce0f49514899aa9c4aedcf095e955f624f84b8f
|
|
3
|
+
# To regenerate: alef generate
|
|
4
|
+
# To verify freshness: alef verify --exit-code
|
|
5
|
+
# Issues & docs: https://github.com/kreuzberg-dev/alef
|
|
6
|
+
# frozen_string_literal: true
|
|
7
|
+
|
|
8
|
+
module TreeSitterLanguagePack
|
|
9
|
+
VERSION = '1.8.0.pre.rc.36'
|
|
10
|
+
end
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
+
# alef:hash:3188454bdc31b072f3824494228e24ddc58b5d80d9f5e42d506bfa5b0c180d47
|
|
3
|
+
# To regenerate: alef generate
|
|
4
|
+
# To verify freshness: alef verify --exit-code
|
|
5
|
+
# Issues & docs: https://github.com/kreuzberg-dev/alef
|
|
1
6
|
# frozen_string_literal: true
|
|
2
7
|
|
|
3
|
-
|
|
8
|
+
require_relative 'tree_sitter_language_pack/version'
|
|
9
|
+
require_relative 'tree_sitter_language_pack/native'
|
|
10
|
+
|
|
11
|
+
module TreeSitterLanguagePack
|
|
12
|
+
# Re-export all types and functions from native extension
|
|
13
|
+
end
|
data/sig/types.rbs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:bbe7856d6662f500c44df8d8d434996da7dab9cc63d857df13baccceef8eb6c7
|
|
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
|
|
|
7
|
-
module
|
|
7
|
+
module TreeSitterLanguagePack
|
|
8
8
|
|
|
9
9
|
VERSION: String
|
|
10
10
|
|
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.36
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kreuzberg Team
|
|
@@ -34,9 +34,10 @@ files:
|
|
|
34
34
|
- ext/ts_pack_core_rb/native/Cargo.lock
|
|
35
35
|
- ext/ts_pack_core_rb/native/Cargo.toml
|
|
36
36
|
- ext/ts_pack_core_rb/src/lib.rs
|
|
37
|
-
- ext/ts_pack_core_rb/src/tree_sitter_language_pack.rb
|
|
38
37
|
- ext/ts_pack_core_rb/src/tree_sitter_language_pack/version.rb
|
|
39
38
|
- lib/tree_sitter_language_pack.rb
|
|
39
|
+
- lib/tree_sitter_language_pack/native.rb
|
|
40
|
+
- lib/tree_sitter_language_pack/version.rb
|
|
40
41
|
- sig/types.rbs
|
|
41
42
|
homepage: https://github.com/kreuzberg-dev/tree-sitter-language-pack
|
|
42
43
|
licenses:
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:8078de6d66550aa015d1cbca6466233cf98a38be8304b025e339415174813d84
|
|
3
|
-
# To regenerate: alef generate
|
|
4
|
-
# To verify freshness: alef verify --exit-code
|
|
5
|
-
# Issues & docs: https://github.com/kreuzberg-dev/alef
|
|
6
|
-
# frozen_string_literal: true
|
|
7
|
-
|
|
8
|
-
require_relative 'tree_sitter_language_pack/version'
|
|
9
|
-
require_relative 'tree_sitter_language_pack/native'
|
|
10
|
-
|
|
11
|
-
module Tree_sitter_language_pack
|
|
12
|
-
# Re-export all types and functions from native extension
|
|
13
|
-
end
|