MCPcopy Create free account
hub / github.com/eandre/discover / replaceStmt

Method replaceStmt

trim.go:62–184  ·  view source on GitHub ↗

replaceStmt returns the (possibly many) statements that should replace stmt. Generally a stmt is untouched or removed, but in some cases a single stmt can result in multiple statements. This is usually only the case when removing a block that was not taken, but pulling out function calls that were p

(stmt ast.Stmt)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

VisitMethod · 0.95

Calls 3

visitedMethod · 0.95
findCallMethod · 0.95
visitedAndMattersMethod · 0.95

Tested by

no test coverage detected