nolint: golint ParseError is returned when a parse error occurs. It is useful for differentiating between parse errors and other errors such as lexing and IO errors.
| 64 | // It is useful for differentiating between parse errors and other errors such |
| 65 | // as lexing and IO errors. |
| 66 | type ParseError struct { |
| 67 | Msg string |
| 68 | Pos lexer.Position |
| 69 | } |
| 70 | |
| 71 | func (p *ParseError) Error() string { return FormatError(p) } |
| 72 | func (p *ParseError) Message() string { return p.Msg } |
nothing calls this directly
no outgoing calls
no test coverage detected