NewError creates and returns new Error
(msg string, p *position.Position)
| 14 | |
| 15 | // NewError creates and returns new Error |
| 16 | func NewError(msg string, p *position.Position) *Error { |
| 17 | return &Error{ |
| 18 | Msg: msg, |
| 19 | Pos: p, |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | func (e *Error) String() string { |
| 24 | atLine := "" |
no outgoing calls
searching dependent graphs…