Documentation ¶
Index ¶
Constants ¶
View Source
const ( UNCHANGED = iota // 不变 INSERTED // 新增 REMOVED // 删除 CHANGED // 变化 AFFECTED // 传播中受到了影响 )
Variables ¶
This section is empty.
Functions ¶
func GenerateLegend ¶
Types ¶
type DiffEdge ¶
func NewDiffEdgeHelper ¶
type DiffGraph ¶
func (*DiffGraph) CalcAffected ¶
func (g *DiffGraph) CalcAffected()
func (*DiffGraph) DebugDiffGraph ¶
func (g *DiffGraph) DebugDiffGraph()
func (*DiffGraph) OutputDiffGraph ¶
func (g *DiffGraph) OutputDiffGraph(o *common.DiffOptions)
type DiffNode ¶
type DiffNode struct { Name string //函数名称 Difference DiffType //0本身代码无变化,1新增,2删除,3本身的代码改变 CallEdge map[string]*DiffEdge //调用的函数,map[调用的函数名称] }
func NewDiffNodeHelper ¶
func NewDiffNodeHelper() *DiffNode
func (*DiffNode) GetFuncName ¶
func (*DiffNode) GetPkgName ¶
func (*DiffNode) GetPrettyName ¶
Click to show internal directories.
Click to hide internal directories.