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§
- Affected
Edge - An edge affected by the diff (e.g., a call to a removed function).
- Diff
Stats - Summary statistics for a semantic diff.
- Semantic
Diff - A semantically enriched diff.
- Semantic
Diff Entry - A single enriched diff entry.
Enums§
- Affected
Reason - Why an edge is affected.
- Change
Classification - 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.