ParseResult<T> class

The result generated by a Parser.

Constructors

ParseResult(Trampoline trampoline, SpanScanner scanner, Parser<T> parser, bool successful, Iterable<SyntaxError> errors, {FileSpan span, T value})

Properties

errors Iterable<SyntaxError>
final
hashCode int
The hash code for this object. [...]
read-only, inherited
parser Parser<T>
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scanner SpanScanner
final
span FileSpan
final
successful bool
final
trampoline Trampoline
final
value → T
final

Methods

addErrors(Iterable<SyntaxError> errors) ParseResult<T>
change({Parser<T> parser, bool successful, Iterable<SyntaxError> errors, FileSpan span, T value}) ParseResult<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited