Position class
Position class
Constructors
Position(number, number) | Creates a new instance of the Position class. |
Properties
character | |
line |
Methods
to |
Constructor Details
Position(number, number)
Creates a new instance of the Position class.
new Position(line: number, character: number)
Parameters
- line
-
number
Line number of the current position.
- character
-
number
Character number of the current line.
Property Details
character
character: number
Property Value
number
line
line: number
Property Value
number
Method Details
toString()
function toString(): string
Returns
string