( dependentPath: string, blockingPath: string, blockingTasks: Set<string> )
| 324 | } |
| 325 | |
| 326 | private addDependencyLink( |
| 327 | dependentPath: string, |
| 328 | blockingPath: string, |
| 329 | blockingTasks: Set<string> |
| 330 | ): void { |
| 331 | blockingTasks.add(blockingPath); |
| 332 | |
| 333 | if (!this.dependencyTargets.has(blockingPath)) { |
| 334 | this.dependencyTargets.set(blockingPath, new Set()); |
| 335 | } |
| 336 | this.dependencyTargets.get(blockingPath)!.add(dependentPath); |
| 337 | |
| 338 | if (!this.isCompletedPath(blockingPath)) { |
| 339 | this.addActiveDependencyLink(dependentPath, blockingPath); |
| 340 | } |
| 341 | } |
| 342 | |
| 343 | private addActiveDependencyLink(dependentPath: string, blockingPath: string): void { |
| 344 | if (!this.activeDependencySources.has(dependentPath)) { |
no test coverage detected