Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitFuncDuplManager ¶
Types ¶
type FuncDuplManager ¶
type FuncDuplManager struct {
// contains filtered or unexported fields
}
var GlobalFuncDuplManager *FuncDuplManager
func (*FuncDuplManager) AddDuplFrag ¶
func (m *FuncDuplManager) AddDuplFrag(funcNode *Node, duplStartLine, duplEndLine int)
func (*FuncDuplManager) BothFuncNeedExceedRatio ¶
func (m *FuncDuplManager) BothFuncNeedExceedRatio() bool
func (*FuncDuplManager) Exist ¶
func (m *FuncDuplManager) Exist(fileName string, funcPos int) (exist bool)
func (*FuncDuplManager) RemoveFuncLessRatio ¶
func (m *FuncDuplManager) RemoveFuncLessRatio()
type Match ¶
func FindFuncUnits ¶
func FindSyntaxUnits ¶
func FindSyntaxUnits(data []*Node, m suffixtree.Match, threshold int) Match
FindSyntaxUnits finds all complete syntax units in the match group and returns them with the corresponding hash.
Click to show internal directories.
Click to hide internal directories.