- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isWrapper (0.14 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go
return KindPrintf } else { return KindPrint } } return r.funcs[fn] } // isWrapper is a fact indicating that a function is a print or printf wrapper. type isWrapper struct{ Kind Kind } func (f *isWrapper) AFact() {} func (f *isWrapper) String() string { switch f.Kind { case KindPrintf: return "printfWrapper" case KindPrint: return "printWrapper"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 32.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/doc.go
package. An Analyzer that uses facts must declare their types: var Analyzer = &analysis.Analyzer{ Name: "printf", FactTypes: []analysis.Fact{new(isWrapper)}, ... } type isWrapper struct{} // => *types.Func f “is a printf wrapper” The driver program ensures that facts for a pass’s dependencies are generated before analyzing the package and is responsible for propagating
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.3K bytes - Viewed (0)