1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/v/errors/errors.v

41 lines
489 B
V
Raw Normal View History

module errors
2020-04-13 02:56:01 +03:00
import v.token
pub enum Reporter {
scanner
parser
checker
builder
2020-04-13 02:56:01 +03:00
gen
}
[minify]
2020-04-13 02:56:01 +03:00
pub struct Error {
2020-05-09 16:16:48 +03:00
pub:
2020-04-13 02:56:01 +03:00
message string
details string
2020-04-13 02:56:01 +03:00
file_path string
pos token.Pos
2020-04-13 02:56:01 +03:00
backtrace string
2020-05-09 16:16:48 +03:00
reporter Reporter
2020-04-13 02:56:01 +03:00
}
pub struct Warning {
2020-05-09 16:16:48 +03:00
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
}