DiffReviewBlocks class final TUI
Immutable, sparsely indexed mixed review document.
Only thread insertions are stored. Code slots are derived on demand in O(log T), where T is the number of threads. Construction does not enumerate code rows, instantiate code blocks, or rerender the patch.
Unmapped and outdated threads follow the patch rather than disappearing or being attached to guessed source lines. Same-row threads retain input order.
Constructors
- DiffReviewBlocks(DiffReviewModel model)
- Builds an ordering for the model's current layout and threads.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- layout → DiffLayout
-
Shared code layout; code strings are never copied by this index.
final
- length → int
-
Number of mixed display slots, before host measurement.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- threadCount → int
-
Number of thread slots.
no setter
Methods
-
indexOfRow(
int renderRow) → int -
Mixed slot index of the code row at
renderRow. -
indexOfThread(
String id) → int? - Mixed slot index of a thread by stable identity, or null when absent.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
threadAt(
int ordinal) → DiffReviewThreadBlock - Thread at a sparse thread ordinal, in display order.
-
threadsBefore(
int index) → int - Number of thread slots strictly before a mixed slot index.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int index) → DiffReviewBlock -
Block at
index, with code blocks materialized only when requested.