Add adds an Error with given position and message to an ErrorList.
(position file.Position, msg string)
| 126 | |
| 127 | // Add adds an Error with given position and message to an ErrorList. |
| 128 | func (self *ErrorList) Add(position file.Position, msg string) { |
| 129 | *self = append(*self, &Error{position, msg}) |
| 130 | } |
| 131 | |
| 132 | // Reset resets an ErrorList to no errors. |
| 133 | func (self *ErrorList) Reset() { *self = (*self)[0:0] } |