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

Method SetSemantic

policy/parser.go:223–228  ·  view source on GitHub ↗

SetSemantic configures the evaluation semantic for the rule.

(s SemanticType)

Source from the content-addressed store, hash-verified

221
222// SetSemantic configures the evaluation semantic for the rule.
223func (r *Rule) SetSemantic(s SemanticType) {
224 if r.semantic != unspecified && r.semantic != s {
225 return
226 }
227 r.semantic = s
228}
229
230// SourceID returns the source identifier associated with the rule.
231func (r *Rule) SourceID() int64 {

Callers 2

ParseRuleMethod · 0.95

Calls

no outgoing calls

Tested by 1