MCPcopy Index your code
hub / github.com/docker/docker-agent / forEachConstructionGoStmt

Function forEachConstructionGoStmt

lint/constructor_purity.go:124–130  ·  view source on GitHub ↗

forEachConstructionGoStmt invokes fn for every `go` statement that runs as part of executing body.

(body *ast.BlockStmt, fn func(*ast.GoStmt))

Source from the content-addressed store, hash-verified

122// forEachConstructionGoStmt invokes fn for every `go` statement that runs as
123// part of executing body.
124func forEachConstructionGoStmt(body *ast.BlockStmt, fn func(*ast.GoStmt)) {
125 inspectConstructionBody(body, func(n ast.Node) {
126 if g, ok := n.(*ast.GoStmt); ok {
127 fn(g)
128 }
129 })
130}

Callers 1

Calls 1

inspectConstructionBodyFunction · 0.85

Tested by

no test coverage detected