git.dumitru.net fructose / master src / DocumentLocation.ts
master

Tree @master (Download .tar.gz)

DocumentLocation.ts @masterraw · history · blame

export default class DocumentLocation {
  public readonly line: number;
  public readonly char: number;

  constructor(line: number, char: number) {
    this.line = line;
    this.char = char;
  }

  public toString(): string {
    return `${this.line}:${this.char}`;
  }
}