(p *cop.Pass, call *ast.CallExpr)
| 54 | } |
| 55 | |
| 56 | func commandConstructorCall(p *cop.Pass, call *ast.CallExpr) (string, bool) { |
| 57 | if name, ok := osExecFuncName(calleeObject(p.Info, call)); ok { |
| 58 | return name, true |
| 59 | } |
| 60 | return cop.CallTo(call, "exec", "Command", "CommandContext") |
| 61 | } |
| 62 | |
| 63 | // calleeObject resolves the object a call's callee denotes, whether the callee |
| 64 | // is a bare identifier (f()) or a selector (pkg.F() / recv.F()). Returns nil |
no test coverage detected