* All parent scopes of this construct. * * @returns a list of parent scopes. The last element in the list will always * be the current construct and the first element will be the root of the * tree.
()
| 107 | * tree. |
| 108 | */ |
| 109 | public get scopes(): IConstruct[] { |
| 110 | // Needs to return a copy to make sure callers can't accidentally mutate |
| 111 | // internal state. jsii doesn't support ReadonlyArray. |
| 112 | return [...this._scopes]; |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * Returns an opaque tree-unique address for this construct. |
nothing calls this directly
no outgoing calls
no test coverage detected