MCPcopy Create free account
hub / github.com/DAddYE/igo / FilterFile

Function FilterFile

ast/filter.go:230–232  ·  view source on GitHub ↗

FilterFile trims the AST for a Go file in place by removing all names from top-level declarations (including struct field and interface method names, but not from parameter lists) that don't pass through the filter f. If the declaration is empty afterwards, the declaration is removed from the AST. T

(src *File, f Filter)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

filterFileFunction · 0.85

Tested by

no test coverage detected