source: trip-planner-front/node_modules/@angular-devkit/schematics/src/tree/interface.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.1 KB
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.TreeSymbol = exports.FileVisitorCancelToken = exports.MergeStrategy = void 0;
11var MergeStrategy;
12(function (MergeStrategy) {
13 MergeStrategy[MergeStrategy["AllowOverwriteConflict"] = 2] = "AllowOverwriteConflict";
14 MergeStrategy[MergeStrategy["AllowCreationConflict"] = 4] = "AllowCreationConflict";
15 MergeStrategy[MergeStrategy["AllowDeleteConflict"] = 8] = "AllowDeleteConflict";
16 // Uses the default strategy.
17 MergeStrategy[MergeStrategy["Default"] = 0] = "Default";
18 // Error out if 2 files have the same path. It is useful to have a different value than
19 // Default in this case as the tooling Default might differ.
20 MergeStrategy[MergeStrategy["Error"] = 1] = "Error";
21 // Only content conflicts are overwritten.
22 MergeStrategy[MergeStrategy["ContentOnly"] = 2] = "ContentOnly";
23 // Overwrite everything with the latest change.
24 MergeStrategy[MergeStrategy["Overwrite"] = 14] = "Overwrite";
25})(MergeStrategy = exports.MergeStrategy || (exports.MergeStrategy = {}));
26// eslint-disable-next-line @typescript-eslint/no-inferrable-types
27exports.FileVisitorCancelToken = Symbol();
28exports.TreeSymbol = (function () {
29 const globalSymbol = (typeof window == 'object' && window.window === window && window.Symbol) ||
30 (typeof self == 'object' && self.self === self && self.Symbol) ||
31 (typeof global == 'object' && global.global === global && global.Symbol);
32 if (!globalSymbol) {
33 return Symbol('schematic-tree');
34 }
35 if (!globalSymbol.schematicTree) {
36 globalSymbol.schematicTree = Symbol('schematic-tree');
37 }
38 return globalSymbol.schematicTree;
39})();
40// eslint-disable-next-line @typescript-eslint/no-namespace
41var Tree;
42(function (Tree) {
43 function isTree(maybeTree) {
44 return exports.TreeSymbol in maybeTree;
45 }
46 Tree.isTree = isTree;
47})(Tree || (Tree = {}));
Note: See TracBrowser for help on using the repository browser.