package callcheck
import "honnef.co/go/tools/analysis/callcheck"
Package callcheck provides a framework for validating arguments in function calls.
Index ¶
- func Analyzer(rules map[string]Check) func(pass *analysis.Pass) (interface{}, error)
- func ExtractConst(v Value) *ir.Const
- func ExtractConstExpectKind(v Value, kind constant.Kind) *ir.Const
- type Argument
- type Call
- type Check
- type Value
Functions ¶
func Analyzer ¶
func ExtractConst ¶
func ExtractConstExpectKind ¶
Types ¶
type Argument ¶
type Argument struct { Value Value // contains filtered or unexported fields }
func (*Argument) Invalid ¶
type Call ¶
type Call struct { Pass *analysis.Pass Instr ir.CallInstruction Args []*Argument Parent *ir.Function // contains filtered or unexported fields }
func (*Call) Invalid ¶
type Check ¶
type Check func(call *Call)
type Value ¶
Source Files ¶
callcheck.go
- Version
- v0.6.0-0.dev
- Published
- Aug 13, 2024
- Platform
- windows/amd64
- Imports
- 10 packages
- Last checked
- 26 minutes ago –
Tools for package owners.