Expand description
Call tree analysis module for Calcit programs
This module extracts and analyzes the call tree structure of a Calcit program, starting from a specified entry point. It helps understand code dependencies and identify unused definitions.
Structs§
- Call
Count Entry - A single entry in the call count result
- Call
Count Result - Result of call count analysis
- Call
Tree Analyzer - Call tree analyzer
- Call
Tree Config - Configuration for call tree analysis
- Call
Tree Node - Represents a node in the call tree
- Call
Tree Result - Result of call tree analysis
- Call
Tree Stats - Statistics about the call tree
- Unused
Definition - Represents an unused definition
Enums§
- Call
Count Sort - Row order of a call count report.
Functions§
- analyze_
call_ graph - Main entry point for call tree analysis
- count_
calls - Count calls from entry point
- format_
as_ json - Format the call tree result as JSON for machine consumption
- format_
count_ as_ json - Format call count result as JSON
- format_
count_ for_ display - Format call count result for display
- format_
for_ llm - Format the call tree result for LLM consumption
- reachable_
definitions - Collect non-core definitions statically reachable from
roots. Besides the call-tree references, this followsalias/defandns/defsymbols so:asimports keep their targets reachable.