fn details(file &token.File, pos token.Position, row_padding int) string
fn error(msg string, details string, kind Kind, pos token.Position)
fn Kind.from[W](input W) !Kind
fn Reporter.from[W](input W) !Reporter
enum Kind {
warning
notice
error
}
fn (e Kind) color(s string) string
enum Reporter {
scanner
parser
checker
gen
}
struct CompilerMessage {
pub:
message string
details string
file_path string
pos token.Pos
reporter Reporter
}
struct Error {
CompilerMessage
}
struct Warning {
CompilerMessage
}