type Errors … // NewErrors creates a new instance of the Errors type. func NewErrors(source Source) *Errors { … } // ReportError records an error at a source location. func (e *Errors) ReportError(l Location, format string, args ...any) { … } // ReportErrorAtID records an error at a source location and expression id. func (e *Errors) ReportErrorAtID(id int64, l Location, format string, args ...any) { … } // GetErrors returns the list of observed errors. func (e *Errors) GetErrors() []*Error { … } // Append creates a new Errors object with the current and input errors. func (e *Errors) Append(errs []*Error) *Errors { … } // ToDisplayString returns the error set to a newline delimited string. func (e *Errors) ToDisplayString() string { … }