Versions in this module Expand all Collapse all v1 v1.0.0 Mar 2, 2023 Changes in this version + func GetConstructors(pkg *packages.Package) (constructorMap map[types.Type][]*ssa.Function) + func GetConstructorsByFunc(function Functions) (constructorMap map[string][]*ssa.Function) + func GetConstructorsByType(pkg *packages.Package, typeList []types.Type) (constructorMap map[string][]*ssa.Function) + func GetLiteralFromFile(SRCFile string, FunctionName string) (map[reflect.Type][]reflect.Value, error) + func GetTypeByAnalysisBlock(instr ssa.Instruction, reference map[interface{}]struct{}) + type CallGraph struct + CallerRelationMap map[string]*CallerRelation + RootFunc *FuncDesc + type CalleeRelation struct + Callee []FuncDesc + CanFix bool + type CallerRelation struct + Callees []FuncDesc + Caller FuncDesc + type FileVisitor struct + LiteralMap map[reflect.Type][]reflect.Value + func NewFileVisitor(functionName string) (v *FileVisitor) + func (v *FileVisitor) Visit(node ast.Node) ast.Visitor + type FuncDesc struct + Name string + Package string + Path string + type Functions struct + DateSteam map[interface{}]struct{} + FunctionName string + SRCFile string + TestFuncCallGraph *callgraph.Graph + TestFunction *parsermodel.ProjectFunction + func GetFunctions(option atgconstant.Options) (Functions, error) + type HeaderVisitor struct + LiteralMap map[reflect.Type][]reflect.Value + func NewHeaderVisitor() (v *HeaderVisitor) + func (v *HeaderVisitor) Visit(node ast.Node) ast.Visitor + type LiteralVisitor struct + LiteralMap map[reflect.Type][]reflect.Value + func NewLiteralVisitor() (v *LiteralVisitor) + func (lv *LiteralVisitor) Visit(node ast.Node) ast.Visitor