Skip to main content

Site

Source map site containing all necessary information to link a symbol in the output generated by the compiler process back to the original piece of source code.

export interface Site {
  column: number
  description: undefined | string
  end: undefined | Pos
  file: string
  line: number
  toString(): string
  withDescription(description: string): Site
}

Properties

column

site.column satisfies number

description

The description is used to attach context information to UPLC symbols to provide more detailed stack traces

site.description satisfies undefined | string

end

Optional range end of the Site

site.end satisfies undefined | Pos

file

site.file satisfies string

line

site.line satisfies number

toString

Outputs "<file>:<line>:<column>"

site.toString satisfies () => string

withDescription

Creates a copy of the Site containing the given description

site.withDescription satisfies (description: string) => Site