Skip to main content

Module query

Module query 

Source
Expand description

Query module - Code graph and query infrastructure.

Provides:

  • CodeGraphV2: Symbol relationship graph (DoD-based, petgraph-free)
  • GraphBuilderV2: Build CodeGraphV2 from parsed code
  • QueryBuilder: Fluent query DSL
  • DataFlowGraphV2: Data flow analysis (DoD-based, String-free)
  • DataFlowBuilderWorkspace: Build DataFlowGraphV2 from parsed code
  • TypeFlowGraphV2: Type relationship analysis (V2, DoD-based)
  • SpecFlowGraphV2: Domain semantics analysis (V2, DoD-based)
  • BorrowTrackerV2: Lightweight borrow state tracking (VarId-based)

Modules§

index_vec
IndexVec - Type-safe indexed vector (rustc-style)

Structs§

ActiveBorrowV2
Represents an active borrow of a variable (V2 - uses VarId).
BorrowAnalysis
Result of borrow analysis for a symbol.
BorrowConflict
A detected borrow conflict.
BorrowTrackerV2
Tracks active borrows for a set of variables (V2 - uses VarId).
ChainNode
A node in the chain with depth information.
ChainResult
Result of a chain analysis operation.
CodeGraphV2
Symbol relationship graph with Data-Oriented Design.
ConstraintData
Constraint node data. String is required for domain constraint expressions.
CriticalSectionV2
A critical section (V2 - uses VarId).
DataFlowBuilderWorkspace
Builder for constructing DataFlowGraphV2 using WorkspaceFilePath-keyed files.
DataFlowGraphV2
Data flow graph with Data-Oriented Design.
DataFlowStats
Statistics about the data flow graph.
DefinitionData
Definition node data (16 bytes).
DeriveIndex
Index for fast derive trait validation.
DeriveIndexStats
Statistics about the DeriveIndex.
EdgeData
Edge data (compact representation).
EdgeId
Index into the edges array.
FieldAccessV2
A field access within a critical section (V2).
FlowChain
A chain of flow steps from source to target.
FlowData
Flow metadata.
FlowEdge
Edge in the data flow graph with detailed information.
FlowEdgeData
Flow edge data (8 bytes).
FlowId
Index into the flows array.
FlowStep
A single step in a flow chain.
GenericArgData
Generic argument node data (16 bytes).
GraphBuilderV2
Builder for constructing CodeGraphV2.
GroupData
Group node data. String is required for domain semantics labels.
Guard
A conditional guard that constrains variables within a scope.
IntentData
Intent node data. String is required for human-readable descriptions.
LockAcquisitionV2
Represents a lock acquisition point (V2 - uses VarId).
LockGranularityAnalyzerV2
Lightweight lock granularity analyzer using LockTrackerV2 (V2 - uses VarId).
LockStatsV2
Statistics about lock usage (V2).
LockTrackerV2
Tracks lock acquisitions and critical sections (V2 - uses VarId).
LookupTable
Inverted indices for O(1) lookups.
MatchExprDataV2
Match expression data (String-free).
MatchExprId
Index into the match expressions array.
MoveError
A use-after-move error.
QueryBuilder
Fluent query builder for CodeGraphV2.
ReferenceIntegrityChecker
Reference Integrity Checker using CodeGraphV2.
ReferenceIntegrityResult
Result of reference integrity analysis.
ScopeData
A scope node in the scope tree.
ScopeId
Index into the scopes array.
SpecAliasData
SpecAlias node data with pre-resolved names for DoD.
SpecAliasInfo
Spec<G, T>パターンの解析結果。
SpecFlowBuilderV2
Builds SpecFlowGraphV2 from TypeAliasRegistry.
SpecFlowGraphV2
SpecFlowGraph V2 - SoA + Side Tables design.
SpecLookupTable
Inverted indices for O(1) lookups.
SpecNodeId
Unified node ID with kind encoded in top 2 bits.
StdImplCache
Cache of known trait implementations for standard library types.
TraitBoundData
Trait bound node data (16 bytes).
TypeAliasEntry
型エイリアスの情報。
TypeAliasRegistry
型エイリアス情報を管理する軽量レジストリ。
TypeAliasRegistryBuilder
PureFileからTypeAliasRegistryを構築するビルダー。
TypeFlowBuilderV2
Convenience wrapper for TypeFlowBuilderWorkspace.
TypeFlowGraphV2
Type relationship graph (V2 - Data-Oriented Design).
TypeImpactChecker
Type Impact Checker using TypeFlowGraphV2.
TypeImpactResult
Result of type impact analysis.
TypeImpactV2
Impact of changing a type.
TypeNodeId
Unified node ID with kind encoded in top 2 bits. Allows a single ID type to reference any node kind.
UnusedSymbol
Information about an unused symbol.
UnusedSymbolChecker
Unused Symbol Checker using CodeGraphV2 and TypeFlowGraphV2.
UnusedSymbolResult
Result of unused symbol analysis.
UsageData
Usage node data - Span-free, String-free.
VarData
Variable data (12 bytes) - DOD optimized.
VarId
Lightweight variable identifier for DataFlowGraph internal use.
VarNode
Variable node with name and metadata.
VarSymbolMapping
Bidirectional mapping between VarId and SymbolId.

Enums§

AccessKind
Kind of field access.
BorrowKind
Kind of borrow.
BorrowStateV2
The ownership/borrow state of a variable (V2 - uses VarId).
ChainDirection
Direction for chain traversal.
CodeEdgeV2
Edge types in the code graph.
CommentDirective
Comment-based spec directive.
ConstraintKind
Constraint kinds.
FlowKind
Kind of data flow.
GuardKind
Kind of guard condition.
IntentKind
Intent kinds.
LockSuggestion
Suggestion for lock optimization.
LockType
Type of lock primitive.
NodeKind
Node kind discriminant.
RefKind
Reference kind for type usage.
ReferenceIntegrityIssue
Specific issue found during reference integrity analysis.
ScopeKind
Kind of scope in control flow.
SpecNodeKind
Node kind discriminant.
SpecSource
Source of spec information.
TypeDefKind
Kind of type definition.
TypeImpactIssue
Specific issue found during type impact analysis.
UsageContext
Context in which a type is used.
VarKind
Kind of variable.