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

Method Output

policy/parser.go:328–333  ·  view source on GitHub ↗

Output returns the output expression, or empty expression if output is not set.

()

Source from the content-addressed store, hash-verified

326
327// Output returns the output expression, or empty expression if output is not set.
328func (m *Match) Output() ValueString {
329 if m.HasOutput() {
330 return *m.output
331 }
332 return ValueString{}
333}
334
335// HasExplanation indicates whether the explanation field is set of the match.
336func (m *Match) HasExplanation() bool {

Callers 4

exprLinesFromPolicyFunction · 0.45
MatchTagMethod · 0.45
recoverOriginalSourceFunction · 0.45
optimizeRuleMethod · 0.45

Calls 1

HasOutputMethod · 0.95

Tested by 1

exprLinesFromPolicyFunction · 0.36