mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
41 lines
489 B
V
41 lines
489 B
V
module errors
|
|
|
|
import v.token
|
|
|
|
pub enum Reporter {
|
|
scanner
|
|
parser
|
|
checker
|
|
builder
|
|
gen
|
|
}
|
|
|
|
[minify]
|
|
pub struct Error {
|
|
pub:
|
|
message string
|
|
details string
|
|
file_path string
|
|
pos token.Pos
|
|
backtrace string
|
|
reporter Reporter
|
|
}
|
|
|
|
pub struct Warning {
|
|
pub:
|
|
message string
|
|
details string
|
|
file_path string
|
|
pos token.Pos
|
|
reporter Reporter
|
|
}
|
|
|
|
pub struct Notice {
|
|
pub:
|
|
message string
|
|
details string
|
|
file_path string
|
|
pos token.Pos
|
|
reporter Reporter
|
|
}
|