Skip to content

v3.errors

fn details #

fn details(file &token.File, pos token.Position, row_padding int) string

fn error #

fn error(msg string, details string, kind Kind, pos token.Position)

fn Kind.from #

fn Kind.from[W](input W) !Kind

fn Reporter.from #

fn Reporter.from[W](input W) !Reporter

enum Kind #

enum Kind {
	warning
	notice
	error
}

fn (Kind) str #

fn (e Kind) str() string

fn (Kind) color #

fn (e Kind) color(s string) string

enum Reporter #

enum Reporter {
	scanner
	parser
	checker
	gen
}

struct CompilerMessage #

struct CompilerMessage {
pub:
	message   string
	details   string
	file_path string
	pos       token.Pos
	reporter  Reporter
}

struct Error #

struct Error {
	CompilerMessage
}

struct Warning #

struct Warning {
	CompilerMessage
}