Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Names ¶
type Names struct { MetaVar *ir.Name PkgIdVar *ir.Name InitFn *ir.Func CounterMode coverage.CounterMode CounterGran coverage.CounterGranularity }
Names records state information collected in the first fixup phase so that it can be passed to the second fixup phase.
func FixupVars ¶
func FixupVars() Names
FixupVars is the first of two entry points for coverage compiler fixup. It collects and returns the package ID and meta-data variables being used for this "-cover" build, along with the coverage counter mode and granularity. It also reclassifies selected variables (for example, tagging coverage counter variables with flags so that they can be handled properly downstream).
Click to show internal directories.
Click to hide internal directories.