(ctx *OptimizerContext, expr ast.Expr)
| 169 | } |
| 170 | |
| 171 | func isLateBoundFunctionCall(ctx *OptimizerContext, expr ast.Expr) bool { |
| 172 | call := expr.AsCall() |
| 173 | function := ctx.Functions()[call.FunctionName()] |
| 174 | if function == nil { |
| 175 | return false |
| 176 | } |
| 177 | return function.HasLateBinding() |
| 178 | } |
| 179 | |
| 180 | // maybePruneBranches inspects the non-strict call expression to determine whether |
| 181 | // a branch can be removed. Evaluation will naturally prune logical and / or calls, |
no test coverage detected