PointedValue<A>
class
The value computed by a parser along with the position at which it was
parsed.
class PointedValue<A> {
final A value;
final Position position;
PointedValue(this.value, this.position);
String toString() => '$value @ $position';
}
Constructors
new PointedValue(A value, Position position) #
Creates a new Object instance.
Object instances have no meaningful state, and are only useful
through their identity. An Object instance is equal to itself
only.
PointedValue(this.value, this.position);
Methods
String toString() #
Returns a string representation of this object.
String toString() => '$value @ $position';