rubydex 0.2.4-aarch64-linux → 0.2.5-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/exe/rubydex_mcp +17 -0
- data/ext/rubydex/definition.c +56 -0
- data/ext/rubydex/extconf.rb +8 -0
- data/lib/rubydex/3.2/rubydex.so +0 -0
- data/lib/rubydex/3.3/rubydex.so +0 -0
- data/lib/rubydex/3.4/rubydex.so +0 -0
- data/lib/rubydex/4.0/rubydex.so +0 -0
- data/lib/rubydex/bin/rubydex_mcp +0 -0
- data/lib/rubydex/declaration.rb +3 -3
- data/lib/rubydex/graph.rb +3 -1
- data/lib/rubydex/librubydex_sys.so +0 -0
- data/lib/rubydex/version.rb +1 -1
- data/rbi/rubydex.rbi +8 -2
- data/rust/rubydex/src/indexing/local_graph.rs +38 -0
- data/rust/rubydex/src/indexing/ruby_indexer.rs +6 -0
- data/rust/rubydex/src/indexing/ruby_indexer_tests.rs +5 -1
- data/rust/rubydex/src/indexing.rs +38 -12
- data/rust/rubydex/src/lib.rs +1 -0
- data/rust/rubydex/src/listing.rs +14 -3
- data/rust/rubydex/src/main.rs +27 -2
- data/rust/rubydex/src/model/definitions.rs +7 -18
- data/rust/rubydex/src/model/ids.rs +27 -1
- data/rust/rubydex/src/operation/applier.rs +519 -0
- data/rust/rubydex/src/operation/mod.rs +284 -0
- data/rust/rubydex/src/operation/printer.rs +260 -0
- data/rust/rubydex/src/operation/ruby_builder.rs +2915 -0
- data/rust/rubydex/src/resolution.rs +6 -1
- data/rust/rubydex/src/resolution_tests.rs +217 -209
- data/rust/rubydex/src/test_utils/graph_test.rs +19 -4
- data/rust/rubydex/src/test_utils/local_graph_test.rs +7 -6
- data/rust/rubydex-mcp/src/server.rs +5 -1
- data/rust/rubydex-sys/src/definition_api.rs +24 -0
- data/rust/rubydex-sys/src/graph_api.rs +1 -1
- metadata +9 -2
|
@@ -1832,7 +1832,7 @@ impl<'a> Resolver<'a> {
|
|
|
1832
1832
|
/// Pre-compute name depths for all names into a `NameId → depth` map. Each name's depth is
|
|
1833
1833
|
/// computed once via memoized recursion, then used as an O(1) lookup key during sorting in
|
|
1834
1834
|
/// `prepare_units`.
|
|
1835
|
-
fn compute_name_depths(names: &IdentityHashMap<NameId, NameRef>) -> IdentityHashMap<NameId, u32> {
|
|
1835
|
+
pub(crate) fn compute_name_depths(names: &IdentityHashMap<NameId, NameRef>) -> IdentityHashMap<NameId, u32> {
|
|
1836
1836
|
let mut cache = IdentityHashMap::with_capacity_and_hasher(names.len(), IdentityHashBuilder);
|
|
1837
1837
|
|
|
1838
1838
|
for &name_id in names.keys() {
|
|
@@ -2066,6 +2066,11 @@ impl<'a> Resolver<'a> {
|
|
|
2066
2066
|
}
|
|
2067
2067
|
}
|
|
2068
2068
|
|
|
2069
|
+
#[cfg(test)]
|
|
2070
|
+
fn backend() -> crate::indexing::IndexerBackend {
|
|
2071
|
+
crate::indexing::IndexerBackend::RubyIndexer
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2069
2074
|
#[cfg(test)]
|
|
2070
2075
|
#[path = "resolution_tests.rs"]
|
|
2071
2076
|
mod tests;
|