Home Reference Source
import Dependencies from 'dum/src/private/Dependencies.js'
public class | source

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:

NameTypeAttributeDescription
depender *

Path relative to inDir

dependencies string[]

Paths relative to inDir

public deleteDepender(depender: *) source

Remove a depender from the map. It won't be returned from getDependers any more.

Params:

NameTypeAttributeDescription
depender *

Path relative to inDir

public getDependers(dependency: *): * source

All files that depend on the dependency.

Params:

NameTypeAttributeDescription
dependency *

Path relative to inDir

Return:

*