MCPcopy Create free account
hub / github.com/aws/constructs / constructor

Method constructor

src/dependency.ts:27–41  ·  view source on GitHub ↗
(...deps: IDependable[])

Source from the content-addressed store, hash-verified

25 private readonly _deps = new Array<IDependable>();
26
27 constructor(...deps: IDependable[]) {
28 const self = this;
29
30 Dependable.implement(this, {
31 get dependencyRoots() {
32 const result = new Array<IConstruct>();
33 for (const d of self._deps) {
34 result.push(...Dependable.of(d).dependencyRoots);
35 }
36 return result;
37 },
38 });
39
40 this.add(...deps);
41 }
42
43 /**
44 * Add a construct to the dependency roots

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected