The position information maintained by Lexer.
Lexer
new (source:String, min:Int, max:Int)
Creates a new Position from the given information.
Position
pmax:Int
The last character position, counting from the beginning of the input.
pmin:Int
The first character position, counting from the beginning of the input.
psource:String
Name of the source.
format (input:ByteData):String
Formats this position by resolving line numbers within input.
this
input
If input is null, the result is unspecified.
getLinePosition (input:ByteData):{posMin:Int, posMax:Int, lineMin:Int, lineMax:Int}
toString ():String
Returns a readable representation of this position;
staticunion (p1:Position, p2:Position):Position
Unifies two positions p1 and p2, using the minimum pmin and maximum pmax of both.
p1
p2
pmin
pmax
The resulting psource and pline are taken from p1.
psource
pline
If p1 or p2 are null, the result is unspecified.