Error represents an error while parsing. The format of an Error is in the form "[ :][ : :] ". The error will contain positional information if available.
| 12 | // |
| 13 | // The error will contain positional information if available. |
| 14 | type Error interface { |
| 15 | error |
| 16 | // Unadorned message. |
| 17 | Message() string |
| 18 | // Closest position to error location. |
| 19 | Position() lexer.Position |
| 20 | } |
| 21 | |
| 22 | // FormatError formats an error in the form "[<filename>:][<line>:<pos>:] <message>" |
| 23 | func FormatError(err Error) string { |
no outgoing calls
no test coverage detected
searching dependent graphs…