MCPcopy Create free account
hub / github.com/cel-expr/cel-go / NewIssuesWithSourceInfo

Function NewIssuesWithSourceInfo

cel/env.go:1198–1203  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
1198func 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.
1206func (i *Issues) Err() error {

Callers 5

ParseMethod · 0.92
CompileRuleFunction · 0.92
CheckMethod · 0.85
NewIssuesFunction · 0.85
AppendMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected