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

Method addTerm

parser/helper.go:287–290  ·  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

285
286// addTerm adds an operation identifier and term to the set of terms to be balanced.
287func (l *logicManager) addTerm(op int64, term ast.Expr) {
288 l.terms = append(l.terms, term)
289 l.ops = append(l.ops, op)
290}
291
292// toExpr renders the logic graph into an Expr value, either balancing a tree of logical
293// 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