CompileError

CompileError

Compile-time error raised when AST nodes cannot be compiled.

Constructor

new CompileError(filename:, row:, col:, message:)

Create a compile error.
Source:
Parameters:
Name Type Description
filename: string template filename
row: number | string source row number
col: number | string source column number
message: string compile error details

Methods

toString() → {string}

Format this compile error into a readable location-prefixed string.
Source:
Returns:
Type:
string
formatted error string