FIXME Should this be "SyntaxError"?
()
| 57 | // FIXME Should this be "SyntaxError"? |
| 58 | |
| 59 | func (self Error) Error() string { |
| 60 | filename := self.Position.Filename |
| 61 | if filename == "" { |
| 62 | filename = "(anonymous)" |
| 63 | } |
| 64 | return fmt.Sprintf("%s: Line %d:%d %s", |
| 65 | filename, |
| 66 | self.Position.Line, |
| 67 | self.Position.Column, |
| 68 | self.Message, |
| 69 | ) |
| 70 | } |
| 71 | |
| 72 | func (self *_parser) error(place interface{}, msg string, msgValues ...interface{}) *Error { |
| 73 | idx := file.Idx(0) |
no outgoing calls
no test coverage detected