Skip to main content

Module ir

Module ir 

Source
Expand description

Canonical semantic IR types for downstream consumers.

This module provides a unified set of types that represent the semantic structure of a codebase — relationships between symbols, call graph edges, impact analysis nodes, and structured edit plans.

§Re-exports

Core types from other engine modules are re-exported here so that consumers can import everything from a single location:

use codelens_engine::ir::{
    SymbolInfo, Relation, ImpactNode, EditPlan,
    SearchCandidate, IntelligenceSource, CodeDiagnostic,
};

Re-exports§

pub use crate::circular::CircularDependency;
pub use crate::git::ChangedFile;
pub use crate::lsp::types::LspDiagnostic;
pub use crate::rename::RenameEdit;
pub use crate::search::SearchResult;
pub use crate::symbols::RankedContextEntry;
pub use crate::symbols::SymbolInfo;
pub use crate::symbols::SymbolKind;

Structs§

CodeDiagnostic
A code diagnostic from any analysis backend.
EditAction
A single edit action within an EditPlan.
EditPlan
A structured edit plan for multi-file changes.
ImpactNode
A node in an impact analysis graph.
IrCallEdge
A call graph edge with optional metadata.
Relation
A directed relationship between two symbols or files.
RetrievalConfig
Configuration for a retrieval pipeline run.
RetrievalWeights
Weights for each retrieval signal in the rerank stage.
SearchCandidate
A search result from any retrieval path. This is the substrate type that downstream consumers (MCP response builders, workflow tools) should target.

Enums§

DiagnosticSeverity
EditActionKind
The kind of edit performed by an EditAction.
ImpactKind
How a file or symbol is affected by a change.
IntelligenceSource
The backend that produced a result.
RelationKind
The kind of directed relationship between two symbols or files.
RetrievalStage
Describes a stage in the retrieval pipeline.

Traits§

PreciseBackend
Trait for optional precise code intelligence backends (LSP, SCIP).