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