Last change
on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
952 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | /**
|
---|
3 | * @license
|
---|
4 | * Copyright Google LLC All Rights Reserved.
|
---|
5 | *
|
---|
6 | * Use of this source code is governed by an MIT-style license that can be
|
---|
7 | * found in the LICENSE file at https://angular.io/license
|
---|
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;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.