SourceLocation
import type { SourceLocation } from "https://raw.githubusercontent.com/wavebeem/bread-n-butter/v0.6.0/src/bread-n-butter.ts";
Represents a location in the input (source code). Keeps track of index
(for
use with .slice
and such), as well as line
and column
for displaying to
users.
interface SourceLocation {
column: number;
index: number;
line: number;
}