| 118 | return new ScopedTree(this._base.branch(), this._root.scope); |
| 119 | } |
| 120 | merge(other: Tree, strategy?: MergeStrategy): void { |
| 121 | // eslint-disable-next-line @typescript-eslint/no-this-alias |
| 122 | const self = this; |
| 123 | const delegate = new (class extends DelegateTree { |
| 124 | override get actions(): Action[] { |
| 125 | return other.actions.map((action) => self._fullPathAction(action)); |
| 126 | } |
| 127 | })(other); |
| 128 | |
| 129 | this._base.merge(delegate, strategy); |
| 130 | } |
| 131 | |
| 132 | // Readonly. |
| 133 | read(path: string): Buffer | null { |