MCPcopy Create free account
hub / github.com/Snapchat/Valdi / debugPositionString

Method debugPositionString

compiler/companion/src/utils/TextParser.ts:18–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 constructor(readonly text: string) {}
17
18 debugPositionString(): string {
19 return `line ${this.currentLine + 1}, column: ${this.position - this.currentLineGlobalPosition + 1}`;
20 }
21
22 private onError(message: string): never {
23 throw new Error(`At ${this.debugPositionString()}: ${message}`);

Callers 1

onErrorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected