in src/construct.ts [328:338]
public get locked() { if (this._locked) { return true; } if (this.scope && this.scope.node.locked) { return true; } return false; }