(ctx *cel.OptimizerContext, returnList, hasOptionalOutput bool)
| 257 | } |
| 258 | |
| 259 | func (opt *ruleComposerImpl) createBaseStep(ctx *cel.OptimizerContext, returnList, hasOptionalOutput bool) compositionStep { |
| 260 | if returnList { |
| 261 | return newNonOptionalCompositionStep(ctx, ctx.NewLiteral(types.True), ctx.NewList([]ast.Expr{}, []int32{})) |
| 262 | } |
| 263 | if hasOptionalOutput { |
| 264 | return newOptionalCompositionStep(ctx, ctx.NewLiteral(types.True), ctx.NewCall("optional.none")) |
| 265 | } |
| 266 | return nil |
| 267 | } |
| 268 | |
| 269 | func (opt *ruleComposerImpl) combineAggregate(ctx *cel.OptimizerContext, step, accumulatedStep compositionStep) compositionStep { |
| 270 | trueCondition := ctx.NewLiteral(types.True) |
no test coverage detected