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)
| 1074 | // which can be used with the `ReportErrorAtID` method for additional error reports within the context |
| 1075 | // information that's inferred from an expression id. |
| 1076 | func NewIssuesWithSourceInfo(errs *common.Errors, info *celast.SourceInfo) *Issues { |
| 1077 | return &Issues{ |
| 1078 | errs: errs, |
| 1079 | info: info, |
| 1080 | } |
| 1081 | } |
| 1082 | |
| 1083 | // Err returns an error value if the issues list contains one or more errors. |
| 1084 | func (i *Issues) Err() error { |
no outgoing calls
no test coverage detected