2020-04-27 16:08:04 +03:00
|
|
|
module errors
|
2020-04-13 02:56:01 +03:00
|
|
|
|
|
|
|
import v.token
|
|
|
|
|
|
|
|
pub enum Reporter {
|
|
|
|
scanner
|
|
|
|
parser
|
|
|
|
checker
|
2021-09-07 07:17:53 +03:00
|
|
|
builder
|
2020-04-13 02:56:01 +03:00
|
|
|
gen
|
|
|
|
}
|
|
|
|
|
2022-05-02 01:59:17 +03:00
|
|
|
[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
|
2020-10-15 23:12:59 +03:00
|
|
|
details string
|
2020-04-13 02:56:01 +03:00
|
|
|
file_path string
|
2022-01-26 13:36:28 +03:00
|
|
|
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
|
|
|
}
|
2020-04-27 16:08:04 +03:00
|
|
|
|
|
|
|
pub struct Warning {
|
2020-05-09 16:16:48 +03:00
|
|
|
pub:
|
2020-04-27 16:08:04 +03:00
|
|
|
message string
|
2020-07-04 22:24:44 +03:00
|
|
|
details string
|
2020-04-27 16:08:04 +03:00
|
|
|
file_path string
|
2022-01-26 13:36:28 +03:00
|
|
|
pos token.Pos
|
2020-04-27 16:08:04 +03:00
|
|
|
reporter Reporter
|
|
|
|
}
|
2021-03-22 20:43:06 +03:00
|
|
|
|
|
|
|
pub struct Notice {
|
|
|
|
pub:
|
|
|
|
message string
|
|
|
|
details string
|
|
|
|
file_path string
|
2022-01-26 13:36:28 +03:00
|
|
|
pos token.Pos
|
2021-03-22 20:43:06 +03:00
|
|
|
reporter Reporter
|
|
|
|
}
|