@fncts/schema 0.0.23 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AST.d.ts +60 -29
- package/ASTAnnotationMap.d.ts +4 -1
- package/LICENSE +26 -0
- package/ParseError/ParseError.d.ts +28 -13
- package/_cjs/AST.cjs +1096 -1087
- package/_cjs/AST.cjs.map +1 -1
- package/_cjs/ASTAnnotation.cjs +114 -83
- package/_cjs/ASTAnnotation.cjs.map +1 -1
- package/_cjs/ASTAnnotationMap.cjs +43 -32
- package/_cjs/ASTAnnotationMap.cjs.map +1 -1
- package/_cjs/Eq.cjs +113 -145
- package/_cjs/Eq.cjs.map +1 -1
- package/_cjs/Gen.cjs +131 -167
- package/_cjs/Gen.cjs.map +1 -1
- package/_cjs/Guard.cjs +167 -267
- package/_cjs/Guard.cjs.map +1 -1
- package/_cjs/InvalidInterpretationError.cjs +9 -15
- package/_cjs/InvalidInterpretationError.cjs.map +1 -1
- package/_cjs/ParseError/ParseError.cjs +285 -209
- package/_cjs/ParseError/ParseError.cjs.map +1 -1
- package/_cjs/ParseError/ParseErrorFormatter.cjs +0 -2
- package/_cjs/ParseError/PathFormatter.cjs +55 -87
- package/_cjs/ParseError/PathFormatter.cjs.map +1 -1
- package/_cjs/ParseError/TreeFormatter.cjs +70 -102
- package/_cjs/ParseError/TreeFormatter.cjs.map +1 -1
- package/_cjs/ParseError.cjs +35 -50
- package/_cjs/ParseResult.cjs +15 -15
- package/_cjs/ParseResult.cjs.map +1 -1
- package/_cjs/Parser/api.cjs +54 -50
- package/_cjs/Parser/api.cjs.map +1 -1
- package/_cjs/Parser/definition.cjs +17 -16
- package/_cjs/Parser/definition.cjs.map +1 -1
- package/_cjs/Parser/interpreter.cjs +276 -358
- package/_cjs/Parser/interpreter.cjs.map +1 -1
- package/_cjs/Parser.cjs +12 -39
- package/_cjs/Schema/api/conc.cjs +64 -59
- package/_cjs/Schema/api/conc.cjs.map +1 -1
- package/_cjs/Schema/api/either.cjs +73 -72
- package/_cjs/Schema/api/either.cjs.map +1 -1
- package/_cjs/Schema/api/hashMap.cjs +85 -85
- package/_cjs/Schema/api/hashMap.cjs.map +1 -1
- package/_cjs/Schema/api/hashSet.cjs +75 -69
- package/_cjs/Schema/api/hashSet.cjs.map +1 -1
- package/_cjs/Schema/api/list.cjs +74 -64
- package/_cjs/Schema/api/list.cjs.map +1 -1
- package/_cjs/Schema/api/map.cjs +81 -83
- package/_cjs/Schema/api/map.cjs.map +1 -1
- package/_cjs/Schema/api/maybe.cjs +56 -49
- package/_cjs/Schema/api/maybe.cjs.map +1 -1
- package/_cjs/Schema/api/set.cjs +68 -61
- package/_cjs/Schema/api/set.cjs.map +1 -1
- package/_cjs/Schema/api.cjs +332 -350
- package/_cjs/Schema/api.cjs.map +1 -1
- package/_cjs/Schema/definition.cjs +28 -27
- package/_cjs/Schema/definition.cjs.map +1 -1
- package/_cjs/Schema/derivations.cjs +85 -100
- package/_cjs/Schema/derivations.cjs.map +1 -1
- package/_cjs/Schema.cjs +95 -127
- package/_cjs/Show.cjs +91 -151
- package/_cjs/Show.cjs.map +1 -1
- package/_cjs/chunk.cjs +28 -0
- package/_cjs/global.cjs +0 -2
- package/_cjs/index.cjs +0 -2
- package/_cjs/utils.cjs +41 -46
- package/_cjs/utils.cjs.map +1 -1
- package/_mjs/AST.mjs +1007 -1031
- package/_mjs/AST.mjs.map +1 -1
- package/_mjs/ASTAnnotation.mjs +77 -71
- package/_mjs/ASTAnnotation.mjs.map +1 -1
- package/_mjs/ASTAnnotationMap.mjs +36 -25
- package/_mjs/ASTAnnotationMap.mjs.map +1 -1
- package/_mjs/Eq.mjs +101 -134
- package/_mjs/Eq.mjs.map +1 -1
- package/_mjs/Gen.mjs +117 -157
- package/_mjs/Gen.mjs.map +1 -1
- package/_mjs/Guard.mjs +154 -257
- package/_mjs/Guard.mjs.map +1 -1
- package/_mjs/InvalidInterpretationError.mjs +8 -9
- package/_mjs/InvalidInterpretationError.mjs.map +1 -1
- package/_mjs/ParseError/ParseError.mjs +270 -190
- package/_mjs/ParseError/ParseError.mjs.map +1 -1
- package/_mjs/ParseError/ParseErrorFormatter.mjs +0 -2
- package/_mjs/ParseError/PathFormatter.mjs +51 -80
- package/_mjs/ParseError/PathFormatter.mjs.map +1 -1
- package/_mjs/ParseError/TreeFormatter.mjs +62 -94
- package/_mjs/ParseError/TreeFormatter.mjs.map +1 -1
- package/_mjs/ParseError.mjs +5 -6
- package/_mjs/ParseResult.mjs +13 -9
- package/_mjs/ParseResult.mjs.map +1 -1
- package/_mjs/Parser/api.mjs +43 -39
- package/_mjs/Parser/api.mjs.map +1 -1
- package/_mjs/Parser/definition.mjs +12 -8
- package/_mjs/Parser/definition.mjs.map +1 -1
- package/_mjs/Parser/interpreter.mjs +262 -348
- package/_mjs/Parser/interpreter.mjs.map +1 -1
- package/_mjs/Parser.mjs +4 -5
- package/_mjs/Schema/api/conc.mjs +41 -45
- package/_mjs/Schema/api/conc.mjs.map +1 -1
- package/_mjs/Schema/api/either.mjs +55 -61
- package/_mjs/Schema/api/either.mjs.map +1 -1
- package/_mjs/Schema/api/hashMap.mjs +61 -71
- package/_mjs/Schema/api/hashMap.mjs.map +1 -1
- package/_mjs/Schema/api/hashSet.mjs +53 -56
- package/_mjs/Schema/api/hashSet.mjs.map +1 -1
- package/_mjs/Schema/api/list.mjs +50 -51
- package/_mjs/Schema/api/list.mjs.map +1 -1
- package/_mjs/Schema/api/map.mjs +59 -69
- package/_mjs/Schema/api/map.mjs.map +1 -1
- package/_mjs/Schema/api/maybe.mjs +34 -36
- package/_mjs/Schema/api/maybe.mjs.map +1 -1
- package/_mjs/Schema/api/set.mjs +47 -48
- package/_mjs/Schema/api/set.mjs.map +1 -1
- package/_mjs/Schema/api.mjs +304 -346
- package/_mjs/Schema/api.mjs.map +1 -1
- package/_mjs/Schema/definition.mjs +21 -18
- package/_mjs/Schema/definition.mjs.map +1 -1
- package/_mjs/Schema/derivations.mjs +71 -90
- package/_mjs/Schema/derivations.mjs.map +1 -1
- package/_mjs/Schema.mjs +12 -15
- package/_mjs/Show.mjs +79 -139
- package/_mjs/Show.mjs.map +1 -1
- package/_mjs/global.mjs +0 -2
- package/_mjs/index.mjs +0 -2
- package/_mjs/utils.mjs +35 -37
- package/_mjs/utils.mjs.map +1 -1
- package/_src/AST.ts +226 -28
- package/_src/ASTAnnotationMap.ts +14 -1
- package/_src/ParseError/ParseError.ts +128 -13
- package/_src/Schema/api/hashMap.ts +1 -1
- package/_src/Schema/api/hashSet.ts +1 -1
- package/_src/Schema/api/list.ts +3 -1
- package/_src/Schema/api/map.ts +1 -1
- package/_src/Schema/api/set.ts +1 -1
- package/package.json +7 -3
- package/_cjs/ParseError/ParseErrorFormatter.cjs.map +0 -1
- package/_cjs/ParseError.cjs.map +0 -1
- package/_cjs/Parser.cjs.map +0 -1
- package/_cjs/Schema.cjs.map +0 -1
- package/_cjs/global.cjs.map +0 -1
- package/_cjs/index.cjs.map +0 -1
- package/_mjs/ParseError/ParseErrorFormatter.mjs.map +0 -1
- package/_mjs/ParseError.mjs.map +0 -1
- package/_mjs/Parser.mjs.map +0 -1
- package/_mjs/Schema.mjs.map +0 -1
- package/_mjs/global.mjs.map +0 -1
- package/_mjs/index.mjs.map +0 -1
package/_cjs/AST.cjs
CHANGED
|
@@ -1,1229 +1,1238 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
exports.isUniqueSymbol = void 0;
|
|
44
|
-
exports.keyof = keyof;
|
|
45
|
-
exports.objectKeyword = exports.numberKeyword = exports.neverKeyword = exports.keysOf = void 0;
|
|
46
|
-
exports.omit = omit;
|
|
47
|
-
exports.partial = void 0;
|
|
48
|
-
exports.pick = pick;
|
|
49
|
-
exports.setAnnotation = setAnnotation;
|
|
50
|
-
exports.voidKeyword = exports.unknownRecord = exports.unknownKeyword = exports.unknownArray = exports.undefinedKeyword = exports.symbolKeyword = exports.stringKeyword = void 0;
|
|
51
|
-
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/schema/Show"));
|
|
52
|
-
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/schema/ASTAnnotation"));
|
|
53
|
-
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/collection/immutable/Vector/api"));
|
|
54
|
-
var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/data/Maybe/constructors"));
|
|
55
|
-
var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/schema/ParseResult"));
|
|
56
|
-
var tsplus_module_6 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/schema/ParseError/ParseError"));
|
|
57
|
-
var tsplus_module_7 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/data/number/instances"));
|
|
58
|
-
var tsplus_module_8 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/data/Ord/api/contramap"));
|
|
59
|
-
var tsplus_module_9 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/data/Ord/api"));
|
|
60
|
-
var tsplus_module_10 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/data/Ord/api/max"));
|
|
61
|
-
var tsplus_module_11 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/collection/Iterable/api"));
|
|
62
|
-
var tsplus_module_12 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/data/Maybe/destructors"));
|
|
63
|
-
var tsplus_module_13 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/data/Maybe/definition"));
|
|
64
|
-
var tsplus_module_14 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/collection/immutable/Vector/internal"));
|
|
65
|
-
var tsplus_module_15 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/data/Maybe/api"));
|
|
66
|
-
var _Showable = /*#__PURE__*/require("@fncts/base/data/Showable");
|
|
67
|
-
var _utils = /*#__PURE__*/require("@fncts/schema/utils");
|
|
68
|
-
var _ASTAnnotationMap = /*#__PURE__*/require("./ASTAnnotationMap.cjs");
|
|
69
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
70
|
-
var _a;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_chunk = require("./chunk.cjs");
|
|
3
|
+
const require_ASTAnnotationMap = require("./ASTAnnotationMap.cjs");
|
|
4
|
+
let _fncts_base_collection_immutable_Vector_api = require("@fncts/base/collection/immutable/Vector/api");
|
|
5
|
+
_fncts_base_collection_immutable_Vector_api = require_chunk.__toESM(_fncts_base_collection_immutable_Vector_api, 1);
|
|
6
|
+
let _fncts_base_data_Showable = require("@fncts/base/data/Showable");
|
|
7
|
+
let _fncts_base_data_Maybe_api = require("@fncts/base/data/Maybe/api");
|
|
8
|
+
_fncts_base_data_Maybe_api = require_chunk.__toESM(_fncts_base_data_Maybe_api, 1);
|
|
9
|
+
let _fncts_base_data_Maybe_constructors = require("@fncts/base/data/Maybe/constructors");
|
|
10
|
+
_fncts_base_data_Maybe_constructors = require_chunk.__toESM(_fncts_base_data_Maybe_constructors, 1);
|
|
11
|
+
let _fncts_base_data_Maybe_destructors = require("@fncts/base/data/Maybe/destructors");
|
|
12
|
+
_fncts_base_data_Maybe_destructors = require_chunk.__toESM(_fncts_base_data_Maybe_destructors, 1);
|
|
13
|
+
let _fncts_schema_utils = require("@fncts/schema/utils");
|
|
14
|
+
let _fncts_schema_ASTAnnotation = require("@fncts/schema/ASTAnnotation");
|
|
15
|
+
_fncts_schema_ASTAnnotation = require_chunk.__toESM(_fncts_schema_ASTAnnotation, 1);
|
|
16
|
+
let _fncts_schema_ParseResult = require("@fncts/schema/ParseResult");
|
|
17
|
+
_fncts_schema_ParseResult = require_chunk.__toESM(_fncts_schema_ParseResult, 1);
|
|
18
|
+
let _fncts_base_data_Maybe_definition = require("@fncts/base/data/Maybe/definition");
|
|
19
|
+
_fncts_base_data_Maybe_definition = require_chunk.__toESM(_fncts_base_data_Maybe_definition, 1);
|
|
20
|
+
let _fncts_base_data_Equatable_definition = require("@fncts/base/data/Equatable/definition");
|
|
21
|
+
_fncts_base_data_Equatable_definition = require_chunk.__toESM(_fncts_base_data_Equatable_definition, 1);
|
|
22
|
+
let _fncts_schema_Show = require("@fncts/schema/Show");
|
|
23
|
+
_fncts_schema_Show = require_chunk.__toESM(_fncts_schema_Show, 1);
|
|
24
|
+
let _fncts_base_util_predicates = require("@fncts/base/util/predicates");
|
|
25
|
+
_fncts_base_util_predicates = require_chunk.__toESM(_fncts_base_util_predicates, 1);
|
|
26
|
+
let _fncts_base_collection_immutable_Vector_definition = require("@fncts/base/collection/immutable/Vector/definition");
|
|
27
|
+
_fncts_base_collection_immutable_Vector_definition = require_chunk.__toESM(_fncts_base_collection_immutable_Vector_definition, 1);
|
|
28
|
+
let _fncts_schema_ParseError_ParseError = require("@fncts/schema/ParseError/ParseError");
|
|
29
|
+
_fncts_schema_ParseError_ParseError = require_chunk.__toESM(_fncts_schema_ParseError_ParseError, 1);
|
|
30
|
+
let _fncts_base_data_number_instances = require("@fncts/base/data/number/instances");
|
|
31
|
+
_fncts_base_data_number_instances = require_chunk.__toESM(_fncts_base_data_number_instances, 1);
|
|
32
|
+
let _fncts_base_data_Ord_api_contramap = require("@fncts/base/data/Ord/api/contramap");
|
|
33
|
+
_fncts_base_data_Ord_api_contramap = require_chunk.__toESM(_fncts_base_data_Ord_api_contramap, 1);
|
|
34
|
+
let _fncts_base_data_Ord_api = require("@fncts/base/data/Ord/api");
|
|
35
|
+
_fncts_base_data_Ord_api = require_chunk.__toESM(_fncts_base_data_Ord_api, 1);
|
|
36
|
+
let _fncts_base_data_Ord_api_max = require("@fncts/base/data/Ord/api/max");
|
|
37
|
+
_fncts_base_data_Ord_api_max = require_chunk.__toESM(_fncts_base_data_Ord_api_max, 1);
|
|
38
|
+
let _fncts_base_collection_Iterable_api = require("@fncts/base/collection/Iterable/api");
|
|
39
|
+
_fncts_base_collection_Iterable_api = require_chunk.__toESM(_fncts_base_collection_Iterable_api, 1);
|
|
40
|
+
let _fncts_base_collection_immutable_Vector_internal = require("@fncts/base/collection/immutable/Vector/internal");
|
|
41
|
+
_fncts_base_collection_immutable_Vector_internal = require_chunk.__toESM(_fncts_base_collection_immutable_Vector_internal, 1);
|
|
42
|
+
//#region build/esm/AST.js
|
|
71
43
|
const fileName_1 = "(@fncts/schema) src/AST.ts";
|
|
72
|
-
const createLiteral =
|
|
73
|
-
const isLiteral =
|
|
74
|
-
const createUniqueSymbol =
|
|
75
|
-
const isUniqueSymbol =
|
|
76
|
-
const isStringKeyword =
|
|
77
|
-
const isNumberKeyword =
|
|
78
|
-
const isSymbolKeyword =
|
|
79
|
-
const createTemplateLiteral =
|
|
80
|
-
const createElement =
|
|
81
|
-
const createTuple =
|
|
82
|
-
const createPropertySignature =
|
|
83
|
-
const createIndexSignature =
|
|
84
|
-
const createTypeLiteral =
|
|
85
|
-
const createUnion =
|
|
86
|
-
const createLazy =
|
|
87
|
-
const createRefinement =
|
|
88
|
-
const getPropertySignatures =
|
|
89
|
-
const keysOf =
|
|
90
|
-
const partial =
|
|
91
|
-
const getFrom =
|
|
92
|
-
const getTo =
|
|
93
|
-
const ASTTypeId =
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
}
|
|
44
|
+
const createLiteral = createLiteral_1;
|
|
45
|
+
const isLiteral = isLiteral_1;
|
|
46
|
+
const createUniqueSymbol = createUniqueSymbol_1;
|
|
47
|
+
const isUniqueSymbol = isUniqueSymbol_1;
|
|
48
|
+
const isStringKeyword = isStringKeyword_1;
|
|
49
|
+
const isNumberKeyword = isNumberKeyword_1;
|
|
50
|
+
const isSymbolKeyword = isSymbolKeyword_1;
|
|
51
|
+
const createTemplateLiteral = createTemplateLiteral_1;
|
|
52
|
+
const createElement = createElement_1;
|
|
53
|
+
const createTuple = createTuple_1;
|
|
54
|
+
const createPropertySignature = createPropertySignature_1;
|
|
55
|
+
const createIndexSignature = createIndexSignature_1;
|
|
56
|
+
const createTypeLiteral = createTypeLiteral_1;
|
|
57
|
+
const createUnion = createUnion_1;
|
|
58
|
+
const createLazy = createLazy_1;
|
|
59
|
+
const createRefinement = createRefinement_1;
|
|
60
|
+
const getPropertySignatures = getPropertySignatures_1;
|
|
61
|
+
const keysOf = keysOf_1;
|
|
62
|
+
const partial = partial_1;
|
|
63
|
+
const getFrom = getFrom_1;
|
|
64
|
+
const getTo = getTo_1;
|
|
65
|
+
const ASTTypeId = Symbol.for("fncts.schema.AST");
|
|
66
|
+
var Annotated = class {
|
|
67
|
+
annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty;
|
|
68
|
+
};
|
|
99
69
|
/**
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
toString(verbose = false) {
|
|
110
|
-
return tsplus_module_1.showAST(verbose)(this);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
exports.AST = AST;
|
|
114
|
-
_a = ASTTypeId;
|
|
70
|
+
* @tsplus type fncts.schema.AST
|
|
71
|
+
* @tsplus companion fncts.schema.ASTOps
|
|
72
|
+
*/
|
|
73
|
+
var AST = class extends Annotated {
|
|
74
|
+
[ASTTypeId] = ASTTypeId;
|
|
75
|
+
toString(verbose = false) {
|
|
76
|
+
return _fncts_schema_Show.showAST(verbose)(this);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
115
79
|
/**
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
function concrete(_) {
|
|
120
|
-
|
|
80
|
+
* @tsplus static fncts.schema.ASTOps concrete
|
|
81
|
+
* @tsplus macro remove
|
|
82
|
+
*/
|
|
83
|
+
function concrete(_) {}
|
|
84
|
+
function isAST(u) {
|
|
85
|
+
return _fncts_base_util_predicates.isObject(u) && ASTTypeId in u;
|
|
86
|
+
}
|
|
87
|
+
function hasTag(u, tag) {
|
|
88
|
+
return isAST(u) && u._tag === tag;
|
|
121
89
|
}
|
|
122
90
|
function getAnnotations(key) {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
91
|
+
return (self) => {
|
|
92
|
+
return self.annotations.get(key);
|
|
93
|
+
};
|
|
126
94
|
}
|
|
127
|
-
/*
|
|
128
|
-
* Declaration
|
|
129
|
-
*/
|
|
130
95
|
/**
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
class Declaration extends AST {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
96
|
+
* @tsplus type fncts.schema.AST.Declaration
|
|
97
|
+
*/
|
|
98
|
+
var Declaration = class Declaration extends AST {
|
|
99
|
+
typeParameters;
|
|
100
|
+
decode;
|
|
101
|
+
encode;
|
|
102
|
+
annotations;
|
|
103
|
+
_tag = 0;
|
|
104
|
+
constructor(typeParameters, decode, encode, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
105
|
+
super();
|
|
106
|
+
this.typeParameters = typeParameters;
|
|
107
|
+
this.decode = decode;
|
|
108
|
+
this.encode = encode;
|
|
109
|
+
this.annotations = annotations;
|
|
110
|
+
}
|
|
111
|
+
clone(newProperties) {
|
|
112
|
+
return new Declaration(newProperties.typeParameters ?? this.typeParameters, newProperties.decode ?? this.decode, newProperties.encode ?? this.encode, newProperties.annotations ?? this.annotations);
|
|
113
|
+
}
|
|
114
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
115
|
+
return hasTag(that, 0) && context.comparator(this.typeParameters, that.typeParameters) && context.comparator(this.decode, that.decode) && context.comparator(this.encode, that.encode) && context.comparator(this.annotations, that.annotations);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
146
118
|
/**
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
return new Declaration(typeParameters, decode, encode, annotations);
|
|
119
|
+
* @tsplus static fncts.schema.ASTOps createDeclaration
|
|
120
|
+
*/
|
|
121
|
+
function createDeclaration(typeParameters, decode, encode, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
122
|
+
return new Declaration(typeParameters, decode, encode, annotations);
|
|
152
123
|
}
|
|
153
124
|
/**
|
|
154
|
-
|
|
155
|
-
|
|
125
|
+
* @tsplus fluent fncts.schema.AST isDeclaration
|
|
126
|
+
*/
|
|
156
127
|
function isDeclaration(self) {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
128
|
+
return self._tag === 0;
|
|
129
|
+
}
|
|
130
|
+
var Literal = class Literal extends AST {
|
|
131
|
+
literal;
|
|
132
|
+
annotations;
|
|
133
|
+
_tag = 1;
|
|
134
|
+
constructor(literal, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
135
|
+
super();
|
|
136
|
+
this.literal = literal;
|
|
137
|
+
this.annotations = annotations;
|
|
138
|
+
}
|
|
139
|
+
clone(newProperties) {
|
|
140
|
+
return new Literal(newProperties.literal ?? this.literal, newProperties.annotations ?? this.annotations);
|
|
141
|
+
}
|
|
142
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
143
|
+
return hasTag(that, 1) && context.comparator(this.literal, that.literal) && context.comparator(this.annotations, that.annotations);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
171
146
|
/**
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
return new Literal(literal, annotations);
|
|
147
|
+
* @tsplus static fncts.schema.ASTOps createLiteral
|
|
148
|
+
*/
|
|
149
|
+
function createLiteral_1(literal, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
150
|
+
return new Literal(literal, annotations);
|
|
177
151
|
}
|
|
178
152
|
/**
|
|
179
|
-
|
|
180
|
-
|
|
153
|
+
* @tsplus fluent fncts.schema.AST isLiteral
|
|
154
|
+
*/
|
|
181
155
|
function isLiteral_1(self) {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}
|
|
156
|
+
return self._tag === 1;
|
|
157
|
+
}
|
|
158
|
+
var UniqueSymbol = class UniqueSymbol extends AST {
|
|
159
|
+
symbol;
|
|
160
|
+
annotations;
|
|
161
|
+
_tag = 2;
|
|
162
|
+
constructor(symbol, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
163
|
+
super();
|
|
164
|
+
this.symbol = symbol;
|
|
165
|
+
this.annotations = annotations;
|
|
166
|
+
}
|
|
167
|
+
clone(newProperties) {
|
|
168
|
+
return new UniqueSymbol(newProperties.symbol ?? this.symbol, newProperties.annotations ?? this.annotations);
|
|
169
|
+
}
|
|
170
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
171
|
+
return hasTag(that, 2) && context.comparator(this.symbol, that.symbol) && context.comparator(this.annotations, that.annotations);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
199
174
|
/**
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
return new UniqueSymbol(symbol, annotations);
|
|
175
|
+
* @tsplus static fncts.schema.ASTOps createUniqueSymbol
|
|
176
|
+
*/
|
|
177
|
+
function createUniqueSymbol_1(symbol, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
178
|
+
return new UniqueSymbol(symbol, annotations);
|
|
205
179
|
}
|
|
206
180
|
/**
|
|
207
|
-
|
|
208
|
-
|
|
181
|
+
* @tsplus fluent fncts.schema.AST isUniqueSymbol
|
|
182
|
+
*/
|
|
209
183
|
function isUniqueSymbol_1(self) {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}
|
|
184
|
+
return self._tag === 2;
|
|
185
|
+
}
|
|
186
|
+
var UndefinedKeyword = class UndefinedKeyword extends AST {
|
|
187
|
+
annotations;
|
|
188
|
+
_tag = 3;
|
|
189
|
+
constructor(annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
190
|
+
super();
|
|
191
|
+
this.annotations = annotations;
|
|
192
|
+
}
|
|
193
|
+
clone(newProperties) {
|
|
194
|
+
return new UndefinedKeyword(newProperties.annotations ?? this.annotations);
|
|
195
|
+
}
|
|
196
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
197
|
+
return hasTag(that, 3) && context.comparator(this.annotations, that.annotations);
|
|
198
|
+
}
|
|
199
|
+
};
|
|
226
200
|
/**
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
const
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
201
|
+
* @tsplus static fncts.schema.ASTOps undefinedKeyword
|
|
202
|
+
*/
|
|
203
|
+
const undefinedKeyword_1 = new UndefinedKeyword(require_ASTAnnotationMap.ASTAnnotationMap.empty.annotate(_fncts_schema_ASTAnnotation.Title, "undefined"));
|
|
204
|
+
const undefinedKeyword = undefinedKeyword_1;
|
|
205
|
+
var VoidKeyword = class VoidKeyword extends AST {
|
|
206
|
+
annotations;
|
|
207
|
+
_tag = 4;
|
|
208
|
+
constructor(annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
209
|
+
super();
|
|
210
|
+
this.annotations = annotations;
|
|
211
|
+
}
|
|
212
|
+
clone(newProperties) {
|
|
213
|
+
return new VoidKeyword(newProperties.annotations ?? this.annotations);
|
|
214
|
+
}
|
|
215
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
216
|
+
return hasTag(that, 4) && context.comparator(this.annotations, that.annotations);
|
|
217
|
+
}
|
|
218
|
+
};
|
|
245
219
|
/**
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
}
|
|
220
|
+
* @tsplus static fncts.schema.ASTOps voidKeyword
|
|
221
|
+
*/
|
|
222
|
+
const voidKeyword = new VoidKeyword(require_ASTAnnotationMap.ASTAnnotationMap.empty.annotate(_fncts_schema_ASTAnnotation.Title, "void"));
|
|
223
|
+
var NeverKeyword = class NeverKeyword extends AST {
|
|
224
|
+
annotations;
|
|
225
|
+
_tag = 5;
|
|
226
|
+
constructor(annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
227
|
+
super();
|
|
228
|
+
this.annotations = annotations;
|
|
229
|
+
}
|
|
230
|
+
clone(newProperties) {
|
|
231
|
+
return new NeverKeyword(newProperties.annotations ?? this.annotations);
|
|
232
|
+
}
|
|
233
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
234
|
+
return hasTag(that, 5) && context.comparator(this.annotations, that.annotations);
|
|
235
|
+
}
|
|
236
|
+
};
|
|
263
237
|
/**
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
const
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
}
|
|
238
|
+
* @tsplus static fncts.schema.ASTOps neverKeyword
|
|
239
|
+
*/
|
|
240
|
+
const neverKeyword_1 = new NeverKeyword(require_ASTAnnotationMap.ASTAnnotationMap.empty.annotate(_fncts_schema_ASTAnnotation.Title, "never"));
|
|
241
|
+
const neverKeyword = neverKeyword_1;
|
|
242
|
+
var UnknownKeyword = class UnknownKeyword extends AST {
|
|
243
|
+
annotations;
|
|
244
|
+
_tag = 6;
|
|
245
|
+
constructor(annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
246
|
+
super();
|
|
247
|
+
this.annotations = annotations;
|
|
248
|
+
}
|
|
249
|
+
clone(newProperties) {
|
|
250
|
+
return new UnknownKeyword(newProperties.annotations ?? this.annotations);
|
|
251
|
+
}
|
|
252
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
253
|
+
return hasTag(that, 6) && context.comparator(this.annotations, that.annotations);
|
|
254
|
+
}
|
|
255
|
+
};
|
|
282
256
|
/**
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
const
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
}
|
|
257
|
+
* @tsplus static fncts.schema.ASTOps unknownKeyword
|
|
258
|
+
*/
|
|
259
|
+
const unknownKeyword_1 = new UnknownKeyword(require_ASTAnnotationMap.ASTAnnotationMap.empty.annotate(_fncts_schema_ASTAnnotation.Title, "unknown"));
|
|
260
|
+
const unknownKeyword = unknownKeyword_1;
|
|
261
|
+
var AnyKeyword = class AnyKeyword extends AST {
|
|
262
|
+
annotations;
|
|
263
|
+
_tag = 7;
|
|
264
|
+
constructor(annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
265
|
+
super();
|
|
266
|
+
this.annotations = annotations;
|
|
267
|
+
}
|
|
268
|
+
clone(newProperties) {
|
|
269
|
+
return new AnyKeyword(newProperties.annotations ?? this.annotations);
|
|
270
|
+
}
|
|
271
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
272
|
+
return hasTag(that, 7) && context.comparator(this.annotations, that.annotations);
|
|
273
|
+
}
|
|
274
|
+
};
|
|
301
275
|
/**
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
}
|
|
276
|
+
* @tsplus static fncts.schema.ASTOps anyKeyword
|
|
277
|
+
*/
|
|
278
|
+
const anyKeyword = new AnyKeyword(require_ASTAnnotationMap.ASTAnnotationMap.empty.annotate(_fncts_schema_ASTAnnotation.Title, "any"));
|
|
279
|
+
var StringKeyword = class StringKeyword extends AST {
|
|
280
|
+
annotations;
|
|
281
|
+
_tag = 8;
|
|
282
|
+
constructor(annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
283
|
+
super();
|
|
284
|
+
this.annotations = annotations;
|
|
285
|
+
}
|
|
286
|
+
clone(newProperties) {
|
|
287
|
+
return new StringKeyword(newProperties.annotations ?? this.annotations);
|
|
288
|
+
}
|
|
289
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
290
|
+
return hasTag(that, 8) && context.comparator(this.annotations, that.annotations);
|
|
291
|
+
}
|
|
292
|
+
};
|
|
319
293
|
/**
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
const
|
|
324
|
-
const stringKeyword = exports.stringKeyword = stringKeyword_1;
|
|
294
|
+
* @tsplus static fncts.schema.ASTOps stringKeyword
|
|
295
|
+
*/
|
|
296
|
+
const stringKeyword_1 = new StringKeyword(require_ASTAnnotationMap.ASTAnnotationMap.empty.annotate(_fncts_schema_ASTAnnotation.Title, "string"));
|
|
297
|
+
const stringKeyword = stringKeyword_1;
|
|
325
298
|
/**
|
|
326
|
-
|
|
327
|
-
|
|
299
|
+
* @tsplus fluent fncts.schema.AST isStringKeyword
|
|
300
|
+
*/
|
|
328
301
|
function isStringKeyword_1(self) {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
}
|
|
302
|
+
return self._tag === 8;
|
|
303
|
+
}
|
|
304
|
+
var NumberKeyword = class NumberKeyword extends AST {
|
|
305
|
+
annotations;
|
|
306
|
+
_tag = 9;
|
|
307
|
+
constructor(annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
308
|
+
super();
|
|
309
|
+
this.annotations = annotations;
|
|
310
|
+
}
|
|
311
|
+
clone(newProperties) {
|
|
312
|
+
return new NumberKeyword(newProperties.annotations ?? this.annotations);
|
|
313
|
+
}
|
|
314
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
315
|
+
return hasTag(that, 9) && context.comparator(this.annotations, that.annotations);
|
|
316
|
+
}
|
|
317
|
+
};
|
|
345
318
|
/**
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
const
|
|
350
|
-
const numberKeyword = exports.numberKeyword = numberKeyword_1;
|
|
319
|
+
* @tsplus static fncts.schema.ASTOps numberKeyword
|
|
320
|
+
*/
|
|
321
|
+
const numberKeyword_1 = new NumberKeyword(require_ASTAnnotationMap.ASTAnnotationMap.empty.annotate(_fncts_schema_ASTAnnotation.Title, "number"));
|
|
322
|
+
const numberKeyword = numberKeyword_1;
|
|
351
323
|
/**
|
|
352
|
-
|
|
353
|
-
|
|
324
|
+
* @tsplus fluent fncts.schema.AST isNumberKeyword
|
|
325
|
+
*/
|
|
354
326
|
function isNumberKeyword_1(self) {
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
}
|
|
327
|
+
return self._tag === 9;
|
|
328
|
+
}
|
|
329
|
+
var BooleanKeyword = class BooleanKeyword extends AST {
|
|
330
|
+
annotations;
|
|
331
|
+
_tag = 10;
|
|
332
|
+
constructor(annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
333
|
+
super();
|
|
334
|
+
this.annotations = annotations;
|
|
335
|
+
}
|
|
336
|
+
clone(newProperties) {
|
|
337
|
+
return new BooleanKeyword(newProperties.annotations ?? this.annotations);
|
|
338
|
+
}
|
|
339
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
340
|
+
return hasTag(that, 10) && context.comparator(this.annotations, that.annotations);
|
|
341
|
+
}
|
|
342
|
+
};
|
|
371
343
|
/**
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
const booleanKeyword = exports.booleanKeyword = /*#__PURE__*/new BooleanKeyword(/*#__PURE__*/_ASTAnnotationMap.ASTAnnotationMap.empty.annotate(tsplus_module_2.Title, "boolean"));
|
|
344
|
+
* @tsplus static fncts.schema.ASTOps booleanKeyword
|
|
345
|
+
*/
|
|
346
|
+
const booleanKeyword = new BooleanKeyword(require_ASTAnnotationMap.ASTAnnotationMap.empty.annotate(_fncts_schema_ASTAnnotation.Title, "boolean"));
|
|
376
347
|
/**
|
|
377
|
-
|
|
378
|
-
|
|
348
|
+
* @tsplus fluent fncts.schema.AST isBooleanKeyword
|
|
349
|
+
*/
|
|
379
350
|
function isBooleanKeyword(self) {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
}
|
|
351
|
+
return self._tag === 10;
|
|
352
|
+
}
|
|
353
|
+
var BigIntKeyword = class BigIntKeyword extends AST {
|
|
354
|
+
annotations;
|
|
355
|
+
_tag = 11;
|
|
356
|
+
constructor(annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
357
|
+
super();
|
|
358
|
+
this.annotations = annotations;
|
|
359
|
+
}
|
|
360
|
+
clone(newProperties) {
|
|
361
|
+
return new BigIntKeyword(newProperties.annotations ?? this.annotations);
|
|
362
|
+
}
|
|
363
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
364
|
+
return hasTag(that, 11) && context.comparator(this.annotations, that.annotations);
|
|
365
|
+
}
|
|
366
|
+
};
|
|
396
367
|
/**
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
const bigIntKeyword = exports.bigIntKeyword = /*#__PURE__*/new BigIntKeyword(/*#__PURE__*/_ASTAnnotationMap.ASTAnnotationMap.empty.annotate(tsplus_module_2.Title, "bigint"));
|
|
368
|
+
* @tsplus static fncts.schema.ASTOps bigIntKeyword
|
|
369
|
+
*/
|
|
370
|
+
const bigIntKeyword = new BigIntKeyword(require_ASTAnnotationMap.ASTAnnotationMap.empty.annotate(_fncts_schema_ASTAnnotation.Title, "bigint"));
|
|
401
371
|
/**
|
|
402
|
-
|
|
403
|
-
|
|
372
|
+
* @tsplus fluent fncts.schema.AST isBigIntKeyword
|
|
373
|
+
*/
|
|
404
374
|
function isBigIntKeyword(self) {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
}
|
|
375
|
+
return self._tag === 11;
|
|
376
|
+
}
|
|
377
|
+
var SymbolKeyword = class SymbolKeyword extends AST {
|
|
378
|
+
annotations;
|
|
379
|
+
_tag = 12;
|
|
380
|
+
constructor(annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
381
|
+
super();
|
|
382
|
+
this.annotations = annotations;
|
|
383
|
+
}
|
|
384
|
+
clone(newProperties) {
|
|
385
|
+
return new SymbolKeyword(newProperties.annotations ?? this.annotations);
|
|
386
|
+
}
|
|
387
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
388
|
+
return hasTag(that, 12) && context.comparator(this.annotations, that.annotations);
|
|
389
|
+
}
|
|
390
|
+
};
|
|
421
391
|
/**
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
const
|
|
426
|
-
const symbolKeyword = exports.symbolKeyword = symbolKeyword_1;
|
|
392
|
+
* @tsplus static fncts.schema.ASTOps symbolKeyword
|
|
393
|
+
*/
|
|
394
|
+
const symbolKeyword_1 = new SymbolKeyword(require_ASTAnnotationMap.ASTAnnotationMap.empty.annotate(_fncts_schema_ASTAnnotation.Title, "symbol"));
|
|
395
|
+
const symbolKeyword = symbolKeyword_1;
|
|
427
396
|
/**
|
|
428
|
-
|
|
429
|
-
|
|
397
|
+
* @tsplus fluent fncts.schema.AST isSymbolKeyword
|
|
398
|
+
*/
|
|
430
399
|
function isSymbolKeyword_1(self) {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
}
|
|
400
|
+
return self._tag === 12;
|
|
401
|
+
}
|
|
402
|
+
var ObjectKeyword = class ObjectKeyword extends AST {
|
|
403
|
+
annotations;
|
|
404
|
+
_tag = 13;
|
|
405
|
+
constructor(annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
406
|
+
super();
|
|
407
|
+
this.annotations = annotations;
|
|
408
|
+
}
|
|
409
|
+
clone(newProperties) {
|
|
410
|
+
return new ObjectKeyword(newProperties.annotations ?? this.annotations);
|
|
411
|
+
}
|
|
412
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
413
|
+
return hasTag(that, 13) && context.comparator(this.annotations, that.annotations);
|
|
414
|
+
}
|
|
415
|
+
};
|
|
447
416
|
/**
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}
|
|
417
|
+
* @tsplus static fncts.schema.ASTOps objectKeyword
|
|
418
|
+
*/
|
|
419
|
+
const objectKeyword = new ObjectKeyword(require_ASTAnnotationMap.ASTAnnotationMap.empty.annotate(_fncts_schema_ASTAnnotation.Title, "object"));
|
|
420
|
+
var Enum = class Enum extends AST {
|
|
421
|
+
enums;
|
|
422
|
+
annotations;
|
|
423
|
+
_tag = 14;
|
|
424
|
+
constructor(enums, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
425
|
+
super();
|
|
426
|
+
this.enums = enums;
|
|
427
|
+
this.annotations = annotations;
|
|
428
|
+
}
|
|
429
|
+
clone(newProperties) {
|
|
430
|
+
return new Enum(newProperties.enums ?? this.enums, newProperties.annotations ?? this.annotations);
|
|
431
|
+
}
|
|
432
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
433
|
+
return hasTag(that, 14) && _fncts_base_collection_immutable_Vector_definition.corresponds(that.enums, ([leftName, leftValue], [rightName, rightValue]) => context.comparator(leftName, rightName) && context.comparator(leftValue, rightValue))(this.enums) && context.comparator(this.annotations, that.annotations);
|
|
434
|
+
}
|
|
435
|
+
};
|
|
466
436
|
/**
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
}
|
|
437
|
+
* @tsplus static fncts.schema.ASTOps createEnum
|
|
438
|
+
*/
|
|
439
|
+
function createEnum(enums, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
440
|
+
return new Enum(enums, annotations);
|
|
441
|
+
}
|
|
442
|
+
var TemplateLiteralSpan = class TemplateLiteralSpan {
|
|
443
|
+
type;
|
|
444
|
+
literal;
|
|
445
|
+
constructor(type, literal) {
|
|
446
|
+
this.type = type;
|
|
447
|
+
this.literal = literal;
|
|
448
|
+
}
|
|
449
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
450
|
+
return that instanceof TemplateLiteralSpan && context.comparator(this.type, that.type) && context.comparator(this.literal, that.literal);
|
|
451
|
+
}
|
|
452
|
+
toString() {
|
|
453
|
+
switch (this.type._tag) {
|
|
454
|
+
case 8: return "${string}";
|
|
455
|
+
case 9: return "${number}";
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
};
|
|
459
|
+
var TemplateLiteral = class extends AST {
|
|
460
|
+
head;
|
|
461
|
+
spans;
|
|
462
|
+
annotations;
|
|
463
|
+
_tag = 15;
|
|
464
|
+
constructor(head, spans, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
465
|
+
super();
|
|
466
|
+
this.head = head;
|
|
467
|
+
this.spans = spans;
|
|
468
|
+
this.annotations = annotations;
|
|
469
|
+
}
|
|
470
|
+
clone(newProperties) {
|
|
471
|
+
return createTemplateLiteral_1(newProperties.head ?? this.head, newProperties.spans ?? this.spans, newProperties.annotations ?? this.annotations);
|
|
472
|
+
}
|
|
473
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
474
|
+
return hasTag(that, 15) && context.comparator(this.head, that.head) && context.comparator(this.spans, that.spans) && context.comparator(this.annotations, that.annotations);
|
|
475
|
+
}
|
|
476
|
+
};
|
|
503
477
|
/**
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
}
|
|
525
|
-
}
|
|
478
|
+
* @tsplus static fncts.schema.ASTOps createTemplateLiteral
|
|
479
|
+
*/
|
|
480
|
+
function createTemplateLiteral_1(head, spans, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
481
|
+
if (_fncts_base_collection_immutable_Vector_api.isNonEmpty(spans)) return new TemplateLiteral(head, spans, annotations);
|
|
482
|
+
else return createLiteral_1(head, annotations);
|
|
483
|
+
}
|
|
484
|
+
var Element = class Element {
|
|
485
|
+
type;
|
|
486
|
+
isOptional;
|
|
487
|
+
constructor(type, isOptional) {
|
|
488
|
+
this.type = type;
|
|
489
|
+
this.isOptional = isOptional;
|
|
490
|
+
}
|
|
491
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
492
|
+
return that instanceof Element && context.comparator(this.type, that.type) && context.comparator(this.isOptional, that.isOptional);
|
|
493
|
+
}
|
|
494
|
+
toString() {
|
|
495
|
+
return String(this.type) + (this.isOptional ? "?" : "");
|
|
496
|
+
}
|
|
497
|
+
};
|
|
526
498
|
/**
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
exports.Element = Element;
|
|
499
|
+
* @tsplus static fncts.schema.ASTOps createElement
|
|
500
|
+
*/
|
|
530
501
|
function createElement_1(type, isOptional) {
|
|
531
|
-
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
}
|
|
502
|
+
return new Element(type, isOptional);
|
|
503
|
+
}
|
|
504
|
+
var Tuple = class Tuple extends AST {
|
|
505
|
+
elements;
|
|
506
|
+
rest;
|
|
507
|
+
isReadonly;
|
|
508
|
+
annotations;
|
|
509
|
+
_tag = 16;
|
|
510
|
+
constructor(elements, rest, isReadonly, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
511
|
+
super();
|
|
512
|
+
this.elements = elements;
|
|
513
|
+
this.rest = rest;
|
|
514
|
+
this.isReadonly = isReadonly;
|
|
515
|
+
this.annotations = annotations;
|
|
516
|
+
}
|
|
517
|
+
clone(newProperties) {
|
|
518
|
+
return new Tuple(newProperties.elements ?? this.elements, newProperties.rest ?? this.rest, newProperties.isReadonly ?? this.isReadonly, newProperties.annotations ?? this.annotations);
|
|
519
|
+
}
|
|
520
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
521
|
+
return hasTag(that, 16) && context.comparator(this.elements, that.elements) && context.comparator(this.rest, that.rest) && context.comparator(this.isReadonly, that.isReadonly) && context.comparator(this.annotations, that.annotations);
|
|
522
|
+
}
|
|
523
|
+
};
|
|
549
524
|
/**
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
return new Tuple(elements, rest, isReadonly, annotations);
|
|
525
|
+
* @tsplus static fncts.schema.ASTOps createTuple
|
|
526
|
+
*/
|
|
527
|
+
function createTuple_1(elements, rest, isReadonly, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
528
|
+
return new Tuple(elements, rest, isReadonly, annotations);
|
|
555
529
|
}
|
|
556
530
|
/**
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
const unknownArray =
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
531
|
+
* @tsplus static fncts.schema.ASTOps unknownArray
|
|
532
|
+
*/
|
|
533
|
+
const unknownArray = createTuple_1(_fncts_base_collection_immutable_Vector_api.empty(), _fncts_base_data_Maybe_constructors.just(_fncts_base_collection_immutable_Vector_api.vector(unknownKeyword_1), fileName_1 + ":779:65"), true);
|
|
534
|
+
var PropertySignature = class PropertySignature {
|
|
535
|
+
name;
|
|
536
|
+
type;
|
|
537
|
+
isOptional;
|
|
538
|
+
isReadonly;
|
|
539
|
+
annotations;
|
|
540
|
+
constructor(name, type, isOptional, isReadonly, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
541
|
+
this.name = name;
|
|
542
|
+
this.type = type;
|
|
543
|
+
this.isOptional = isOptional;
|
|
544
|
+
this.isReadonly = isReadonly;
|
|
545
|
+
this.annotations = annotations;
|
|
546
|
+
}
|
|
547
|
+
clone(newProperties) {
|
|
548
|
+
return new PropertySignature(newProperties.name ?? this.name, newProperties.type ?? this.type, newProperties.isOptional ?? this.isOptional, newProperties.isReadonly ?? this.isReadonly, newProperties.annotations ?? this.annotations);
|
|
549
|
+
}
|
|
550
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
551
|
+
return that instanceof PropertySignature && context.comparator(this.name, that.name) && context.comparator(this.type, that.type) && context.comparator(this.isOptional, that.isOptional) && context.comparator(this.isReadonly, that.isReadonly) && context.comparator(this.annotations, that.annotations);
|
|
552
|
+
}
|
|
553
|
+
};
|
|
575
554
|
/**
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
555
|
+
* @tsplus static fncts.schema.ASTOps createPropertySignature
|
|
556
|
+
*/
|
|
557
|
+
function createPropertySignature_1(name, type, isOptional, isReadonly, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
558
|
+
return new PropertySignature(name, type, isOptional, isReadonly, annotations);
|
|
559
|
+
}
|
|
560
|
+
var IndexSignature = class IndexSignature {
|
|
561
|
+
parameter;
|
|
562
|
+
type;
|
|
563
|
+
isReadonly;
|
|
564
|
+
constructor(parameter, type, isReadonly) {
|
|
565
|
+
this.parameter = parameter;
|
|
566
|
+
this.type = type;
|
|
567
|
+
this.isReadonly = isReadonly;
|
|
568
|
+
}
|
|
569
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
570
|
+
return that instanceof IndexSignature && context.comparator(this.parameter, that.parameter) && context.comparator(this.type, that.type) && context.comparator(this.isReadonly, that.isReadonly);
|
|
571
|
+
}
|
|
572
|
+
};
|
|
592
573
|
/**
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
exports.IndexSignature = IndexSignature;
|
|
574
|
+
* @tsplus static fncts.schema.ASTOps createIndexSignature
|
|
575
|
+
*/
|
|
596
576
|
function createIndexSignature_1(parameter, type, isReadonly) {
|
|
597
|
-
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
577
|
+
return new IndexSignature(parameter, type, isReadonly);
|
|
578
|
+
}
|
|
579
|
+
var TypeLiteral = class TypeLiteral extends AST {
|
|
580
|
+
annotations;
|
|
581
|
+
_tag = 17;
|
|
582
|
+
propertySignatures;
|
|
583
|
+
indexSignatures;
|
|
584
|
+
constructor(propertySignatures, indexSignatures, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
585
|
+
super();
|
|
586
|
+
this.annotations = annotations;
|
|
587
|
+
this.propertySignatures = sortByAscendingCardinality(propertySignatures);
|
|
588
|
+
this.indexSignatures = sortByAscendingCardinality(indexSignatures);
|
|
589
|
+
}
|
|
590
|
+
clone(newProperties) {
|
|
591
|
+
return new TypeLiteral(newProperties.propertySignatures ?? this.propertySignatures, newProperties.indexSignatures ?? this.indexSignatures, newProperties.annotations ?? this.annotations);
|
|
592
|
+
}
|
|
593
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
594
|
+
return hasTag(that, 17) && context.comparator(this.propertySignatures, that.propertySignatures) && context.comparator(this.indexSignatures, that.indexSignatures) && context.comparator(this.annotations, that.annotations);
|
|
595
|
+
}
|
|
596
|
+
};
|
|
614
597
|
/**
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
exports.TypeLiteral = TypeLiteral;
|
|
598
|
+
* @tsplus static fncts.schema.ASTOps isTypeLiteral
|
|
599
|
+
* @tsplus fluent fncts.schema.AST isTypeLiteral
|
|
600
|
+
*/
|
|
619
601
|
function isTypeLiteral(self) {
|
|
620
|
-
|
|
621
|
-
return self._tag === 17 /* ASTTag.TypeLiteral */;
|
|
602
|
+
return self._tag === 17;
|
|
622
603
|
}
|
|
623
604
|
/**
|
|
624
|
-
|
|
625
|
-
|
|
605
|
+
* @tsplus static fncts.schema.ASTOps createTypeLiteral
|
|
606
|
+
*/
|
|
626
607
|
function createTypeLiteral_1(propertySignatures, indexSignatures, annotations) {
|
|
627
|
-
|
|
608
|
+
return new TypeLiteral(propertySignatures, indexSignatures, annotations);
|
|
628
609
|
}
|
|
629
610
|
/**
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
const unknownRecord =
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
611
|
+
* @tsplus static fncts.schema.ASTOps unknownRecord
|
|
612
|
+
*/
|
|
613
|
+
const unknownRecord = createTypeLiteral_1(_fncts_base_collection_immutable_Vector_api.empty(), _fncts_base_collection_immutable_Vector_api.vector(createIndexSignature_1(stringKeyword_1, unknownKeyword_1, true), createIndexSignature_1(symbolKeyword_1, unknownKeyword_1, true)));
|
|
614
|
+
var Union = class extends AST {
|
|
615
|
+
types;
|
|
616
|
+
annotations;
|
|
617
|
+
_tag = 18;
|
|
618
|
+
constructor(types, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
619
|
+
super();
|
|
620
|
+
this.types = types;
|
|
621
|
+
this.annotations = annotations;
|
|
622
|
+
}
|
|
623
|
+
clone(newProperties) {
|
|
624
|
+
return createUnion_1(newProperties.types ?? this.types, newProperties.annotations ?? this.annotations);
|
|
625
|
+
}
|
|
626
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
627
|
+
return hasTag(that, 18) && context.comparator(this.types, that.types) && context.comparator(this.annotations, that.annotations);
|
|
628
|
+
}
|
|
629
|
+
};
|
|
647
630
|
/**
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
exports.Union = Union;
|
|
631
|
+
* @tsplus fluent fncts.schema.AST isUnion
|
|
632
|
+
*/
|
|
651
633
|
function isUnion(self) {
|
|
652
|
-
|
|
653
|
-
return self._tag === 18 /* ASTTag.Union */;
|
|
634
|
+
return self._tag === 18;
|
|
654
635
|
}
|
|
655
636
|
/**
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
function createUnion_1(candidates, annotations =
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
}
|
|
637
|
+
* @tsplus static fncts.schema.ASTOps createUnion
|
|
638
|
+
*/
|
|
639
|
+
function createUnion_1(candidates, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
640
|
+
const types = unify(candidates);
|
|
641
|
+
switch (types.length) {
|
|
642
|
+
case 0: return neverKeyword_1;
|
|
643
|
+
case 1: return _fncts_base_collection_immutable_Vector_api.unsafeGet(0)(types);
|
|
644
|
+
default: return new Union(sortByDescendingWeight(types), annotations);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
var Lazy = class Lazy extends AST {
|
|
648
|
+
getAST;
|
|
649
|
+
annotations;
|
|
650
|
+
_tag = 19;
|
|
651
|
+
constructor(getAST, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
652
|
+
super();
|
|
653
|
+
this.getAST = getAST;
|
|
654
|
+
this.annotations = annotations;
|
|
655
|
+
}
|
|
656
|
+
clone(newProperties) {
|
|
657
|
+
return new Lazy(newProperties.getAST ?? this.getAST, newProperties.annotations ?? this.annotations);
|
|
658
|
+
}
|
|
659
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that) {
|
|
660
|
+
return this === that;
|
|
661
|
+
}
|
|
662
|
+
};
|
|
683
663
|
/**
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
exports.Lazy = Lazy;
|
|
664
|
+
* @tsplus static fncts.schema.ASTOps createLazy
|
|
665
|
+
*/
|
|
687
666
|
function createLazy_1(getAST, annotations) {
|
|
688
|
-
|
|
667
|
+
return new Lazy(getAST, annotations);
|
|
689
668
|
}
|
|
690
669
|
/**
|
|
691
|
-
|
|
692
|
-
|
|
670
|
+
* @tsplus fluent fncts.schema.AST isLazy
|
|
671
|
+
*/
|
|
693
672
|
function isLazy(self) {
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
673
|
+
return self._tag === 19;
|
|
674
|
+
}
|
|
675
|
+
var Refinement = class Refinement extends AST {
|
|
676
|
+
from;
|
|
677
|
+
predicate;
|
|
678
|
+
annotations;
|
|
679
|
+
_tag = 20;
|
|
680
|
+
constructor(from, predicate, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
681
|
+
super();
|
|
682
|
+
this.from = from;
|
|
683
|
+
this.predicate = predicate;
|
|
684
|
+
this.annotations = annotations;
|
|
685
|
+
}
|
|
686
|
+
decode(input, options) {
|
|
687
|
+
return this.predicate(input) ? _fncts_schema_ParseResult.succeed(input) : _fncts_schema_ParseResult.fail(_fncts_schema_ParseError_ParseError.typeError(this, input));
|
|
688
|
+
}
|
|
689
|
+
clone(newProperties) {
|
|
690
|
+
return new Refinement(newProperties.from ?? this.from, newProperties.predicate ?? this.predicate, newProperties.annotations ?? this.annotations);
|
|
691
|
+
}
|
|
692
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
693
|
+
return hasTag(that, 20) && context.comparator(this.from, that.from) && context.comparator(this.predicate, that.predicate) && context.comparator(this.annotations, that.annotations);
|
|
694
|
+
}
|
|
695
|
+
};
|
|
715
696
|
/**
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
exports.Refinement = Refinement;
|
|
697
|
+
* @tsplus static fncts.schema.ASTOps createRefinement
|
|
698
|
+
*/
|
|
719
699
|
function createRefinement_1(from, predicate, annotations) {
|
|
720
|
-
|
|
700
|
+
return new Refinement(from, predicate, annotations);
|
|
721
701
|
}
|
|
722
702
|
function isRefinement(self) {
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
}
|
|
703
|
+
return self._tag === 20;
|
|
704
|
+
}
|
|
705
|
+
var Transform = class Transform extends AST {
|
|
706
|
+
from;
|
|
707
|
+
to;
|
|
708
|
+
decode;
|
|
709
|
+
encode;
|
|
710
|
+
annotations;
|
|
711
|
+
_tag = 21;
|
|
712
|
+
constructor(from, to, decode, encode, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
713
|
+
super();
|
|
714
|
+
this.from = from;
|
|
715
|
+
this.to = to;
|
|
716
|
+
this.decode = decode;
|
|
717
|
+
this.encode = encode;
|
|
718
|
+
this.annotations = annotations;
|
|
719
|
+
}
|
|
720
|
+
clone(newProperties) {
|
|
721
|
+
return new Transform(newProperties.from ?? this.from, newProperties.to ?? this.to, newProperties.decode ?? this.decode, newProperties.encode ?? this.encode, newProperties.annotations ?? this.annotations);
|
|
722
|
+
}
|
|
723
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
724
|
+
return hasTag(that, 21) && context.comparator(this.from, that.from) && context.comparator(this.to, that.to) && context.comparator(this.decode, that.decode) && context.comparator(this.encode, that.encode) && context.comparator(this.annotations, that.annotations);
|
|
725
|
+
}
|
|
726
|
+
};
|
|
743
727
|
/**
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
exports.Transform = Transform;
|
|
728
|
+
* @tsplus static fncts.schema.ASTOps createTransform
|
|
729
|
+
*/
|
|
747
730
|
function createTransform(from, to, decode, encode, annotations) {
|
|
748
|
-
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
731
|
+
return new Transform(from, getTo_1(to), decode, encode, annotations);
|
|
732
|
+
}
|
|
733
|
+
var Validation = class Validation extends AST {
|
|
734
|
+
from;
|
|
735
|
+
validation;
|
|
736
|
+
annotations;
|
|
737
|
+
_tag = 22;
|
|
738
|
+
constructor(from, validation, annotations = require_ASTAnnotationMap.ASTAnnotationMap.empty) {
|
|
739
|
+
super();
|
|
740
|
+
this.from = from;
|
|
741
|
+
this.validation = validation;
|
|
742
|
+
this.annotations = annotations;
|
|
743
|
+
}
|
|
744
|
+
clone(newProperties) {
|
|
745
|
+
return new Validation(newProperties.from ?? this.from, newProperties.validation ?? this.validation, newProperties.annotations ?? this.annotations);
|
|
746
|
+
}
|
|
747
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
748
|
+
return hasTag(that, 22) && context.comparator(this.from, that.from) && context.comparator(this.validation, that.validation) && context.comparator(this.annotations, that.annotations);
|
|
749
|
+
}
|
|
750
|
+
};
|
|
765
751
|
/**
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
exports.Validation = Validation;
|
|
752
|
+
* @tsplus static fncts.schema.ASTOps createValidation
|
|
753
|
+
*/
|
|
769
754
|
function createValidation(from, validation, annotations) {
|
|
770
|
-
|
|
755
|
+
return new Validation(from, validation, annotations);
|
|
771
756
|
}
|
|
772
757
|
/**
|
|
773
|
-
|
|
774
|
-
|
|
758
|
+
* @tsplus tailRec
|
|
759
|
+
*/
|
|
775
760
|
function getCardinality(ast) {
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
ast_1 = ast_2;
|
|
803
|
-
continue;
|
|
804
|
-
case 21 /* ASTTag.Transform */:
|
|
805
|
-
ast_2 = ast_1.to;
|
|
806
|
-
ast_1 = ast_2;
|
|
807
|
-
continue;
|
|
808
|
-
default:
|
|
809
|
-
return 4;
|
|
810
|
-
}
|
|
811
|
-
}
|
|
761
|
+
var ast_1 = ast;
|
|
762
|
+
var ast_2 = ast;
|
|
763
|
+
while (1) switch (ast_1._tag) {
|
|
764
|
+
case 5: return 0;
|
|
765
|
+
case 1:
|
|
766
|
+
case 3:
|
|
767
|
+
case 4:
|
|
768
|
+
case 2: return 1;
|
|
769
|
+
case 10: return 2;
|
|
770
|
+
case 8:
|
|
771
|
+
case 9:
|
|
772
|
+
case 11:
|
|
773
|
+
case 12: return 3;
|
|
774
|
+
case 13: return 5;
|
|
775
|
+
case 6:
|
|
776
|
+
case 7: return 6;
|
|
777
|
+
case 20:
|
|
778
|
+
ast_2 = ast_1.from;
|
|
779
|
+
ast_1 = ast_2;
|
|
780
|
+
continue;
|
|
781
|
+
case 21:
|
|
782
|
+
ast_2 = ast_1.to;
|
|
783
|
+
ast_1 = ast_2;
|
|
784
|
+
continue;
|
|
785
|
+
default: return 4;
|
|
786
|
+
}
|
|
812
787
|
}
|
|
813
788
|
function sortByAscendingCardinality(types) {
|
|
814
|
-
|
|
815
|
-
type
|
|
816
|
-
}) => getCardinality(type))(tsplus_module_7.Ord))(types);
|
|
789
|
+
return _fncts_base_collection_immutable_Vector_api.sort(_fncts_base_data_Ord_api_contramap.contramap(({ type }) => getCardinality(type))(_fncts_base_data_number_instances.Ord))(types);
|
|
817
790
|
}
|
|
818
|
-
const OrdWeight =
|
|
819
|
-
const maxWeight =
|
|
791
|
+
const OrdWeight = _fncts_base_data_Ord_api.tuple(_fncts_base_data_number_instances.Ord, _fncts_base_data_number_instances.Ord, _fncts_base_data_number_instances.Ord);
|
|
792
|
+
const maxWeight = _fncts_base_data_Ord_api_max.max(OrdWeight);
|
|
820
793
|
function maxWeightAll(weights) {
|
|
821
|
-
|
|
794
|
+
return _fncts_base_collection_Iterable_api.foldLeft(emptyWeight, (b, a) => maxWeight(b)(a))(weights);
|
|
822
795
|
}
|
|
823
|
-
const emptyWeight = [
|
|
796
|
+
const emptyWeight = [
|
|
797
|
+
0,
|
|
798
|
+
0,
|
|
799
|
+
0
|
|
800
|
+
];
|
|
824
801
|
function getWeight(ast) {
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
802
|
+
switch (ast._tag) {
|
|
803
|
+
case 0: return _fncts_base_data_Maybe_destructors.match(() => [
|
|
804
|
+
6,
|
|
805
|
+
0,
|
|
806
|
+
0
|
|
807
|
+
], (ast) => {
|
|
808
|
+
const [_, y, z] = getWeight(ast);
|
|
809
|
+
return [
|
|
810
|
+
6,
|
|
811
|
+
y,
|
|
812
|
+
z
|
|
813
|
+
];
|
|
814
|
+
})(ast.annotations.get(_fncts_schema_ASTAnnotation.Surrogate));
|
|
815
|
+
case 16: return [
|
|
816
|
+
2,
|
|
817
|
+
ast.elements.length,
|
|
818
|
+
_fncts_base_data_Maybe_destructors.match(() => 0, (rest) => rest.length)(ast.rest)
|
|
819
|
+
];
|
|
820
|
+
case 17: {
|
|
821
|
+
const y = ast.propertySignatures.length;
|
|
822
|
+
const z = ast.indexSignatures.length;
|
|
823
|
+
return y + z === 0 ? [
|
|
824
|
+
-4,
|
|
825
|
+
0,
|
|
826
|
+
0
|
|
827
|
+
] : [
|
|
828
|
+
4,
|
|
829
|
+
y,
|
|
830
|
+
z
|
|
831
|
+
];
|
|
832
|
+
}
|
|
833
|
+
case 18: return maxWeightAll(_fncts_base_collection_immutable_Vector_api.map(getWeight)(ast.types));
|
|
834
|
+
case 19: return [
|
|
835
|
+
8,
|
|
836
|
+
0,
|
|
837
|
+
0
|
|
838
|
+
];
|
|
839
|
+
case 20:
|
|
840
|
+
const [x, y, z] = getWeight(ast.from);
|
|
841
|
+
return [
|
|
842
|
+
x + 1,
|
|
843
|
+
y,
|
|
844
|
+
z
|
|
845
|
+
];
|
|
846
|
+
case 21: return getWeight(ast.from);
|
|
847
|
+
case 13: return [
|
|
848
|
+
-2,
|
|
849
|
+
0,
|
|
850
|
+
0
|
|
851
|
+
];
|
|
852
|
+
case 6:
|
|
853
|
+
case 7: return [
|
|
854
|
+
-4,
|
|
855
|
+
0,
|
|
856
|
+
0
|
|
857
|
+
];
|
|
858
|
+
default: return emptyWeight;
|
|
859
|
+
}
|
|
857
860
|
}
|
|
858
861
|
function sortByDescendingWeight(types) {
|
|
859
|
-
|
|
862
|
+
return _fncts_base_collection_immutable_Vector_api.sort(_fncts_base_data_Ord_api_contramap.contramap(getWeight)(OrdWeight))(types);
|
|
860
863
|
}
|
|
861
864
|
function unify(candidates) {
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
if (tsplus_module_3.some(isStringKeyword_1)(out)) {
|
|
874
|
-
out = tsplus_module_3.filter(m => !(isLiteral_1(m) && typeof m.literal === "string"))(out);
|
|
875
|
-
}
|
|
876
|
-
if (tsplus_module_3.some(isNumberKeyword_1)(out)) {
|
|
877
|
-
out = tsplus_module_3.filter(m => !(isLiteral_1(m) && typeof m.literal === "number"))(out);
|
|
878
|
-
}
|
|
879
|
-
if (tsplus_module_3.some(isSymbolKeyword_1)(out)) {
|
|
880
|
-
out = tsplus_module_3.filter(m => !isUniqueSymbol_1(m))(out);
|
|
881
|
-
}
|
|
882
|
-
return out;
|
|
865
|
+
let out = _fncts_base_collection_immutable_Vector_api.flatMap((ast) => {
|
|
866
|
+
switch (ast._tag) {
|
|
867
|
+
case 5: return _fncts_base_collection_immutable_Vector_api.empty();
|
|
868
|
+
case 18: return ast.types;
|
|
869
|
+
default: return _fncts_base_collection_immutable_Vector_api.vector(ast);
|
|
870
|
+
}
|
|
871
|
+
})(candidates);
|
|
872
|
+
if (_fncts_base_collection_immutable_Vector_api.some(isStringKeyword_1)(out)) out = _fncts_base_collection_immutable_Vector_api.filter((m) => !(isLiteral_1(m) && typeof m.literal === "string"))(out);
|
|
873
|
+
if (_fncts_base_collection_immutable_Vector_api.some(isNumberKeyword_1)(out)) out = _fncts_base_collection_immutable_Vector_api.filter((m) => !(isLiteral_1(m) && typeof m.literal === "number"))(out);
|
|
874
|
+
if (_fncts_base_collection_immutable_Vector_api.some(isSymbolKeyword_1)(out)) out = _fncts_base_collection_immutable_Vector_api.filter((m) => !isUniqueSymbol_1(m))(out);
|
|
875
|
+
return out;
|
|
883
876
|
}
|
|
884
877
|
/**
|
|
885
|
-
|
|
886
|
-
|
|
878
|
+
* @tsplus pipeable fncts.schema.AST combineAnnotations
|
|
879
|
+
*/
|
|
887
880
|
function combineAnnotations(annotations) {
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
});
|
|
892
|
-
};
|
|
881
|
+
return (self) => {
|
|
882
|
+
return self.clone({ annotations: self.annotations.combine(annotations) });
|
|
883
|
+
};
|
|
893
884
|
}
|
|
894
885
|
/**
|
|
895
|
-
|
|
896
|
-
|
|
886
|
+
* @tsplus pipeable fncts.schema.AST setAnnotation
|
|
887
|
+
*/
|
|
897
888
|
function setAnnotation(annotation, value) {
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
});
|
|
902
|
-
};
|
|
889
|
+
return (self) => {
|
|
890
|
+
return self.clone({ annotations: self.annotations.annotate(annotation, value) });
|
|
891
|
+
};
|
|
903
892
|
}
|
|
904
893
|
/**
|
|
905
|
-
|
|
906
|
-
|
|
894
|
+
* @tsplus pipeable fncts.schema.AST appendRestElement
|
|
895
|
+
*/
|
|
907
896
|
function appendRestElement(restElement) {
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
return createTuple_1(self.elements, tsplus_module_4.just(tsplus_module_3.vector(restElement), fileName_1 + ":1115:43"), self.isReadonly, self.annotations);
|
|
913
|
-
};
|
|
897
|
+
return (self) => {
|
|
898
|
+
if (_fncts_base_data_Maybe_definition.isJust(self.rest)) throw new Error("A rest element cannot follow another rest element. ts(1265)");
|
|
899
|
+
return createTuple_1(self.elements, _fncts_base_data_Maybe_constructors.just(_fncts_base_collection_immutable_Vector_api.vector(restElement), fileName_1 + ":1313:43"), self.isReadonly, self.annotations);
|
|
900
|
+
};
|
|
914
901
|
}
|
|
915
902
|
/**
|
|
916
|
-
|
|
917
|
-
|
|
903
|
+
* @tsplus pipeable fncts.schema.AST appendElement
|
|
904
|
+
*/
|
|
918
905
|
function appendElement(element) {
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
}
|
|
927
|
-
return createTuple_1(self.elements, tsplus_module_4.just(tsplus_module_3.append(element.type)(rest), fileName_1 + ":1133:47"), self.isReadonly, self.annotations);
|
|
928
|
-
})(self.rest);
|
|
929
|
-
};
|
|
906
|
+
return (self) => {
|
|
907
|
+
if (_fncts_base_collection_immutable_Vector_api.some((e) => e.isOptional)(self.elements) && !element.isOptional) throw new Error("A required element cannot follow an optional element. ts(1257)");
|
|
908
|
+
return _fncts_base_data_Maybe_destructors.match(() => createTuple_1(_fncts_base_collection_immutable_Vector_api.append(element)(self.elements), _fncts_base_data_Maybe_constructors.nothing(fileName_1 + ":1326:63"), self.isReadonly, self.annotations), (rest) => {
|
|
909
|
+
if (element.isOptional) throw new Error("A required element cannot follow an optional element. ts(1257)");
|
|
910
|
+
return createTuple_1(self.elements, _fncts_base_data_Maybe_constructors.just(_fncts_base_collection_immutable_Vector_api.append(element.type)(rest), fileName_1 + ":1331:47"), self.isReadonly, self.annotations);
|
|
911
|
+
})(self.rest);
|
|
912
|
+
};
|
|
930
913
|
}
|
|
931
914
|
function getParameter(x) {
|
|
932
|
-
|
|
915
|
+
return isRefinement(x) ? getParameter(x.from) : x;
|
|
933
916
|
}
|
|
934
917
|
/**
|
|
935
|
-
|
|
936
|
-
|
|
918
|
+
* @tsplus getter fncts.schema.AST getPropertySignatures
|
|
919
|
+
*/
|
|
937
920
|
function getPropertySignatures_1(self) {
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
case 17 /* ASTTag.TypeLiteral */:
|
|
958
|
-
return self.propertySignatures;
|
|
959
|
-
case 19 /* ASTTag.Lazy */:
|
|
960
|
-
return getPropertySignatures_1(self.getAST());
|
|
961
|
-
case 20 /* ASTTag.Refinement */:
|
|
962
|
-
return getPropertySignatures_1(self.from);
|
|
963
|
-
case 21 /* ASTTag.Transform */:
|
|
964
|
-
return getPropertySignatures_1(self.to);
|
|
965
|
-
default:
|
|
966
|
-
return tsplus_module_3.empty();
|
|
967
|
-
}
|
|
921
|
+
switch (self._tag) {
|
|
922
|
+
case 0: return _fncts_base_data_Maybe_destructors.match(() => _fncts_base_collection_immutable_Vector_api.empty(), (surrogate) => getPropertySignatures_1(surrogate))(self.annotations.get(_fncts_schema_ASTAnnotation.Surrogate));
|
|
923
|
+
case 16: return _fncts_base_collection_immutable_Vector_api.mapWithIndex((i, element) => createPropertySignature_1(i, element.type, element.isOptional, self.isReadonly))(self.elements);
|
|
924
|
+
case 18: {
|
|
925
|
+
const propertySignatures = _fncts_base_collection_immutable_Vector_api.map(getPropertySignatures_1)(self.types);
|
|
926
|
+
return _fncts_base_collection_immutable_Vector_api.filterMap(({ name }) => {
|
|
927
|
+
if (_fncts_base_collection_immutable_Vector_api.every((ps) => _fncts_base_collection_immutable_Vector_api.some((p) => p.name === name)(ps))(propertySignatures)) {
|
|
928
|
+
const members = _fncts_base_collection_immutable_Vector_api.flatMap((ps) => _fncts_base_collection_immutable_Vector_api.filter((p) => p.name === name)(ps))(propertySignatures);
|
|
929
|
+
return _fncts_base_data_Maybe_constructors.just(createPropertySignature_1(name, createUnion_1(_fncts_base_collection_immutable_Vector_api.map((p) => p.type)(members)), _fncts_base_collection_immutable_Vector_api.some((p) => p.isOptional)(members), _fncts_base_collection_immutable_Vector_api.some((p) => p.isReadonly)(members)), fileName_1 + ":1363:22");
|
|
930
|
+
}
|
|
931
|
+
return _fncts_base_data_Maybe_constructors.nothing(fileName_1 + ":1372:23");
|
|
932
|
+
})(_fncts_base_collection_immutable_Vector_api.unsafeGet(0)(propertySignatures));
|
|
933
|
+
}
|
|
934
|
+
case 17: return self.propertySignatures;
|
|
935
|
+
case 19: return getPropertySignatures_1(self.getAST());
|
|
936
|
+
case 20: return getPropertySignatures_1(self.from);
|
|
937
|
+
case 21: return getPropertySignatures_1(self.to);
|
|
938
|
+
default: return _fncts_base_collection_immutable_Vector_api.empty();
|
|
939
|
+
}
|
|
968
940
|
}
|
|
969
941
|
/**
|
|
970
|
-
|
|
971
|
-
|
|
942
|
+
* @tsplus getter fncts.schema.AST keysof
|
|
943
|
+
*/
|
|
972
944
|
function keysOf_1(ast) {
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
return tsplus_module_3.map(p => typeof p.name === "symbol" ? createUniqueSymbol_1(p.name) : createLiteral_1(p.name))(getPropertySignatures_1(ast));
|
|
986
|
-
case 19 /* ASTTag.Lazy */:
|
|
987
|
-
return keysOf_1(ast.getAST());
|
|
988
|
-
case 20 /* ASTTag.Refinement */:
|
|
989
|
-
return keysOf_1(ast.from);
|
|
990
|
-
case 21 /* ASTTag.Transform */:
|
|
991
|
-
return keysOf_1(ast.to);
|
|
992
|
-
default:
|
|
993
|
-
return tsplus_module_3.empty();
|
|
994
|
-
}
|
|
945
|
+
switch (ast._tag) {
|
|
946
|
+
case 0: return _fncts_base_data_Maybe_destructors.match(() => _fncts_base_collection_immutable_Vector_api.empty(), (surrogate) => keysOf_1(surrogate))(ast.annotations.get(_fncts_schema_ASTAnnotation.Surrogate));
|
|
947
|
+
case 5:
|
|
948
|
+
case 7: return _fncts_base_collection_immutable_Vector_api.vector(stringKeyword_1, numberKeyword_1, symbolKeyword_1);
|
|
949
|
+
case 8: return _fncts_base_collection_immutable_Vector_api.vector(createLiteral_1("length"));
|
|
950
|
+
case 17: return _fncts_base_collection_immutable_Vector_api.concat(_fncts_base_collection_immutable_Vector_api.map((is) => getParameter(is.parameter))(ast.indexSignatures))(_fncts_base_collection_immutable_Vector_api.map((p) => typeof p.name === "symbol" ? createUniqueSymbol_1(p.name) : createLiteral_1(p.name))(ast.propertySignatures));
|
|
951
|
+
case 18: return _fncts_base_collection_immutable_Vector_api.map((p) => typeof p.name === "symbol" ? createUniqueSymbol_1(p.name) : createLiteral_1(p.name))(getPropertySignatures_1(ast));
|
|
952
|
+
case 19: return keysOf_1(ast.getAST());
|
|
953
|
+
case 20: return keysOf_1(ast.from);
|
|
954
|
+
case 21: return keysOf_1(ast.to);
|
|
955
|
+
default: return _fncts_base_collection_immutable_Vector_api.empty();
|
|
956
|
+
}
|
|
995
957
|
}
|
|
996
958
|
/**
|
|
997
|
-
|
|
998
|
-
|
|
959
|
+
* @tsplus getter fncts.schema.AST keyof
|
|
960
|
+
*/
|
|
999
961
|
function keyof(self) {
|
|
1000
|
-
|
|
962
|
+
return createUnion_1(keysOf_1(self));
|
|
1001
963
|
}
|
|
1002
964
|
/**
|
|
1003
|
-
|
|
1004
|
-
|
|
965
|
+
* @tsplus static fncts.schema.ASTOps createRecord
|
|
966
|
+
*/
|
|
1005
967
|
function createRecord(key, value, isReadonly) {
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
throw new Error(`createRecord: Unsupported key\n${(0, _Showable.show)(key)}`);
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
go(key);
|
|
1035
|
-
return createTypeLiteral_1(propertySignatures, indexSignatures);
|
|
968
|
+
const propertySignatures = _fncts_base_collection_immutable_Vector_api.emptyPushable();
|
|
969
|
+
const indexSignatures = _fncts_base_collection_immutable_Vector_api.emptyPushable();
|
|
970
|
+
function go(key) {
|
|
971
|
+
switch (key._tag) {
|
|
972
|
+
case 5: break;
|
|
973
|
+
case 8:
|
|
974
|
+
case 12:
|
|
975
|
+
case 15:
|
|
976
|
+
case 20:
|
|
977
|
+
_fncts_base_collection_immutable_Vector_internal.push(createIndexSignature_1(key, value, isReadonly))(indexSignatures);
|
|
978
|
+
break;
|
|
979
|
+
case 1:
|
|
980
|
+
if (typeof key.literal === "string" || typeof key.literal === "number") _fncts_base_collection_immutable_Vector_internal.push(createPropertySignature_1(key.literal, value, false, isReadonly))(propertySignatures);
|
|
981
|
+
break;
|
|
982
|
+
case 2:
|
|
983
|
+
_fncts_base_collection_immutable_Vector_internal.push(createPropertySignature_1(key.symbol, value, false, isReadonly))(propertySignatures);
|
|
984
|
+
break;
|
|
985
|
+
case 18:
|
|
986
|
+
_fncts_base_collection_immutable_Vector_api.forEach(go)(key.types);
|
|
987
|
+
break;
|
|
988
|
+
default: throw new Error(`createRecord: Unsupported key\n${(0, _fncts_base_data_Showable.show)(key)}`);
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
go(key);
|
|
992
|
+
return createTypeLiteral_1(propertySignatures, indexSignatures);
|
|
1036
993
|
}
|
|
1037
994
|
/**
|
|
1038
|
-
|
|
1039
|
-
|
|
995
|
+
* @tsplus pipeable fncts.schema.AST pick
|
|
996
|
+
*/
|
|
1040
997
|
function pick(keys) {
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
998
|
+
return (self) => {
|
|
999
|
+
return createTypeLiteral_1(_fncts_base_collection_immutable_Vector_api.filter((ps) => _fncts_base_collection_immutable_Vector_api.includes(ps.name)(keys))(getPropertySignatures_1(self)), _fncts_base_collection_immutable_Vector_api.empty());
|
|
1000
|
+
};
|
|
1044
1001
|
}
|
|
1045
1002
|
/**
|
|
1046
|
-
|
|
1047
|
-
|
|
1003
|
+
* @tsplus pipeable fncts.schema.AST omit
|
|
1004
|
+
*/
|
|
1048
1005
|
function omit(keys) {
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1006
|
+
return (self) => {
|
|
1007
|
+
return createTypeLiteral_1(_fncts_base_collection_immutable_Vector_api.filter((ps) => !_fncts_base_collection_immutable_Vector_api.includes(ps.name)(keys))(getPropertySignatures_1(self)), _fncts_base_collection_immutable_Vector_api.empty());
|
|
1008
|
+
};
|
|
1052
1009
|
}
|
|
1053
1010
|
/**
|
|
1054
|
-
|
|
1055
|
-
|
|
1011
|
+
* @tsplus getter fncts.schema.AST partial
|
|
1012
|
+
*/
|
|
1056
1013
|
function partial_1(self) {
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
return createLazy_1(() => partial_1(self.getAST()));
|
|
1067
|
-
case 20 /* ASTTag.Refinement */:
|
|
1068
|
-
return partial_1(self.from);
|
|
1069
|
-
case 21 /* ASTTag.Transform */:
|
|
1070
|
-
return partial_1(self.to);
|
|
1071
|
-
default:
|
|
1072
|
-
return self;
|
|
1073
|
-
}
|
|
1014
|
+
switch (self._tag) {
|
|
1015
|
+
case 16: return createTuple_1(_fncts_base_collection_immutable_Vector_api.map((e) => createElement_1(e.type, true))(self.elements), _fncts_base_data_Maybe_api.map((rest) => _fncts_base_collection_immutable_Vector_api.vector(createUnion_1(_fncts_base_collection_immutable_Vector_api.append(undefinedKeyword_1)(rest))))(self.rest), self.isReadonly);
|
|
1016
|
+
case 17: return createTypeLiteral_1(_fncts_base_collection_immutable_Vector_api.map((f) => createPropertySignature_1(f.name, f.type, true, f.isReadonly, f.annotations))(self.propertySignatures), self.indexSignatures);
|
|
1017
|
+
case 18: return createUnion_1(_fncts_base_collection_immutable_Vector_api.map(partial_1)(self.types));
|
|
1018
|
+
case 19: return createLazy_1(() => partial_1(self.getAST()));
|
|
1019
|
+
case 20: return partial_1(self.from);
|
|
1020
|
+
case 21: return partial_1(self.to);
|
|
1021
|
+
default: return self;
|
|
1022
|
+
}
|
|
1074
1023
|
}
|
|
1075
1024
|
/**
|
|
1076
|
-
|
|
1077
|
-
|
|
1025
|
+
* @tsplus static fncts.schema.AST createKey
|
|
1026
|
+
*/
|
|
1078
1027
|
function createKey(key) {
|
|
1079
|
-
|
|
1028
|
+
return typeof key === "symbol" ? createUniqueSymbol_1(key) : createLiteral_1(key);
|
|
1080
1029
|
}
|
|
1081
1030
|
/**
|
|
1082
|
-
|
|
1083
|
-
|
|
1031
|
+
* @tsplus getter fncts.schema.AST getFrom
|
|
1032
|
+
*/
|
|
1084
1033
|
function getFrom_1(ast) {
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
case 18 /* ASTTag.Union */:
|
|
1100
|
-
return createUnion_1(tsplus_module_3.map(getFrom_1)(ast.types), ast.annotations);
|
|
1101
|
-
case 19 /* ASTTag.Lazy */:
|
|
1102
|
-
return createLazy_1(() => getFrom_1(ast.getAST()), ast.annotations);
|
|
1103
|
-
case 20 /* ASTTag.Refinement */:
|
|
1104
|
-
case 21 /* ASTTag.Transform */:
|
|
1105
|
-
return getFrom_1(ast.from);
|
|
1106
|
-
}
|
|
1107
|
-
return ast;
|
|
1034
|
+
switch (ast._tag) {
|
|
1035
|
+
case 0: {
|
|
1036
|
+
const surrogate = ast.annotations.get(_fncts_schema_ASTAnnotation.Surrogate);
|
|
1037
|
+
if (_fncts_base_data_Maybe_definition.isJust(surrogate)) return getFrom_1(surrogate.value);
|
|
1038
|
+
break;
|
|
1039
|
+
}
|
|
1040
|
+
case 16: return createTuple_1(_fncts_base_collection_immutable_Vector_api.map((element) => createElement_1(getFrom_1(element.type), element.isOptional))(ast.elements), _fncts_base_data_Maybe_api.map((restElement) => _fncts_base_collection_immutable_Vector_api.map(getFrom_1)(restElement))(ast.rest), ast.isReadonly, ast.annotations);
|
|
1041
|
+
case 17: return createTypeLiteral_1(_fncts_base_collection_immutable_Vector_api.map((ps) => createPropertySignature_1(ps.name, getFrom_1(ps.type), ps.isOptional, ps.isReadonly, ps.annotations))(ast.propertySignatures), _fncts_base_collection_immutable_Vector_api.map((is) => createIndexSignature_1(is.parameter, getFrom_1(is.type), is.isReadonly))(ast.indexSignatures), ast.annotations);
|
|
1042
|
+
case 18: return createUnion_1(_fncts_base_collection_immutable_Vector_api.map(getFrom_1)(ast.types), ast.annotations);
|
|
1043
|
+
case 19: return createLazy_1(() => getFrom_1(ast.getAST()), ast.annotations);
|
|
1044
|
+
case 20:
|
|
1045
|
+
case 21: return getFrom_1(ast.from);
|
|
1046
|
+
}
|
|
1047
|
+
return ast;
|
|
1108
1048
|
}
|
|
1109
1049
|
/**
|
|
1110
|
-
|
|
1111
|
-
|
|
1050
|
+
* @tsplus getter fncts.schema.AST getTo
|
|
1051
|
+
*/
|
|
1112
1052
|
function getTo_1(ast) {
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
case 18 /* ASTTag.Union */:
|
|
1128
|
-
return createUnion_1(tsplus_module_3.map(getTo_1)(ast.types), ast.annotations);
|
|
1129
|
-
case 19 /* ASTTag.Lazy */:
|
|
1130
|
-
return createLazy_1(() => getTo_1(ast.getAST()), ast.annotations);
|
|
1131
|
-
case 20 /* ASTTag.Refinement */:
|
|
1132
|
-
return createRefinement_1(getTo_1(ast.from), ast.predicate, ast.annotations);
|
|
1133
|
-
case 21 /* ASTTag.Transform */:
|
|
1134
|
-
return getTo_1(ast.to);
|
|
1135
|
-
}
|
|
1136
|
-
return ast;
|
|
1053
|
+
switch (ast._tag) {
|
|
1054
|
+
case 0: {
|
|
1055
|
+
const surrogate = ast.annotations.get(_fncts_schema_ASTAnnotation.Surrogate);
|
|
1056
|
+
if (_fncts_base_data_Maybe_definition.isJust(surrogate)) return getTo_1(surrogate.value);
|
|
1057
|
+
break;
|
|
1058
|
+
}
|
|
1059
|
+
case 16: return createTuple_1(_fncts_base_collection_immutable_Vector_api.map((element) => createElement_1(getTo_1(element.type), element.isOptional))(ast.elements), _fncts_base_data_Maybe_api.map((restElement) => _fncts_base_collection_immutable_Vector_api.map(getTo_1)(restElement))(ast.rest), ast.isReadonly, ast.annotations);
|
|
1060
|
+
case 17: return createTypeLiteral_1(_fncts_base_collection_immutable_Vector_api.map((ps) => createPropertySignature_1(ps.name, getTo_1(ps.type), ps.isOptional, ps.isReadonly, ps.annotations))(ast.propertySignatures), _fncts_base_collection_immutable_Vector_api.map((is) => createIndexSignature_1(is.parameter, getTo_1(is.type), is.isReadonly))(ast.indexSignatures), ast.annotations);
|
|
1061
|
+
case 18: return createUnion_1(_fncts_base_collection_immutable_Vector_api.map(getTo_1)(ast.types), ast.annotations);
|
|
1062
|
+
case 19: return createLazy_1(() => getTo_1(ast.getAST()), ast.annotations);
|
|
1063
|
+
case 20: return createRefinement_1(getTo_1(ast.from), ast.predicate, ast.annotations);
|
|
1064
|
+
case 21: return getTo_1(ast.to);
|
|
1065
|
+
}
|
|
1066
|
+
return ast;
|
|
1137
1067
|
}
|
|
1138
1068
|
/**
|
|
1139
|
-
|
|
1140
|
-
|
|
1069
|
+
* @tsplus static fncts.schema.AST getCompiler
|
|
1070
|
+
*/
|
|
1141
1071
|
function getCompiler(match) {
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
return compile;
|
|
1072
|
+
const compile = (0, _fncts_schema_utils.memoize)((ast) => {
|
|
1073
|
+
return match[ast._tag](ast, compile);
|
|
1074
|
+
});
|
|
1075
|
+
return compile;
|
|
1147
1076
|
}
|
|
1148
1077
|
function getLiterals(ast, isDecoding) {
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
}
|
|
1168
|
-
return out;
|
|
1169
|
-
}
|
|
1170
|
-
case 20 /* ASTTag.Refinement */:
|
|
1171
|
-
return getLiterals(ast.from, isDecoding);
|
|
1172
|
-
case 21 /* ASTTag.Transform */:
|
|
1173
|
-
return getLiterals(isDecoding ? ast.from : ast.to, isDecoding);
|
|
1174
|
-
}
|
|
1175
|
-
return [];
|
|
1078
|
+
switch (ast._tag) {
|
|
1079
|
+
case 0: {
|
|
1080
|
+
const surrogate = ast.annotations.get(_fncts_schema_ASTAnnotation.Surrogate);
|
|
1081
|
+
if (_fncts_base_data_Maybe_definition.isJust(surrogate)) return getLiterals(surrogate.value, isDecoding);
|
|
1082
|
+
break;
|
|
1083
|
+
}
|
|
1084
|
+
case 17: {
|
|
1085
|
+
const out = [];
|
|
1086
|
+
for (let i = 0; i < ast.propertySignatures.length; i++) {
|
|
1087
|
+
const propertySignature = _fncts_base_collection_immutable_Vector_api.unsafeGet(i)(ast.propertySignatures);
|
|
1088
|
+
if (isLiteral_1(propertySignature.type) && !propertySignature.isOptional) out.push([propertySignature.name, propertySignature.type]);
|
|
1089
|
+
}
|
|
1090
|
+
return out;
|
|
1091
|
+
}
|
|
1092
|
+
case 20: return getLiterals(ast.from, isDecoding);
|
|
1093
|
+
case 21: return getLiterals(isDecoding ? ast.from : ast.to, isDecoding);
|
|
1094
|
+
}
|
|
1095
|
+
return [];
|
|
1176
1096
|
}
|
|
1177
1097
|
function getSearchTree(members, isDecoding) {
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
}
|
|
1211
|
-
return {
|
|
1212
|
-
keys,
|
|
1213
|
-
otherwise
|
|
1214
|
-
};
|
|
1098
|
+
const keys = {};
|
|
1099
|
+
const otherwise = [];
|
|
1100
|
+
for (let i = 0; i < members.length; i++) {
|
|
1101
|
+
const member = _fncts_base_collection_immutable_Vector_api.unsafeGet(i)(members);
|
|
1102
|
+
const tags = getLiterals(member, isDecoding);
|
|
1103
|
+
if (tags.length > 0) for (let j = 0; j < tags.length; j++) {
|
|
1104
|
+
const [key, literal] = tags[j];
|
|
1105
|
+
const hash = String(literal.literal);
|
|
1106
|
+
keys[key] ||= {
|
|
1107
|
+
buckets: {},
|
|
1108
|
+
ast: neverKeyword_1,
|
|
1109
|
+
literals: []
|
|
1110
|
+
};
|
|
1111
|
+
const buckets = keys[key].buckets;
|
|
1112
|
+
if (Object.prototype.hasOwnProperty.call(buckets, hash)) {
|
|
1113
|
+
if (j < tags.length - 1) continue;
|
|
1114
|
+
buckets[hash].push(member);
|
|
1115
|
+
keys[key].ast = createUnion_1(_fncts_base_collection_immutable_Vector_api.vector(keys[key].ast, literal));
|
|
1116
|
+
keys[key].literals.push(literal);
|
|
1117
|
+
} else {
|
|
1118
|
+
buckets[hash] = [member];
|
|
1119
|
+
keys[key].ast = createUnion_1(_fncts_base_collection_immutable_Vector_api.vector(keys[key].ast, literal));
|
|
1120
|
+
keys[key].literals.push(literal);
|
|
1121
|
+
break;
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
else otherwise.push(member);
|
|
1125
|
+
}
|
|
1126
|
+
return {
|
|
1127
|
+
keys,
|
|
1128
|
+
otherwise
|
|
1129
|
+
};
|
|
1215
1130
|
}
|
|
1216
1131
|
/**
|
|
1217
|
-
|
|
1218
|
-
|
|
1132
|
+
* @tsplus pipeable fncts.schema.AST getFormattedExpected
|
|
1133
|
+
*/
|
|
1219
1134
|
function getFormattedExpected(verbose = false) {
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1135
|
+
return (self) => {
|
|
1136
|
+
if (verbose) {
|
|
1137
|
+
const description = _fncts_base_data_Maybe_api.orElse(() => self.annotations.get(_fncts_schema_ASTAnnotation.Title))(self.annotations.get(_fncts_schema_ASTAnnotation.Description));
|
|
1138
|
+
return _fncts_base_data_Maybe_destructors.match(() => description, (identifier) => _fncts_base_data_Maybe_destructors.match(() => _fncts_base_data_Maybe_constructors.just(identifier, fileName_1 + ":1710:23"), (description) => _fncts_base_data_Maybe_constructors.just(`${identifier} (${description})`, fileName_1 + ":1711:34"))(description))(self.annotations.get(_fncts_schema_ASTAnnotation.Identifier));
|
|
1139
|
+
} else return _fncts_base_data_Maybe_api.orElse(() => self.annotations.get(_fncts_schema_ASTAnnotation.Description))(_fncts_base_data_Maybe_api.orElse(() => self.annotations.get(_fncts_schema_ASTAnnotation.Title))(self.annotations.get(_fncts_schema_ASTAnnotation.Identifier)));
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
//#endregion
|
|
1143
|
+
exports.AST = AST;
|
|
1144
|
+
exports.ASTTypeId = ASTTypeId;
|
|
1145
|
+
exports.Annotated = Annotated;
|
|
1146
|
+
exports.AnyKeyword = AnyKeyword;
|
|
1147
|
+
exports.BigIntKeyword = BigIntKeyword;
|
|
1148
|
+
exports.BooleanKeyword = BooleanKeyword;
|
|
1149
|
+
exports.Declaration = Declaration;
|
|
1150
|
+
exports.Element = Element;
|
|
1151
|
+
exports.Enum = Enum;
|
|
1152
|
+
exports.IndexSignature = IndexSignature;
|
|
1153
|
+
exports.Lazy = Lazy;
|
|
1154
|
+
exports.Literal = Literal;
|
|
1155
|
+
exports.NeverKeyword = NeverKeyword;
|
|
1156
|
+
exports.NumberKeyword = NumberKeyword;
|
|
1157
|
+
exports.ObjectKeyword = ObjectKeyword;
|
|
1158
|
+
exports.PropertySignature = PropertySignature;
|
|
1159
|
+
exports.Refinement = Refinement;
|
|
1160
|
+
exports.StringKeyword = StringKeyword;
|
|
1161
|
+
exports.SymbolKeyword = SymbolKeyword;
|
|
1162
|
+
exports.TemplateLiteral = TemplateLiteral;
|
|
1163
|
+
exports.TemplateLiteralSpan = TemplateLiteralSpan;
|
|
1164
|
+
exports.Transform = Transform;
|
|
1165
|
+
exports.Tuple = Tuple;
|
|
1166
|
+
exports.TypeLiteral = TypeLiteral;
|
|
1167
|
+
exports.UndefinedKeyword = UndefinedKeyword;
|
|
1168
|
+
exports.Union = Union;
|
|
1169
|
+
exports.UniqueSymbol = UniqueSymbol;
|
|
1170
|
+
exports.UnknownKeyword = UnknownKeyword;
|
|
1171
|
+
exports.Validation = Validation;
|
|
1172
|
+
exports.VoidKeyword = VoidKeyword;
|
|
1173
|
+
exports.anyKeyword = anyKeyword;
|
|
1174
|
+
exports.appendElement = appendElement;
|
|
1175
|
+
exports.appendRestElement = appendRestElement;
|
|
1176
|
+
exports.bigIntKeyword = bigIntKeyword;
|
|
1177
|
+
exports.booleanKeyword = booleanKeyword;
|
|
1178
|
+
exports.combineAnnotations = combineAnnotations;
|
|
1179
|
+
exports.concrete = concrete;
|
|
1180
|
+
exports.createDeclaration = createDeclaration;
|
|
1181
|
+
exports.createElement = createElement;
|
|
1182
|
+
exports.createEnum = createEnum;
|
|
1183
|
+
exports.createIndexSignature = createIndexSignature;
|
|
1184
|
+
exports.createKey = createKey;
|
|
1185
|
+
exports.createLazy = createLazy;
|
|
1186
|
+
exports.createLiteral = createLiteral;
|
|
1187
|
+
exports.createPropertySignature = createPropertySignature;
|
|
1188
|
+
exports.createRecord = createRecord;
|
|
1189
|
+
exports.createRefinement = createRefinement;
|
|
1190
|
+
exports.createTemplateLiteral = createTemplateLiteral;
|
|
1191
|
+
exports.createTransform = createTransform;
|
|
1192
|
+
exports.createTuple = createTuple;
|
|
1193
|
+
exports.createTypeLiteral = createTypeLiteral;
|
|
1194
|
+
exports.createUnion = createUnion;
|
|
1195
|
+
exports.createUniqueSymbol = createUniqueSymbol;
|
|
1196
|
+
exports.createValidation = createValidation;
|
|
1197
|
+
exports.getAnnotations = getAnnotations;
|
|
1198
|
+
exports.getCardinality = getCardinality;
|
|
1199
|
+
exports.getCompiler = getCompiler;
|
|
1200
|
+
exports.getFormattedExpected = getFormattedExpected;
|
|
1201
|
+
exports.getFrom = getFrom;
|
|
1202
|
+
exports.getLiterals = getLiterals;
|
|
1203
|
+
exports.getParameter = getParameter;
|
|
1204
|
+
exports.getPropertySignatures = getPropertySignatures;
|
|
1205
|
+
exports.getSearchTree = getSearchTree;
|
|
1206
|
+
exports.getTo = getTo;
|
|
1207
|
+
exports.getWeight = getWeight;
|
|
1208
|
+
exports.isAST = isAST;
|
|
1209
|
+
exports.isBigIntKeyword = isBigIntKeyword;
|
|
1210
|
+
exports.isBooleanKeyword = isBooleanKeyword;
|
|
1211
|
+
exports.isDeclaration = isDeclaration;
|
|
1212
|
+
exports.isLazy = isLazy;
|
|
1213
|
+
exports.isLiteral = isLiteral;
|
|
1214
|
+
exports.isNumberKeyword = isNumberKeyword;
|
|
1215
|
+
exports.isRefinement = isRefinement;
|
|
1216
|
+
exports.isStringKeyword = isStringKeyword;
|
|
1217
|
+
exports.isSymbolKeyword = isSymbolKeyword;
|
|
1218
|
+
exports.isTypeLiteral = isTypeLiteral;
|
|
1219
|
+
exports.isUnion = isUnion;
|
|
1220
|
+
exports.isUniqueSymbol = isUniqueSymbol;
|
|
1221
|
+
exports.keyof = keyof;
|
|
1222
|
+
exports.keysOf = keysOf;
|
|
1223
|
+
exports.neverKeyword = neverKeyword;
|
|
1224
|
+
exports.numberKeyword = numberKeyword;
|
|
1225
|
+
exports.objectKeyword = objectKeyword;
|
|
1226
|
+
exports.omit = omit;
|
|
1227
|
+
exports.partial = partial;
|
|
1228
|
+
exports.pick = pick;
|
|
1229
|
+
exports.setAnnotation = setAnnotation;
|
|
1230
|
+
exports.stringKeyword = stringKeyword;
|
|
1231
|
+
exports.symbolKeyword = symbolKeyword;
|
|
1232
|
+
exports.undefinedKeyword = undefinedKeyword;
|
|
1233
|
+
exports.unknownArray = unknownArray;
|
|
1234
|
+
exports.unknownKeyword = unknownKeyword;
|
|
1235
|
+
exports.unknownRecord = unknownRecord;
|
|
1236
|
+
exports.voidKeyword = voidKeyword;
|
|
1237
|
+
|
|
1229
1238
|
//# sourceMappingURL=AST.cjs.map
|