pub struct QueryEngine;Expand description
Implementations§
Source§impl QueryEngine
impl QueryEngine
Sourcepub fn symbol_lookup<'g>(
&self,
graph: &'g CodeGraph,
params: SymbolLookupParams,
) -> AcbResult<Vec<&'g CodeUnit>>
pub fn symbol_lookup<'g>( &self, graph: &'g CodeGraph, params: SymbolLookupParams, ) -> AcbResult<Vec<&'g CodeUnit>>
Look up symbols by name with optional filters.
Sourcepub fn dependency_graph(
&self,
graph: &CodeGraph,
params: DependencyParams,
) -> AcbResult<DependencyResult>
pub fn dependency_graph( &self, graph: &CodeGraph, params: DependencyParams, ) -> AcbResult<DependencyResult>
Build the forward dependency graph from a unit.
Sourcepub fn reverse_dependency(
&self,
graph: &CodeGraph,
params: DependencyParams,
) -> AcbResult<DependencyResult>
pub fn reverse_dependency( &self, graph: &CodeGraph, params: DependencyParams, ) -> AcbResult<DependencyResult>
Build the reverse dependency graph (who depends on this unit).
Sourcepub fn call_graph(
&self,
graph: &CodeGraph,
params: CallGraphParams,
) -> AcbResult<CallGraphResult>
pub fn call_graph( &self, graph: &CodeGraph, params: CallGraphParams, ) -> AcbResult<CallGraphResult>
Build a call graph centered on a function.
Sourcepub fn type_hierarchy(
&self,
graph: &CodeGraph,
params: HierarchyParams,
) -> AcbResult<HierarchyResult>
pub fn type_hierarchy( &self, graph: &CodeGraph, params: HierarchyParams, ) -> AcbResult<HierarchyResult>
Explore the type hierarchy (ancestors and/or descendants).
Sourcepub fn containment<'g>(
&self,
graph: &'g CodeGraph,
unit_id: u64,
) -> AcbResult<Vec<&'g CodeUnit>>
pub fn containment<'g>( &self, graph: &'g CodeGraph, unit_id: u64, ) -> AcbResult<Vec<&'g CodeUnit>>
Find all units contained within the given unit, recursively.
Sourcepub fn pattern_match(
&self,
graph: &CodeGraph,
params: PatternParams,
) -> AcbResult<Vec<PatternMatch>>
pub fn pattern_match( &self, graph: &CodeGraph, params: PatternParams, ) -> AcbResult<Vec<PatternMatch>>
Match units against a simple pattern DSL.
Sourcepub fn semantic_search(
&self,
graph: &CodeGraph,
params: SemanticParams,
) -> AcbResult<Vec<SemanticMatch>>
pub fn semantic_search( &self, graph: &CodeGraph, params: SemanticParams, ) -> AcbResult<Vec<SemanticMatch>>
Brute-force cosine-similarity search over feature vectors.
Sourcepub fn impact_analysis(
&self,
graph: &CodeGraph,
params: ImpactParams,
) -> AcbResult<ImpactResult>
pub fn impact_analysis( &self, graph: &CodeGraph, params: ImpactParams, ) -> AcbResult<ImpactResult>
Analyse the impact of changing a unit.
Sourcepub fn test_coverage(
&self,
graph: &CodeGraph,
unit_id: u64,
) -> AcbResult<CoverageResult>
pub fn test_coverage( &self, graph: &CodeGraph, unit_id: u64, ) -> AcbResult<CoverageResult>
Compute test coverage information for a unit.
Sourcepub fn cross_language_trace(
&self,
graph: &CodeGraph,
params: TraceParams,
) -> AcbResult<TraceResult>
pub fn cross_language_trace( &self, graph: &CodeGraph, params: TraceParams, ) -> AcbResult<TraceResult>
Trace FFI bindings across language boundaries.
Sourcepub fn collective_patterns(
&self,
graph: &CodeGraph,
params: CollectiveParams,
) -> AcbResult<CollectiveResult>
pub fn collective_patterns( &self, graph: &CodeGraph, params: CollectiveParams, ) -> AcbResult<CollectiveResult>
Query collective intelligence patterns.
Currently returns a placeholder result since the collective intelligence backend is not yet integrated.
Sourcepub fn temporal_evolution(
&self,
graph: &CodeGraph,
unit_id: u64,
) -> AcbResult<EvolutionResult>
pub fn temporal_evolution( &self, graph: &CodeGraph, unit_id: u64, ) -> AcbResult<EvolutionResult>
Get the temporal evolution of a code unit.
Sourcepub fn stability_analysis(
&self,
graph: &CodeGraph,
unit_id: u64,
) -> AcbResult<StabilityResult>
pub fn stability_analysis( &self, graph: &CodeGraph, unit_id: u64, ) -> AcbResult<StabilityResult>
Analyse the stability of a code unit.
Sourcepub fn coupling_detection(
&self,
graph: &CodeGraph,
params: CouplingParams,
) -> AcbResult<Vec<Coupling>>
pub fn coupling_detection( &self, graph: &CodeGraph, params: CouplingParams, ) -> AcbResult<Vec<Coupling>>
Detect couplings between code units.
Sourcepub fn dead_code<'g>(
&self,
graph: &'g CodeGraph,
params: DeadCodeParams,
) -> AcbResult<Vec<&'g CodeUnit>>
pub fn dead_code<'g>( &self, graph: &'g CodeGraph, params: DeadCodeParams, ) -> AcbResult<Vec<&'g CodeUnit>>
Detect potentially dead (unreachable) code.
Sourcepub fn prophecy(
&self,
graph: &CodeGraph,
params: ProphecyParams,
) -> AcbResult<ProphecyResult>
pub fn prophecy( &self, graph: &CodeGraph, params: ProphecyParams, ) -> AcbResult<ProphecyResult>
Predict likely future breakages based on code patterns.
Sourcepub fn concept_mapping(
&self,
graph: &CodeGraph,
concept: &str,
) -> AcbResult<ConceptMap>
pub fn concept_mapping( &self, graph: &CodeGraph, concept: &str, ) -> AcbResult<ConceptMap>
Map a concept to related code units.
Sourcepub fn migration_path(
&self,
graph: &CodeGraph,
params: MigrationParams,
) -> AcbResult<MigrationPlan>
pub fn migration_path( &self, graph: &CodeGraph, params: MigrationParams, ) -> AcbResult<MigrationPlan>
Plan a migration from one unit to another.
Sourcepub fn test_gap(
&self,
graph: &CodeGraph,
params: TestGapParams,
) -> AcbResult<Vec<TestGap>>
pub fn test_gap( &self, graph: &CodeGraph, params: TestGapParams, ) -> AcbResult<Vec<TestGap>>
Find units that have high change counts or complexity but no tests.
Sourcepub fn architectural_drift(
&self,
graph: &CodeGraph,
params: DriftParams,
) -> AcbResult<DriftReport>
pub fn architectural_drift( &self, graph: &CodeGraph, params: DriftParams, ) -> AcbResult<DriftReport>
Check for architectural drift against declared rules.
Sourcepub fn similarity(
&self,
graph: &CodeGraph,
params: SimilarityParams,
) -> AcbResult<Vec<SimilarityMatch>>
pub fn similarity( &self, graph: &CodeGraph, params: SimilarityParams, ) -> AcbResult<Vec<SimilarityMatch>>
Find units similar to a given unit by feature vector.
Sourcepub fn shortest_path(
&self,
graph: &CodeGraph,
from: u64,
to: u64,
) -> AcbResult<PathResult>
pub fn shortest_path( &self, graph: &CodeGraph, from: u64, to: u64, ) -> AcbResult<PathResult>
Find the shortest path between two units.
Sourcepub fn hotspot_detection(
&self,
graph: &CodeGraph,
params: HotspotParams,
) -> AcbResult<Vec<Hotspot>>
pub fn hotspot_detection( &self, graph: &CodeGraph, params: HotspotParams, ) -> AcbResult<Vec<Hotspot>>
Detect code hotspots based on change frequency, stability, and complexity.
Trait Implementations§
Source§impl Clone for QueryEngine
impl Clone for QueryEngine
Source§fn clone(&self) -> QueryEngine
fn clone(&self) -> QueryEngine
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more