| 1 | module errors |
| 2 | |
| 3 | import v2.token |
| 4 | |
| 5 | pub enum Reporter { |
| 6 | scanner |
| 7 | parser |
| 8 | checker |
| 9 | builder |
| 10 | gen |
| 11 | } |
| 12 | |
| 13 | pub struct CompilerMessage { |
| 14 | pub: |
| 15 | message string |
| 16 | details string |
| 17 | file_path string |
| 18 | pos token.Pos |
| 19 | reporter Reporter |
| 20 | } |
| 21 | |
| 22 | pub struct Error { |
| 23 | CompilerMessage |
| 24 | } |
| 25 | |
| 26 | pub struct Warning { |
| 27 | CompilerMessage |
| 28 | } |
| 29 | |
| 30 | pub struct Notice { |
| 31 | CompilerMessage |
| 32 | } |
| 33 |