MCPcopy
hub / github.com/golang/tools / Fact

Interface Fact

go/analysis/analysis.go:248–250  ·  view source on GitHub ↗

A Fact is an intermediate fact produced during analysis. Each fact is associated with a named declaration (a types.Object) or with a package as a whole. A single object or package may have multiple associated facts, but only one of any particular fact type. A Fact represents a predicate such as "n

Source from the content-addressed store, hash-verified

246//
247// A Fact should not be modified once exported.
248type Fact interface {
249 AFact() // dummy method to avoid type errors
250}
251
252// A Module describes the module to which a package belongs.
253type Module struct {

Callers

nothing calls this directly

Implementers 13

deprecationFactgopls/internal/analysis/deprecated/dep
pkgdeclsFactgo/analysis/checker/example_test.go
featuresFactgo/analysis/passes/usesgenerics/usesge
newLikego/analysis/passes/modernize/newexpr.g
foundFactgo/analysis/passes/findcall/findcall.g
goFixInlineFuncFactgo/analysis/passes/inline/inline.go
goFixInlineConstFactgo/analysis/passes/inline/inline.go
goFixInlineAliasFactgo/analysis/passes/inline/inline.go
noReturngo/analysis/passes/ctrlflow/ctrlflow.g
isWrappergo/analysis/passes/printf/printf.go
EmptyFactgo/analysis/internal/checker/checker_t
myFactinternal/facts/facts_test.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…