Documentation ¶
Overview ¶
This file may have been modified by Bytedance Ltd. and/or its affiliates (“Bytedance's Modifications”). All Bytedance's Modifications are Copyright (2022) Bytedance Ltd. and/or its affiliates.
This file may have been modified by Bytedance Ltd. and/or its affiliates (“Bytedance's Modifications”). All Bytedance's Modifications are Copyright (2022) Bytedance Ltd. and/or its affiliates.
Index ¶
- Variables
- func BuildCallGraph(function *parsermodel.ProjectFunction, functionName string) *callgraph.Graph
- func GetFuncFileName(f *ssa.Function, prog *ssa.Program) string
- func GetFunctionCallGraph(option atgconstant.Options) (*parsermodel.ProjectFunction, *callgraph.Graph, error)
- func GetPackageFunction(option atgconstant.Options) (*parsermodel.ProjectFunction, error)
- func ParsePackage(file string) (program *parsermodel.ProjectProgram, err error)
- func ScanFuncBlocks(bacicBlocks []*ssa.BasicBlock, projectFunction *parsermodel.ProjectFunction, ...)
Constants ¶
This section is empty.
Variables ¶
var RepoCalls = &sync.Map{}
Functions ¶
func BuildCallGraph ¶
func BuildCallGraph(function *parsermodel.ProjectFunction, functionName string) *callgraph.Graph
func GetFunctionCallGraph ¶
func GetFunctionCallGraph(option atgconstant.Options) (*parsermodel.ProjectFunction, *callgraph.Graph, error)
GetFunctionCallGraph TODO: GetFunctionCallGraph this function was called many times by testcode.go, parser.go. Need to reduce this functions call. Because it can save our running time
func GetPackageFunction ¶
func GetPackageFunction(option atgconstant.Options) (*parsermodel.ProjectFunction, error)
GetPackageFunction gets all functions from the package, the tested function, the constant in the packages
func ParsePackage ¶
func ParsePackage(file string) (program *parsermodel.ProjectProgram, err error)
TODO: optimize this function
func ScanFuncBlocks ¶
func ScanFuncBlocks(bacicBlocks []*ssa.BasicBlock, projectFunction *parsermodel.ProjectFunction, parentNode *callgraph.Node, cg *callgraph.Graph)
Types ¶
This section is empty.