source: trip-planner-front/node_modules/@angular/compiler-cli/src/metadata/schema.js

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

initial commit

  • Property mode set to 100644
File size: 24.3 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8(function (factory) {
9 if (typeof module === "object" && typeof module.exports === "object") {
10 var v = factory(require, exports);
11 if (v !== undefined) module.exports = v;
12 }
13 else if (typeof define === "function" && define.amd) {
14 define("@angular/compiler-cli/src/metadata/schema", ["require", "exports"], factory);
15 }
16})(function (require, exports) {
17 "use strict";
18 Object.defineProperty(exports, "__esModule", { value: true });
19 exports.isMetadataError = exports.isMetadataSymbolicSpreadExpression = exports.isMetadataSymbolicSelectExpression = exports.isMetadataSymbolicReferenceExpression = exports.isMetadataImportDefaultReference = exports.isMetadataImportedSymbolReferenceExpression = exports.isMetadataModuleReferenceExpression = exports.isMetadataGlobalReferenceExpression = exports.isMetadataSymbolicIfExpression = exports.isMetadataSymbolicPrefixExpression = exports.isMetadataSymbolicCallExpression = exports.isMetadataSymbolicIndexExpression = exports.isMetadataSymbolicBinaryExpression = exports.isMetadataSymbolicExpression = exports.isFunctionMetadata = exports.isConstructorMetadata = exports.isMethodMetadata = exports.isMemberMetadata = exports.isInterfaceMetadata = exports.isClassMetadata = exports.isModuleMetadata = exports.METADATA_VERSION = void 0;
20 // Metadata Schema
21 // If you make a backwards incompatible change to the schema, increment the METADTA_VERSION number.
22 // If you make a backwards compatible change to the metadata (such as adding an option field) then
23 // leave METADATA_VERSION the same. If possible, supply as many versions of the metadata that can
24 // represent the semantics of the file in an array. For example, when generating a version 2 file,
25 // if version 1 can accurately represent the metadata, generate both version 1 and version 2 in
26 // an array.
27 exports.METADATA_VERSION = 4;
28 function isModuleMetadata(value) {
29 return value && value.__symbolic === 'module';
30 }
31 exports.isModuleMetadata = isModuleMetadata;
32 function isClassMetadata(value) {
33 return value && value.__symbolic === 'class';
34 }
35 exports.isClassMetadata = isClassMetadata;
36 function isInterfaceMetadata(value) {
37 return value && value.__symbolic === 'interface';
38 }
39 exports.isInterfaceMetadata = isInterfaceMetadata;
40 function isMemberMetadata(value) {
41 if (value) {
42 switch (value.__symbolic) {
43 case 'constructor':
44 case 'method':
45 case 'property':
46 return true;
47 }
48 }
49 return false;
50 }
51 exports.isMemberMetadata = isMemberMetadata;
52 function isMethodMetadata(value) {
53 return value && (value.__symbolic === 'constructor' || value.__symbolic === 'method');
54 }
55 exports.isMethodMetadata = isMethodMetadata;
56 function isConstructorMetadata(value) {
57 return value && value.__symbolic === 'constructor';
58 }
59 exports.isConstructorMetadata = isConstructorMetadata;
60 function isFunctionMetadata(value) {
61 return value && value.__symbolic === 'function';
62 }
63 exports.isFunctionMetadata = isFunctionMetadata;
64 function isMetadataSymbolicExpression(value) {
65 if (value) {
66 switch (value.__symbolic) {
67 case 'binary':
68 case 'call':
69 case 'index':
70 case 'new':
71 case 'pre':
72 case 'reference':
73 case 'select':
74 case 'spread':
75 case 'if':
76 return true;
77 }
78 }
79 return false;
80 }
81 exports.isMetadataSymbolicExpression = isMetadataSymbolicExpression;
82 function isMetadataSymbolicBinaryExpression(value) {
83 return value && value.__symbolic === 'binary';
84 }
85 exports.isMetadataSymbolicBinaryExpression = isMetadataSymbolicBinaryExpression;
86 function isMetadataSymbolicIndexExpression(value) {
87 return value && value.__symbolic === 'index';
88 }
89 exports.isMetadataSymbolicIndexExpression = isMetadataSymbolicIndexExpression;
90 function isMetadataSymbolicCallExpression(value) {
91 return value && (value.__symbolic === 'call' || value.__symbolic === 'new');
92 }
93 exports.isMetadataSymbolicCallExpression = isMetadataSymbolicCallExpression;
94 function isMetadataSymbolicPrefixExpression(value) {
95 return value && value.__symbolic === 'pre';
96 }
97 exports.isMetadataSymbolicPrefixExpression = isMetadataSymbolicPrefixExpression;
98 function isMetadataSymbolicIfExpression(value) {
99 return value && value.__symbolic === 'if';
100 }
101 exports.isMetadataSymbolicIfExpression = isMetadataSymbolicIfExpression;
102 function isMetadataGlobalReferenceExpression(value) {
103 return value && value.name && !value.module && isMetadataSymbolicReferenceExpression(value);
104 }
105 exports.isMetadataGlobalReferenceExpression = isMetadataGlobalReferenceExpression;
106 function isMetadataModuleReferenceExpression(value) {
107 return value && value.module && !value.name && !value.default &&
108 isMetadataSymbolicReferenceExpression(value);
109 }
110 exports.isMetadataModuleReferenceExpression = isMetadataModuleReferenceExpression;
111 function isMetadataImportedSymbolReferenceExpression(value) {
112 return value && value.module && !!value.name && isMetadataSymbolicReferenceExpression(value);
113 }
114 exports.isMetadataImportedSymbolReferenceExpression = isMetadataImportedSymbolReferenceExpression;
115 function isMetadataImportDefaultReference(value) {
116 return value && value.module && value.default && isMetadataSymbolicReferenceExpression(value);
117 }
118 exports.isMetadataImportDefaultReference = isMetadataImportDefaultReference;
119 function isMetadataSymbolicReferenceExpression(value) {
120 return value && value.__symbolic === 'reference';
121 }
122 exports.isMetadataSymbolicReferenceExpression = isMetadataSymbolicReferenceExpression;
123 function isMetadataSymbolicSelectExpression(value) {
124 return value && value.__symbolic === 'select';
125 }
126 exports.isMetadataSymbolicSelectExpression = isMetadataSymbolicSelectExpression;
127 function isMetadataSymbolicSpreadExpression(value) {
128 return value && value.__symbolic === 'spread';
129 }
130 exports.isMetadataSymbolicSpreadExpression = isMetadataSymbolicSpreadExpression;
131 function isMetadataError(value) {
132 return value && value.__symbolic === 'error';
133 }
134 exports.isMetadataError = isMetadataError;
135});
136//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29tcGlsZXItY2xpL3NyYy9tZXRhZGF0YS9zY2hlbWEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HOzs7Ozs7Oz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