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

Function NewIssuesWithSourceInfo

cel/env.go:986–991  ·  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

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.
986func 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.
994func (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