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

Function newBalancingLogicManager

parser/helper.go:317–325  ·  view source on GitHub ↗

newBalancingLogicManager creates a logic manager instance bound to a specific function and its first term.

(fac ast.ExprFactory, function string, term ast.Expr)

Source from the content-addressed store, hash-verified

315
316// newBalancingLogicManager creates a logic manager instance bound to a specific function and its first term.
317func newBalancingLogicManager(fac ast.ExprFactory, function string, term ast.Expr) *logicManager {
318 return &logicManager{
319 exprFactory: fac,
320 function: function,
321 terms: []ast.Expr{term},
322 ops: []int64{},
323 variadicASTs: false,
324 }
325}
326
327// addTerm adds an operation identifier and term to the set of terms to be balanced.
328func (l *logicManager) addTerm(op int64, term ast.Expr) {

Callers 2

newLogicManagerMethod · 0.85
newLogicManagerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected