Line content (without +/- prefix). Preserves original whitespace and formatting.
OptionalindentIndentation level (spaces/tabs count). Useful for structural analysis.
Line number in the file. For additions: line number in new version For deletions: line number in old version For context: line number in both versions
OptionalsemanticSemantic annotation explaining the change purpose. Only present for additions/deletions, not context lines.
OptionalsyntaxTypeScript syntax type of this line. Enables syntax-aware analysis and filtering.
Type of line change.
Single line change in a diff hunk. Represents an atomic addition, deletion, or context line.
Example