NewError creates an error associated with an expression id with the given message at the given location.
(id int64, message string, location Location)
| 22 | |
| 23 | // NewError creates an error associated with an expression id with the given message at the given location. |
| 24 | func NewError(id int64, message string, location Location) *Error { |
| 25 | return &Error{Message: message, Location: location, ExprID: id} |
| 26 | } |
| 27 | |
| 28 | // Error type which references an expression id, a location within source, and a message. |
| 29 | type Error struct { |
no outgoing calls
no test coverage detected