(expr ast.Expr)
| 107 | } |
| 108 | |
| 109 | func calledFuncLit(expr ast.Expr) *ast.FuncLit { |
| 110 | for { |
| 111 | switch e := expr.(type) { |
| 112 | case *ast.FuncLit: |
| 113 | return e |
| 114 | case *ast.ParenExpr: |
| 115 | expr = e.X |
| 116 | default: |
| 117 | return nil |
| 118 | } |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | // forEachConstructionGoStmt invokes fn for every `go` statement that runs as |
| 123 | // part of executing body. |
no outgoing calls
no test coverage detected