// NewError creates an error associated with an expression id with the given message at the given location. func NewError(id int64, message string, location Location) *Error { … } type Error … const dot … const ind … const wideDot … const wideInd … const maxSnippetLength … // ToDisplayString decorates the error message with the source location. func (e *Error) ToDisplayString(source Source) string { … }