NewIssuesWithSourceInfo returns an Issues struct from a common.Errors object with SourceInfo metatata which can be used with the `ReportErrorAtID` method for additional error reports within the context information that's inferred from an expression id.
(errs *common.Errors, info *celast.SourceInfo)
| 1196 | // which can be used with the `ReportErrorAtID` method for additional error reports within the context |
| 1197 | // information that's inferred from an expression id. |
| 1198 | func NewIssuesWithSourceInfo(errs *common.Errors, info *celast.SourceInfo) *Issues { |
| 1199 | return &Issues{ |
| 1200 | errs: errs, |
| 1201 | info: info, |
| 1202 | } |
| 1203 | } |
| 1204 | |
| 1205 | // Err returns an error value if the issues list contains one or more errors. |
| 1206 | func (i *Issues) Err() error { |
no outgoing calls
no test coverage detected