source: trip-planner-front/node_modules/@angular-devkit/schematics/src/tree/entry.js@ 8d391a1

Last change on this file since 8d391a1 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 */
9Object.defineProperty(exports, "__esModule", { value: true });
10exports.LazyFileEntry = exports.SimpleFileEntry = void 0;
11class 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}
23exports.SimpleFileEntry = SimpleFileEntry;
24class 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}
37exports.LazyFileEntry = LazyFileEntry;
Note: See TracBrowser for help on using the repository browser.