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