public get scopes()

in src/construct.ts [304:314]


  public get scopes(): IConstruct[] {
    const ret = new Array<IConstruct>();

    let curr: IConstruct | undefined = this.host;
    while (curr) {
      ret.unshift(curr);
      curr = curr.node.scope;
    }

    return ret;
  }