DiffReviewDocument class final TUI
Immutable source index for a particular review document revision.
Context lines retain both old and new coordinates, even in unified view. Presentation changes reuse this index; only patch replacement rebuilds it.
Constructors
-
DiffReviewDocument({required String id, required String revision, required Iterable<
DiffFile> files}) - Snapshots parsed files and builds a source index independent of layout.
Properties
-
files
→ List<
DiffFile> -
Parsed file snapshots.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Provider identity, for example a pull request ID.
final
- revision → String
-
Opaque revision token supplied by the host.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
anchorIn(
DiffLayout layout, DiffCommentLineKey key) → DiffCommentAnchor? -
Resolves a source key in
layout, including left context in unified view. -
contains(
DiffCommentLineKey key) → bool - Tests an exact source position, including its side.
-
counterpart(
DiffCommentLineKey key) → DiffCommentLineKey? - The other source coordinate of the same context line, if any.
-
covers(
DiffReviewRange range) → bool -
Whether the patch contains every source line of
range. -
keysIn(
DiffReviewRange range) → Iterable< DiffCommentLineKey> -
Source keys covered by
range, without inventing omitted context. - Source-order navigation, with one stop per parsed code line.
- Index of a source position in navigation, or -1 when absent.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited