(ctx *OptimizerContext, expr ast.Expr)
| 190 | } |
| 191 | |
| 192 | func isLateBoundFunctionCall(ctx *OptimizerContext, expr ast.Expr) bool { |
| 193 | call := expr.AsCall() |
| 194 | function := ctx.Functions()[call.FunctionName()] |
| 195 | if function == nil { |
| 196 | return false |
| 197 | } |
| 198 | return function.HasLateBinding() |
| 199 | } |
| 200 | |
| 201 | // maybePruneBranches inspects the non-strict call expression to determine whether |
| 202 | // a branch can be removed. Evaluation will naturally prune logical and / or calls, |
no test coverage detected