Documentation
¶
Index ¶
- func BuildSSA(pkg *packages.Package) (*buildssa.SSA, error)
- func FLC(position token.Position) string
- func GetCommentVerb(c *ast.Comment, prefix string) (string, string, bool)
- func GetPosition(pkg *ssa.Package, pos []token.Pos) token.Position
- func HasCommentPrefix(c *ast.Comment, prefix string) bool
- func Include(u, v ast.Node) bool
- func InstrToCallCommon(instr ssa.Instruction) (*ssa.CallCommon, bool)
- func IsFunc(common *ssa.CallCommon, pkgPath, funcName string) bool
- func LoadPackages(dir string, patterns ...string) ([]*packages.Package, error)
- func Unquote(str string) (string, error)
- func ValueToCallCommon(value ssa.Value) (*ssa.CallCommon, bool)
- func ValueToStrings(v ssa.Value) ([]string, bool)
- func WalkCommentGroup(fset *token.FileSet, files []*ast.File, ...)
- type FuncInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstrToCallCommon ¶
func InstrToCallCommon(instr ssa.Instruction) (*ssa.CallCommon, bool)
func LoadPackages ¶
LoadPackages https://github.com/golang/tools/blob/master/go/analysis/analysistest/analysistest.go
func ValueToCallCommon ¶
func ValueToCallCommon(value ssa.Value) (*ssa.CallCommon, bool)
Types ¶
Click to show internal directories.
Click to hide internal directories.