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

Function defaultCompileMatchOutput

policy/compiler.go:415–418  ·  view source on GitHub ↗
(mc MatchCompiler, m *Match, p *Policy)

Source from the content-addressed store, hash-verified

413}
414
415func defaultCompileMatchOutput(mc MatchCompiler, m *Match, p *Policy) (*cel.Ast, *cel.Issues) {
416 outSrc := mc.RelSource(m.Output())
417 return mc.Env().CompileSource(outSrc)
418}
419
420func (c *compiler) checkMatchOutputTypesAgree(rule *CompiledRule, iss *cel.Issues) {
421 var outputType *cel.Type

Callers

nothing calls this directly

Calls 4

CompileSourceMethod · 0.80
RelSourceMethod · 0.65
EnvMethod · 0.65
OutputMethod · 0.45

Tested by

no test coverage detected