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