示例#1
0
 /// <summary>
 /// make a more adjustive DOI algorithm
 /// </summary>
 /// <param name="cur"></param>
 /// <param name="dest"></param>
 /// <returns></returns>
 int makeDOI(LineEntity cur, LineEntity dest) 
 {
     //another hard code fix, a line 549 bug, 
     //if (cur == null || dest == null) return -1;
     if (cur.Equals(dest)) return 0;
     int dist = GetDistInAST(cur, dest);
     return (-dest.LineDepth - dist);                              //here can be more complext formular
 }