(ctx *OptimizerContext, expr ast.Expr)
| 200 | } |
| 201 | |
| 202 | func isAsyncFunctionCall(ctx *OptimizerContext, expr ast.Expr) bool { |
| 203 | call := expr.AsCall() |
| 204 | function := ctx.Functions()[call.FunctionName()] |
| 205 | if function == nil { |
| 206 | return false |
| 207 | } |
| 208 | return function.IsAsync() |
| 209 | } |
| 210 | |
| 211 | // maybePruneBranches inspects the non-strict call expression to determine whether |
| 212 | // a branch can be removed. Evaluation will naturally prune logical and / or calls, |
no test coverage detected