(options ...EvalOption)
| 141 | } |
| 142 | |
| 143 | func newEvalOptions(options ...EvalOption) EvalOptions { |
| 144 | ops := EvalOptions{} |
| 145 | allPredicates := func(ast.PredicateSym) bool { |
| 146 | return true |
| 147 | } |
| 148 | ops.predicateAllowList = &allPredicates |
| 149 | ops.externalPredicates = make(map[ast.PredicateSym]ExternalPredicateCallback) |
| 150 | for _, o := range options { |
| 151 | o(&ops) |
| 152 | } |
| 153 | return ops |
| 154 | } |
| 155 | |
| 156 | // EvalProgramWithStats evaluates a given program on the given facts, modifying the fact store in the process. |
| 157 | // Deprecated: use EvalStratifiedProgramWithStats instead. |
no outgoing calls
no test coverage detected