* Add an ordering dependency on a Dependable (a construct or set of constructs) * * It is up to the target document language to decide what an ordering * relationship means and how it should be rendered; for example, in the AWS * CDK for CloudFormation it means a dependency from every re
(...deps: IDependable[])
| 391 | * be involved in the dependency relationship. |
| 392 | */ |
| 393 | public addDependency(...deps: IDependable[]) { |
| 394 | if (!this._dependencies) { |
| 395 | this._dependencies = new Set(); |
| 396 | } |
| 397 | for (const d of deps) { |
| 398 | this._dependencies.add(d); |
| 399 | } |
| 400 | } |
| 401 | |
| 402 | /** |
| 403 | * Remove an ordering dependency on a Dependenable (a construct or set of constructs) |