1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Files
v/vlib/v/errors/errors.v
Enzo b083f4014b fmt: fix multiple things and format most of the compiler (#6631)
Format expressions inside string interpolation like the rest (it used to be a+b instead of a + b, not too sure why)
Fix formatting some match branches when there were only one statement inside (it was inlined)
Fix parsing and formatting some comments edge case on struct field init. You should check out this test because the result is a bit different from before. I personally find it more logical but I would understand if the former format was to stay
Fix formatting of void-returning function signature
2020-10-15 22:12:59 +02:00

30 lines
358 B
V

module errors
import v.token
pub enum Reporter {
scanner
parser
checker
gen
}
pub struct Error {
pub:
message string
details string
file_path string
pos token.Position
backtrace string
reporter Reporter
}
pub struct Warning {
pub:
message string
details string
file_path string
pos token.Position
reporter Reporter
}