1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | Object.defineProperty(exports, "__esModule", { value: true });
|
10 | exports.DelegateTree = void 0;
|
11 | const interface_1 = require("./interface");
|
12 | class DelegateTree {
|
13 | constructor(_other) {
|
14 | this._other = _other;
|
15 | }
|
16 | branch() {
|
17 | return this._other.branch();
|
18 | }
|
19 | merge(other, strategy) {
|
20 | this._other.merge(other, strategy);
|
21 | }
|
22 | get root() {
|
23 | return this._other.root;
|
24 | }
|
25 |
|
26 | read(path) {
|
27 | return this._other.read(path);
|
28 | }
|
29 | readText(path) {
|
30 | return this._other.readText(path);
|
31 | }
|
32 | readJson(path) {
|
33 | return this._other.readJson(path);
|
34 | }
|
35 | exists(path) {
|
36 | return this._other.exists(path);
|
37 | }
|
38 | get(path) {
|
39 | return this._other.get(path);
|
40 | }
|
41 | getDir(path) {
|
42 | return this._other.getDir(path);
|
43 | }
|
44 | visit(visitor) {
|
45 | return this._other.visit(visitor);
|
46 | }
|
47 |
|
48 | overwrite(path, content) {
|
49 | return this._other.overwrite(path, content);
|
50 | }
|
51 | beginUpdate(path) {
|
52 | return this._other.beginUpdate(path);
|
53 | }
|
54 | commitUpdate(record) {
|
55 | return this._other.commitUpdate(record);
|
56 | }
|
57 |
|
58 | create(path, content) {
|
59 | return this._other.create(path, content);
|
60 | }
|
61 | delete(path) {
|
62 | return this._other.delete(path);
|
63 | }
|
64 | rename(from, to) {
|
65 | return this._other.rename(from, to);
|
66 | }
|
67 | apply(action, strategy) {
|
68 | return this._other.apply(action, strategy);
|
69 | }
|
70 | get actions() {
|
71 | return this._other.actions;
|
72 | }
|
73 | [interface_1.TreeSymbol]() {
|
74 | return this;
|
75 | }
|
76 | }
|
77 | exports.DelegateTree = DelegateTree;
|