Context class

An immutable parse context.

Implementers

Constructors

Context(String buffer, int position)
const

Properties

buffer String
The buffer we are working on.
final
position int
The current position in the buffer.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

failure<R>(String message, [int position]) Result<R>
Returns a result indicating a parse failure.
success<R>(R result, [int position]) Result<R>
Returns a result indicating a parse success.
toPositionString() String
Returns the line:column if the input is a string, otherwise the position.
toString() String
Returns a human readable string of the current context.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

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