Skip to main content

Module semantic_diff

Module semantic_diff 

Source
Expand description

Semantic diff — enriches object-level diffs with structural context.

Takes a CodeDiffResult (which nodes changed) and produces a SemanticDiff that adds:

  • Impact analysis: which edges are affected by each change
  • Containment context: parent/child relationships for changed nodes
  • Change classification: API-breaking vs internal, signature vs body
  • Human-readable summary: grouped by file/module for review

Structs§

AffectedEdge
An edge affected by the diff (e.g., a call to a removed function).
DiffStats
Summary statistics for a semantic diff.
SemanticDiff
A semantically enriched diff.
SemanticDiffEntry
A single enriched diff entry.

Enums§

AffectedReason
Why an edge is affected.
ChangeClassification
Classification of a code change.

Functions§

format_semantic_diff
Format a semantic diff as a human-readable review summary.
semantic_diff
Compute a semantic diff from an object-level diff and the CodeGraph state.