Dependencies
Keeps track of all the files that depend on each dependency.
(A dependency is a file whose name starts with _
.)
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
addDepender(depender: *, dependencies: string[]) Acknowledge the dependencies of a file. |
|
public |
deleteDepender(depender: *) Remove a depender from the map. |
|
public |
getDependers(dependency: *): * All files that depend on the dependency. |
Public Constructors
public constructor source
Public Methods
public addDepender(depender: *, dependencies: string[]) source
Acknowledge the dependencies of a file.
Params:
Name | Type | Attribute | Description |
depender | * | Path relative to |
|
dependencies | string[] | Paths relative to |
public deleteDepender(depender: *) source
Remove a depender from the map.
It won't be returned from getDependers
any more.
Params:
Name | Type | Attribute | Description |
depender | * | Path relative to |
public getDependers(dependency: *): * source
All files that depend on the dependency.
Params:
Name | Type | Attribute | Description |
dependency | * | Path relative to |
Return:
* |