Skip to main content

Module dead_code_projection

Module dead_code_projection 

Source
Expand description

Work counters for measurement tests: source parses by the store and resolution-config reads (package.json, tsconfig.json, Cargo.toml). They are keyed by absolute path because the work runs on build-pool threads, and tests running in parallel must each count only the files under their own fixture root.

Structs§

ProjectionCostEstimates
Root-local running projection costs used to avoid a splice whose snapshot fold is predicted to cost more than re-reading the complete store.
ProjectionVerdict
Why a projection took the path it did, plus the journal/corpus counts that let an operator see the cost without re-deriving it from timings.

Enums§

ProjectionKind
How a dead-code snapshot was produced: by splicing the previous snapshot with the caller delta journal, or by re-reading the whole store.

Constants§

MAX_DELTA_BYTES
UNKNOWN_RECEIVER_LIVE_PROVENANCE
Provenance of a projected outbound call that is not a call: a member an unknown receiver at that line of the caller file may reach, which dead code keeps alive (for tests only when the line is test code).
UNRESOLVED_VALUE_PATH_PROVENANCE

Functions§

is_method_dispatch_callee
is_resolved_edge
symbol_kind_from_label