Add appends an error at a position to the list of errors.
(pos *position.Position, msg string)
| 25 | |
| 26 | // Add appends an error at a position to the list of errors. |
| 27 | func (p *ErrorList) Add(pos *position.Position, msg string) { |
| 28 | if pos == nil { |
| 29 | pos = &position.Position{"", -1, -1, -1} |
| 30 | } |
| 31 | *p = append(*p, &compileError{*pos, msg}) |
| 32 | } |
| 33 | |
| 34 | // Append puts an ErrorList on the end of this ErrorList. |
| 35 | func (p *ErrorList) Append(l ErrorList) { |
no outgoing calls