MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / addDependencyLink

Method addDependencyLink

src/utils/DependencyCache.ts:326–341  ·  view source on GitHub ↗
(
		dependentPath: string,
		blockingPath: string,
		blockingTasks: Set<string>
	)

Source from the content-addressed store, hash-verified

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)) {

Callers 1

indexTaskFileMethod · 0.95

Calls 5

isCompletedPathMethod · 0.95
hasMethod · 0.80
setMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected