Documentation
¶
Overview ¶
Package constfoldcensus enumerates every call site that simplifies or evaluates a constant at planning (RFC-257 WS-E design 5.4(b)): the value and predicate simplification entry points, the constant evaluators, the predicate simplifier driver, and every `Evaluate(nil)` / `Eval(nil)` call. Its test assigns each site a reason and fails on a site nobody assigned.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InPopulation ¶
InPopulation reports whether a module-relative slash path is a census file: a non-test, non-generated Go file under pkg/.
Types ¶
type Site ¶
type Site struct {
File, Func, Callee string
}
Site is one census key: the file (slash path from the module root), the enclosing top-level function (Recv.Name for a method), and the callee.
func ScanSource ¶
ScanSource returns the census sites of one non-test Go file. file is its slash path from the module root.