addTerm adds an operation identifier and term to the set of terms to be balanced.
(op int64, term ast.Expr)
| 285 | |
| 286 | // addTerm adds an operation identifier and term to the set of terms to be balanced. |
| 287 | func (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. |
no outgoing calls
no test coverage detected