aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/tree/null.js
diff options
context:
space:
mode:
authorDanijel Andjelkovic <adanijel99@gmail.com>2022-03-01 21:54:41 +0100
committerDanijel Andjelkovic <adanijel99@gmail.com>2022-03-01 21:54:41 +0100
commit6c8128f9fd5a5d0be115806c35a21b3d683df8d6 (patch)
treef46c2f6b3b9b294ff32bd75c08ccdc9e7a8cc4ef /sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/tree/null.js
parent2400b84e95913665da6279114168148444b8f9ab (diff)
parent7d3640f824f46490b47bd95f1c5a16644f712068 (diff)
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into logo
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/tree/null.js')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/tree/null.js92
1 files changed, 92 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/tree/null.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/tree/null.js
new file mode 100644
index 00000000..007e5bbe
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/tree/null.js
@@ -0,0 +1,92 @@
+"use strict";
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.io/license
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.NullTree = exports.NullTreeDirEntry = exports.CannotCreateFileException = void 0;
+const core_1 = require("@angular-devkit/core");
+const exception_1 = require("../exception/exception");
+const interface_1 = require("./interface");
+const recorder_1 = require("./recorder");
+class CannotCreateFileException extends core_1.BaseException {
+ constructor(path) {
+ super(`Cannot create file "${path}".`);
+ }
+}
+exports.CannotCreateFileException = CannotCreateFileException;
+class NullTreeDirEntry {
+ constructor(path) {
+ this.path = path;
+ this.subdirs = [];
+ this.subfiles = [];
+ }
+ get parent() {
+ return this.path == '/' ? null : new NullTreeDirEntry((0, core_1.dirname)(this.path));
+ }
+ dir(name) {
+ return new NullTreeDirEntry((0, core_1.join)(this.path, name));
+ }
+ file(_name) {
+ return null;
+ }
+ visit() { }
+}
+exports.NullTreeDirEntry = NullTreeDirEntry;
+class NullTree {
+ constructor() {
+ this.root = new NullTreeDirEntry((0, core_1.normalize)('/'));
+ }
+ [interface_1.TreeSymbol]() {
+ return this;
+ }
+ branch() {
+ return new NullTree();
+ }
+ merge(_other, _strategy) { }
+ // Simple readonly file system operations.
+ exists(_path) {
+ return false;
+ }
+ read(_path) {
+ return null;
+ }
+ get(_path) {
+ return null;
+ }
+ getDir(path) {
+ return new NullTreeDirEntry((0, core_1.normalize)('/' + path));
+ }
+ visit() { }
+ // Change content of host files.
+ beginUpdate(path) {
+ throw new exception_1.FileDoesNotExistException(path);
+ }
+ commitUpdate(record) {
+ throw new exception_1.FileDoesNotExistException(record instanceof recorder_1.UpdateRecorderBase ? record.path : '<unknown>');
+ }
+ // Change structure of the host.
+ copy(path, _to) {
+ throw new exception_1.FileDoesNotExistException(path);
+ }
+ delete(path) {
+ throw new exception_1.FileDoesNotExistException(path);
+ }
+ create(path, _content) {
+ throw new CannotCreateFileException(path);
+ }
+ rename(path, _to) {
+ throw new exception_1.FileDoesNotExistException(path);
+ }
+ overwrite(path, _content) {
+ throw new exception_1.FileDoesNotExistException(path);
+ }
+ apply(_action, _strategy) { }
+ get actions() {
+ return [];
+ }
+}
+exports.NullTree = NullTree;