Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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;
}

§Properties

§
column: number
[src]

The column number for error reporting.

§
index: number
[src]

The string index into the input (e.g. for use with .slice)

§
line: number
[src]

The line number for error reporting. Only the character \n is used to signify the beginning of a new line.