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)
| 984 | // which can be used with the `ReportErrorAtID` method for additional error reports within the context |
| 985 | // information that's inferred from an expression id. |
| 986 | func NewIssuesWithSourceInfo(errs *common.Errors, info *celast.SourceInfo) *Issues { |
| 987 | return &Issues{ |
| 988 | errs: errs, |
| 989 | info: info, |
| 990 | } |
| 991 | } |
| 992 | |
| 993 | // Err returns an error value if the issues list contains one or more errors. |
| 994 | func (i *Issues) Err() error { |
no outgoing calls
no test coverage detected