mirror of
https://github.com/vlang/v.git
synced 2025-09-07 22:30:57 -04:00
33 lines
346 B
V
33 lines
346 B
V
module errors
|
|
|
|
import v2.token
|
|
|
|
pub enum Reporter {
|
|
scanner
|
|
parser
|
|
checker
|
|
builder
|
|
gen
|
|
}
|
|
|
|
pub struct CompilerMessage {
|
|
pub:
|
|
message string
|
|
details string
|
|
file_path string
|
|
pos token.Pos
|
|
reporter Reporter
|
|
}
|
|
|
|
pub struct Error {
|
|
CompilerMessage
|
|
}
|
|
|
|
pub struct Warning {
|
|
CompilerMessage
|
|
}
|
|
|
|
pub struct Notice {
|
|
CompilerMessage
|
|
}
|