v/vlib/v/errors/errors.v

41 lines
489 B
V
Raw Normal View History

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