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

Method ReportErrorAtID

policy/parser.go:963–965  ·  view source on GitHub ↗

ReportErrorAtID logs an error during parsing which is included in the issue set returned from a failed parse.

(id int64, format string, args ...any)

Source from the content-addressed store, hash-verified

961// ReportErrorAtID logs an error during parsing which is included in the issue set returned from
962// a failed parse.
963func (p *parserImpl) ReportErrorAtID(id int64, format string, args ...any) {
964 p.iss.ReportErrorAtID(id, format, args...)
965}
966
967func (p *parserImpl) checkMapValid(ctx ParserContext, id int64, node *yaml.Node) bool {
968 valid := len(node.Content)%2 == 0

Callers 4

ParseRuleMethod · 0.95
parseVariableInlineMethod · 0.95
parseMatchInternalMethod · 0.95
assertYAMLTypeMethod · 0.95

Calls 1

ReportErrorAtIDMethod · 0.65

Tested by

no test coverage detected