Documentation
¶
Index ¶
- func File(pass *analysis.Pass, pos token.Pos) *ast.File
- func GetEnclosingFuncWithSSA(pass *analysis.Pass, ce *ast.CallExpr, ssaPkg *ssa.Package) *ssa.Function
- func GetObjFromCe(ce *ast.CallExpr, info *types.Info) types.Object
- func LoadPackages(paths []string) []*packages.Package
- type Exclusions
- type Navigator
- func (n *Navigator) GetCallInstructionFromSSAFunc(enclosingFunc *ssa.Function, expr *ast.CallExpr) ssa.CallInstruction
- func (n *Navigator) GetCalledFunctionUsingEnclosing(enclosingFunc *ssa.Function, ce *ast.CallExpr) *ssa.Function
- func (n *Navigator) GetModuleName(typesPkg *types.Package) string
- func (n *Navigator) MapRoutes(paths []string)
- func (n *Navigator) PassesExclusions(pos token.Position, pkg string) bool
- func (n *Navigator) PrintResults(format string, fileName string)
- func (n *Navigator) RecordGlobals(gen *ast.GenDecl, pass *analysis.Pass)
- func (n *Navigator) RecordLocals(gen *ast.AssignStmt, pass *analysis.Pass)
- func (n *Navigator) Run(pass *analysis.Pass) (interface{}, error)
- func (n *Navigator) SSAPkgFromTypesPackage(pkg *types.Package) *ssa.Package
- func (n *Navigator) SolveCallPaths(options callmapper.Options)
- func (n *Navigator) SolvePathsSlow()
- type SSA
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnclosingFuncWithSSA ¶
func LoadPackages ¶
Types ¶
type Exclusions ¶
type Navigator ¶
type Navigator struct {}
func (*Navigator) GetCallInstructionFromSSAFunc ¶
func (*Navigator) GetCalledFunctionUsingEnclosing ¶
func (*Navigator) PassesExclusions ¶
func (*Navigator) PrintResults ¶
func (*Navigator) RecordGlobals ¶
func (*Navigator) RecordLocals ¶
func (n *Navigator) RecordLocals(gen *ast.AssignStmt, pass *analysis.Pass)
func (*Navigator) SSAPkgFromTypesPackage ¶
func (*Navigator) SolveCallPaths ¶
func (n *Navigator) SolveCallPaths(options callmapper.Options)
func (*Navigator) SolvePathsSlow ¶
func (n *Navigator) SolvePathsSlow()
TODO: very slow function as it checks every node, one by one, and whether it has a path to any of the matches. At the moment, not used and only prints results for testing
Click to show internal directories.
Click to hide internal directories.