소스 검색

add comment

yohei0125 3 년 전
부모
커밋
9b8d69dfe6
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      packages/app/src/server/service/page-operation.ts

+ 3 - 1
packages/app/src/server/service/page-operation.ts

@@ -168,7 +168,9 @@ class PageOperationService {
     clearInterval(timerObj);
   }
 
-  // get all ancestors paths
+  /**
+   * Get ancestor's paths using fromPath and toPath. Merge same paths if any.
+   */
   getAncestorsPathsByFromAndToPath(fromPath: string, toPath: string): string[] {
     const fromAncestorsPaths = collectAncestorPaths(fromPath);
     const toAncestorsPaths = collectAncestorPaths(toPath);