Documentation
¶
Index ¶
- func EachInstr(fn *ssa.Function, visitor func(ssa.Instruction)) error
- func IsError(t types.Type) bool
- func IsTestRelatedFile(file *ast.File) bool
- func TryEachInstr(fn *ssa.Function, visitor func(ssa.Instruction) error) error
- type BuiltinFuncCallMatcher
- type CallMatcher
- type PkgFuncCallMatcher
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTestRelatedFile ¶
func TryEachInstr ¶
Types ¶
type BuiltinFuncCallMatcher ¶
type BuiltinFuncCallMatcher struct {
FuncName string
}
func NewBuiltinFuncCallMatcher ¶
func NewBuiltinFuncCallMatcher(funcName string) BuiltinFuncCallMatcher
func (BuiltinFuncCallMatcher) MatchesSSA ¶
func (m BuiltinFuncCallMatcher) MatchesSSA(common *ssa.CallCommon) bool
type CallMatcher ¶
type PkgFuncCallMatcher ¶
func NewPkgFuncCallMatcher ¶
func NewPkgFuncCallMatcher(pkgPath, funcName string) PkgFuncCallMatcher
func (PkgFuncCallMatcher) MatchesSSA ¶
func (m PkgFuncCallMatcher) MatchesSSA(common *ssa.CallCommon) bool
Click to show internal directories.
Click to hide internal directories.