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

Method Semantic

policy/parser.go:215–220  ·  view source on GitHub ↗

Semantic returns the evaluation semantic for the rule.

()

Source from the content-addressed store, hash-verified

213
214// Semantic returns the evaluation semantic for the rule.
215func (r *Rule) Semantic() SemanticType {
216 if r.semantic == unspecified {
217 return firstMatch
218 }
219 return r.semantic
220}
221
222// SetSemantic configures the evaluation semantic for the rule.
223func (r *Rule) SetSemantic(s SemanticType) {

Callers 2

TestCompiledRuleSemanticFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestCompiledRuleSemanticFunction · 0.36