1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | Object.defineProperty(exports, "__esModule", { value: true });
|
10 | exports.LazyFileEntry = exports.SimpleFileEntry = void 0;
|
11 | class SimpleFileEntry {
|
12 | constructor(_path, _content) {
|
13 | this._path = _path;
|
14 | this._content = _content;
|
15 | }
|
16 | get path() {
|
17 | return this._path;
|
18 | }
|
19 | get content() {
|
20 | return this._content;
|
21 | }
|
22 | }
|
23 | exports.SimpleFileEntry = SimpleFileEntry;
|
24 | class LazyFileEntry {
|
25 | constructor(_path, _load) {
|
26 | this._path = _path;
|
27 | this._load = _load;
|
28 | this._content = null;
|
29 | }
|
30 | get path() {
|
31 | return this._path;
|
32 | }
|
33 | get content() {
|
34 | return this._content || (this._content = this._load(this._path));
|
35 | }
|
36 | }
|
37 | exports.LazyFileEntry = LazyFileEntry;
|