MCPcopy Create free account
hub / github.com/docker/docker-agent / calledFuncLit

Function calledFuncLit

lint/constructor_purity.go:109–120  ·  view source on GitHub ↗
(expr ast.Expr)

Source from the content-addressed store, hash-verified

107}
108
109func 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.

Callers 1

inspectConstructionNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected