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

Method addTerm

parser/helper.go:291–294  ·  view source on GitHub ↗

addTerm adds an operation identifier and term to the set of terms to be balanced.

(op int64, term ast.Expr)

Source from the content-addressed store, hash-verified

289
290// addTerm adds an operation identifier and term to the set of terms to be balanced.
291func (l *logicManager) addTerm(op int64, term ast.Expr) {
292 l.terms = append(l.terms, term)
293 l.ops = append(l.ops, op)
294}
295
296// toExpr renders the logic graph into an Expr value, either balancing a tree of logical
297// operations or creating a variadic representation of the logical operator.

Callers 2

VisitConditionalOrMethod · 0.80
VisitConditionalAndMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected