ParseResult<T> class
The result generated by a Parser.
Constructors
-
ParseResult.new(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.
no setterinherited
-
parser
→ Parser<
T> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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 = const [], FileSpan? span, T? value}) → ParseResult<T> -
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