Dart DocumentationparsersPointedValue<A>

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.

docs inherited from Object
PointedValue(this.value, this.position);

Properties

final Position position #

final Position position

final A value #

final A value

Methods

String toString() #

Returns a string representation of this object.

docs inherited from Object
String toString() => '$value @ $position';