mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
scanner: cleanup, only v.parser now depends on v.scanner
This commit is contained in:
25
vlib/v/errors/errors.v
Normal file
25
vlib/v/errors/errors.v
Normal file
@@ -0,0 +1,25 @@
|
||||
module errors
|
||||
|
||||
import v.token
|
||||
|
||||
pub enum Reporter {
|
||||
scanner
|
||||
parser
|
||||
checker
|
||||
gen
|
||||
}
|
||||
|
||||
pub struct Error {
|
||||
message string
|
||||
file_path string
|
||||
pos token.Position
|
||||
reporter Reporter
|
||||
backtrace string
|
||||
}
|
||||
|
||||
pub struct Warning {
|
||||
message string
|
||||
file_path string
|
||||
pos token.Position
|
||||
reporter Reporter
|
||||
}
|
||||
Reference in New Issue
Block a user