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

Function forEachConstructionCallExpr

lint/constructor_command_exec.go:108–114  ·  view source on GitHub ↗

forEachConstructionCallExpr invokes fn for every call expression that runs as part of executing body.

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

Source from the content-addressed store, hash-verified

106// forEachConstructionCallExpr invokes fn for every call expression that runs as
107// part of executing body.
108func forEachConstructionCallExpr(body *ast.BlockStmt, fn func(*ast.CallExpr)) {
109 inspectConstructionBody(body, func(n ast.Node) {
110 if call, ok := n.(*ast.CallExpr); ok {
111 fn(call)
112 }
113 })
114}

Calls 1

inspectConstructionBodyFunction · 0.85

Tested by

no test coverage detected