OpStreamEnd class final

What is left when a stream ends: what could not be read, the tool input's baseRev and atomic, and the truncated tail if it ended inside an op.

Annotations
  • @immutable

Constructors

OpStreamEnd({List<EditDiagnostic> diagnostics = const [], int? baseRev, bool atomic = false, String? truncated, bool complete = true, int opCount = 0, int repairs = 0, int recovered = 0})
const

Properties

atomic → bool
final
baseRev → int?
final
complete → bool
Whether the input's JSON closed (every bracket that opened, closed).
final
diagnostics → List<EditDiagnostic>
Ops (or text) that could not be read; a truncated op's truncated_op; each repair of malformed JSON (malformed_input, a warning).
final
hashCode → int
The hash code for this object.
no setterinherited
opCount → int
How many ops began.
final
recovered → int
How many ops were read after the input first stopped being well formed: the ops a strict JSON reading would have lost.
final
repairs → int
How many times the decoder repaired malformed JSON.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
truncated → String?
The text of the op that was arriving when the stream ended, if any.
final

Methods

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