@fncts/schema 0.0.24 → 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/LICENSE +26 -0
- package/_cjs/AST.cjs +1093 -1226
- package/_cjs/AST.cjs.map +1 -1
- package/_cjs/ASTAnnotation.cjs +114 -85
- package/_cjs/ASTAnnotation.cjs.map +1 -1
- package/_cjs/ASTAnnotationMap.cjs +43 -41
- 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 -10
- package/_cjs/InvalidInterpretationError.cjs.map +1 -1
- package/_cjs/ParseError/ParseError.cjs +283 -284
- 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 -66
- 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 -26
- 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 +996 -1161
- package/_mjs/AST.mjs.map +1 -1
- package/_mjs/ASTAnnotation.mjs +77 -73
- package/_mjs/ASTAnnotation.mjs.map +1 -1
- package/_mjs/ASTAnnotationMap.mjs +31 -29
- 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 -4
- package/_mjs/InvalidInterpretationError.mjs.map +1 -1
- package/_mjs/ParseError/ParseError.mjs +266 -262
- 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 -53
- 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 -17
- 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/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
|
@@ -1,337 +1,336 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.UnionMemberError = exports.UnionError = exports.UnexpectedError = exports.TypeLiteralError = exports.TypeError = exports.TupleError = exports.TransformationError = exports.RefinementError = exports.MissingError = exports.KeyError = exports.IterableError = exports.IndexError = exports.DeclarationError = void 0;
|
|
7
|
-
exports.declarationError = declarationError;
|
|
8
|
-
exports.indexError = indexError;
|
|
9
|
-
exports.iterableError = iterableError;
|
|
10
|
-
exports.keyError = keyError;
|
|
11
|
-
exports.missingError = void 0;
|
|
12
|
-
exports.refinementError = refinementError;
|
|
13
|
-
exports.transformationError = transformationError;
|
|
14
|
-
exports.tupleError = tupleError;
|
|
15
|
-
exports.typeError = typeError;
|
|
16
|
-
exports.typeLiteralError = typeLiteralError;
|
|
17
|
-
exports.unexpectedError = unexpectedError;
|
|
18
|
-
exports.unionError = unionError;
|
|
19
|
-
exports.unionMemberError = unionMemberError;
|
|
20
|
-
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/data/Equatable/definition"));
|
|
21
|
-
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); }
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_chunk = require("../chunk.cjs");
|
|
3
|
+
let _fncts_base_data_Equatable_definition = require("@fncts/base/data/Equatable/definition");
|
|
4
|
+
_fncts_base_data_Equatable_definition = require_chunk.__toESM(_fncts_base_data_Equatable_definition, 1);
|
|
5
|
+
//#region build/esm/ParseError/ParseError.js
|
|
22
6
|
function hasTag(u, tag) {
|
|
23
|
-
|
|
7
|
+
return typeof u === "object" && u !== null && "_tag" in u && u._tag === tag;
|
|
24
8
|
}
|
|
25
9
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
10
|
+
* @tsplus companion fncts.schema.ParseError.DeclarationError
|
|
11
|
+
*/
|
|
12
|
+
var DeclarationError = class {
|
|
13
|
+
ast;
|
|
14
|
+
actual;
|
|
15
|
+
error;
|
|
16
|
+
_tag = 0;
|
|
17
|
+
constructor(ast, actual, error) {
|
|
18
|
+
this.ast = ast;
|
|
19
|
+
this.actual = actual;
|
|
20
|
+
this.error = error;
|
|
21
|
+
}
|
|
22
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
23
|
+
return hasTag(that, 0) && context.comparator(this.ast, that.ast) && context.comparator(this.actual, that.actual) && context.comparator(this.error, that.error);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
42
26
|
/**
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
exports.DeclarationError = DeclarationError;
|
|
27
|
+
* @tsplus static fncts.schema.ParseError.DeclarationError __call
|
|
28
|
+
* @tsplus static fncts.schema.ParseErrorOps DeclarationError
|
|
29
|
+
*/
|
|
47
30
|
function declarationError(ast, actual, error) {
|
|
48
|
-
|
|
31
|
+
return new DeclarationError(ast, actual, error);
|
|
49
32
|
}
|
|
50
33
|
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
34
|
+
* @tsplus companion fncts.schema.ParseError.TypeError
|
|
35
|
+
*/
|
|
36
|
+
var TypeError = class {
|
|
37
|
+
ast;
|
|
38
|
+
actual;
|
|
39
|
+
_tag = 1;
|
|
40
|
+
constructor(ast, actual) {
|
|
41
|
+
this.ast = ast;
|
|
42
|
+
this.actual = actual;
|
|
43
|
+
}
|
|
44
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
45
|
+
return hasTag(that, 1) && context.comparator(this.ast, that.ast) && context.comparator(this.actual, that.actual);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
65
48
|
/**
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
exports.TypeError = TypeError;
|
|
49
|
+
* @tsplus static fncts.schema.ParseError.TypeError __call
|
|
50
|
+
* @tsplus static fncts.schema.ParseErrorOps TypeError
|
|
51
|
+
*/
|
|
70
52
|
function typeError(expected, actual) {
|
|
71
|
-
|
|
53
|
+
return new TypeError(expected, actual);
|
|
72
54
|
}
|
|
73
55
|
/**
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
56
|
+
* @tsplus companion fncts.schema.ParseError.TypeLiteralError
|
|
57
|
+
*/
|
|
58
|
+
var TypeLiteralError = class {
|
|
59
|
+
ast;
|
|
60
|
+
actual;
|
|
61
|
+
errors;
|
|
62
|
+
output;
|
|
63
|
+
_tag = 9;
|
|
64
|
+
constructor(ast, actual, errors, output = {}) {
|
|
65
|
+
this.ast = ast;
|
|
66
|
+
this.actual = actual;
|
|
67
|
+
this.errors = errors;
|
|
68
|
+
this.output = output;
|
|
69
|
+
}
|
|
70
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
71
|
+
return hasTag(that, 9) && context.comparator(this.ast, that.ast) && context.comparator(this.actual, that.actual) && context.comparator(this.errors, that.errors) && context.comparator(this.output, that.output);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
92
74
|
/**
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
exports.TypeLiteralError = TypeLiteralError;
|
|
75
|
+
* @tsplus static fncts.schema.ParseError.TypeLiteralError __call
|
|
76
|
+
* @tsplus static fncts.schema.ParseErrorOps TypeLiteralError
|
|
77
|
+
*/
|
|
97
78
|
function typeLiteralError(ast, actual, errors, output = {}) {
|
|
98
|
-
|
|
79
|
+
return new TypeLiteralError(ast, actual, errors, output);
|
|
99
80
|
}
|
|
100
81
|
/**
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
82
|
+
* @tsplus companion fncts.schema.ParseError.TupleError
|
|
83
|
+
*/
|
|
84
|
+
var TupleError = class {
|
|
85
|
+
ast;
|
|
86
|
+
actual;
|
|
87
|
+
errors;
|
|
88
|
+
output;
|
|
89
|
+
_tag = 10;
|
|
90
|
+
constructor(ast, actual, errors, output = []) {
|
|
91
|
+
this.ast = ast;
|
|
92
|
+
this.actual = actual;
|
|
93
|
+
this.errors = errors;
|
|
94
|
+
this.output = output;
|
|
95
|
+
}
|
|
96
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
97
|
+
return hasTag(that, 10) && context.comparator(this.ast, that.ast) && context.comparator(this.actual, that.actual) && context.comparator(this.errors, that.errors) && context.comparator(this.output, that.output);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
119
100
|
/**
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
exports.TupleError = TupleError;
|
|
101
|
+
* @tsplus static fncts.schema.ParseError.TupleError __call
|
|
102
|
+
* @tsplus static fncts.schema.ParseErrorOps TupleError
|
|
103
|
+
*/
|
|
124
104
|
function tupleError(ast, actual, errors, output = []) {
|
|
125
|
-
|
|
105
|
+
return new TupleError(ast, actual, errors, output);
|
|
126
106
|
}
|
|
127
107
|
/**
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
108
|
+
* @tsplus companion fncts.schema.ParseError.IndexError
|
|
109
|
+
*/
|
|
110
|
+
var IndexError = class {
|
|
111
|
+
index;
|
|
112
|
+
error;
|
|
113
|
+
_tag = 2;
|
|
114
|
+
constructor(index, error) {
|
|
115
|
+
this.index = index;
|
|
116
|
+
this.error = error;
|
|
117
|
+
}
|
|
118
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
119
|
+
return hasTag(that, 2) && context.comparator(this.index, that.index) && context.comparator(this.error, that.error);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
142
122
|
/**
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
exports.IndexError = IndexError;
|
|
123
|
+
* @tsplus static fncts.schema.ParseError.IndexError __call
|
|
124
|
+
* @tsplus static fncts.schema.ParseErrorOps IndexError
|
|
125
|
+
*/
|
|
147
126
|
function indexError(index, error) {
|
|
148
|
-
|
|
127
|
+
return new IndexError(index, error);
|
|
149
128
|
}
|
|
150
129
|
/**
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
130
|
+
* @tsplus companion fncts.schema.ParseError.KeyError
|
|
131
|
+
*/
|
|
132
|
+
var KeyError = class {
|
|
133
|
+
keyAST;
|
|
134
|
+
key;
|
|
135
|
+
error;
|
|
136
|
+
_tag = 3;
|
|
137
|
+
constructor(keyAST, key, error) {
|
|
138
|
+
this.keyAST = keyAST;
|
|
139
|
+
this.key = key;
|
|
140
|
+
this.error = error;
|
|
141
|
+
}
|
|
142
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
143
|
+
return hasTag(that, 3) && context.comparator(this.keyAST, that.keyAST) && context.comparator(this.key, that.key) && context.comparator(this.error, that.error);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
167
146
|
/**
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
exports.KeyError = KeyError;
|
|
147
|
+
* @tsplus static fncts.schema.ParseError.KeyError __call
|
|
148
|
+
* @tsplus static fncts.schema.ParseErrorOps KeyError
|
|
149
|
+
*/
|
|
172
150
|
function keyError(keyAST, key, error) {
|
|
173
|
-
|
|
151
|
+
return new KeyError(keyAST, key, error);
|
|
174
152
|
}
|
|
175
153
|
/**
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}
|
|
154
|
+
* @tsplus companion fncts.schema.ParseError.MissingError
|
|
155
|
+
*/
|
|
156
|
+
var MissingError = class {
|
|
157
|
+
_tag = 4;
|
|
158
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that) {
|
|
159
|
+
return hasTag(that, 4);
|
|
160
|
+
}
|
|
161
|
+
};
|
|
184
162
|
/**
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
const missingError = exports.missingError = /*#__PURE__*/new MissingError();
|
|
163
|
+
* @tsplus static fncts.schema.ParseErrorOps MissingError
|
|
164
|
+
*/
|
|
165
|
+
const missingError = new MissingError();
|
|
189
166
|
/**
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
167
|
+
* @tsplus companion fncts.schema.ParseError.UnexpectedError
|
|
168
|
+
*/
|
|
169
|
+
var UnexpectedError = class {
|
|
170
|
+
actual;
|
|
171
|
+
_tag = 5;
|
|
172
|
+
constructor(actual) {
|
|
173
|
+
this.actual = actual;
|
|
174
|
+
}
|
|
175
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
176
|
+
return hasTag(that, 5) && context.comparator(this.actual, that.actual);
|
|
177
|
+
}
|
|
178
|
+
};
|
|
202
179
|
/**
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
exports.UnexpectedError = UnexpectedError;
|
|
180
|
+
* @tsplus static fncts.schema.ParseError.UnexpectedError __call
|
|
181
|
+
* @tsplus static fncts.schema.ParseErrorOps UnexpectedError
|
|
182
|
+
*/
|
|
207
183
|
function unexpectedError(actual) {
|
|
208
|
-
|
|
184
|
+
return new UnexpectedError(actual);
|
|
209
185
|
}
|
|
210
186
|
/**
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
}
|
|
187
|
+
* @tsplus companion fncts.schema.ParseError.UnionError
|
|
188
|
+
*/
|
|
189
|
+
var UnionError = class {
|
|
190
|
+
ast;
|
|
191
|
+
actual;
|
|
192
|
+
errors;
|
|
193
|
+
_tag = 11;
|
|
194
|
+
constructor(ast, actual, errors) {
|
|
195
|
+
this.ast = ast;
|
|
196
|
+
this.actual = actual;
|
|
197
|
+
this.errors = errors;
|
|
198
|
+
}
|
|
199
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
200
|
+
return hasTag(that, 11) && context.comparator(this.ast, that.ast) && context.comparator(this.actual, that.actual) && context.comparator(this.errors, that.errors);
|
|
201
|
+
}
|
|
202
|
+
};
|
|
227
203
|
/**
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
exports.UnionError = UnionError;
|
|
204
|
+
* @tsplus static fncts.schema.ParseError.UnionError __call
|
|
205
|
+
* @tsplus static fncts.schema.ParseErrorOps UnionError
|
|
206
|
+
*/
|
|
232
207
|
function unionError(ast, actual, errors) {
|
|
233
|
-
|
|
208
|
+
return new UnionError(ast, actual, errors);
|
|
234
209
|
}
|
|
235
210
|
/**
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}
|
|
211
|
+
* @tsplus companion fncts.schema.ParseError.UnionMemberError
|
|
212
|
+
*/
|
|
213
|
+
var UnionMemberError = class {
|
|
214
|
+
ast;
|
|
215
|
+
error;
|
|
216
|
+
_tag = 6;
|
|
217
|
+
constructor(ast, error) {
|
|
218
|
+
this.ast = ast;
|
|
219
|
+
this.error = error;
|
|
220
|
+
}
|
|
221
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
222
|
+
return hasTag(that, 6) && context.comparator(this.ast, that.ast) && context.comparator(this.error, that.error);
|
|
223
|
+
}
|
|
224
|
+
};
|
|
250
225
|
/**
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
exports.UnionMemberError = UnionMemberError;
|
|
226
|
+
* @tsplus static fncts.schema.ParseError.UnionMemberError __call
|
|
227
|
+
* @tsplus static fncts.schema.ParseErrorOps UnionMemberError
|
|
228
|
+
*/
|
|
255
229
|
function unionMemberError(ast, error) {
|
|
256
|
-
|
|
230
|
+
return new UnionMemberError(ast, error);
|
|
257
231
|
}
|
|
258
232
|
/**
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
}
|
|
233
|
+
* @tsplus companion fncts.schema.ParseError.RefinementError
|
|
234
|
+
*/
|
|
235
|
+
var RefinementError = class {
|
|
236
|
+
ast;
|
|
237
|
+
actual;
|
|
238
|
+
kind;
|
|
239
|
+
error;
|
|
240
|
+
_tag = 7;
|
|
241
|
+
constructor(ast, actual, kind, error) {
|
|
242
|
+
this.ast = ast;
|
|
243
|
+
this.actual = actual;
|
|
244
|
+
this.kind = kind;
|
|
245
|
+
this.error = error;
|
|
246
|
+
}
|
|
247
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
248
|
+
return hasTag(that, 7) && context.comparator(this.ast, that.ast) && context.comparator(this.actual, that.actual) && context.comparator(this.kind, that.kind) && context.comparator(this.error, that.error);
|
|
249
|
+
}
|
|
250
|
+
};
|
|
277
251
|
/**
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
exports.RefinementError = RefinementError;
|
|
252
|
+
* @tsplus static fncts.schema.ParseError.RefinementError __call
|
|
253
|
+
* @tsplus static fncts.schema.ParseErrorOps RefinementError
|
|
254
|
+
*/
|
|
282
255
|
function refinementError(ast, actual, kind, error) {
|
|
283
|
-
|
|
256
|
+
return new RefinementError(ast, actual, kind, error);
|
|
284
257
|
}
|
|
285
258
|
/**
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
259
|
+
* @tsplus companion fncts.schema.ParseError.TransformationError
|
|
260
|
+
*/
|
|
261
|
+
var TransformationError = class {
|
|
262
|
+
ast;
|
|
263
|
+
actual;
|
|
264
|
+
kind;
|
|
265
|
+
error;
|
|
266
|
+
_tag = 8;
|
|
267
|
+
constructor(ast, actual, kind, error) {
|
|
268
|
+
this.ast = ast;
|
|
269
|
+
this.actual = actual;
|
|
270
|
+
this.kind = kind;
|
|
271
|
+
this.error = error;
|
|
272
|
+
}
|
|
273
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
274
|
+
return hasTag(that, 8) && context.comparator(this.ast, that.ast) && context.comparator(this.actual, that.actual) && context.comparator(this.kind, that.kind) && context.comparator(this.error, that.error);
|
|
275
|
+
}
|
|
276
|
+
};
|
|
304
277
|
/**
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
exports.TransformationError = TransformationError;
|
|
278
|
+
* @tsplus static fncts.schema.ParseError.TransformationError __call
|
|
279
|
+
* @tsplus static fncts.schema.ParseErrorOps TransformationError
|
|
280
|
+
*/
|
|
309
281
|
function transformationError(ast, actual, kind, error) {
|
|
310
|
-
|
|
282
|
+
return new TransformationError(ast, actual, kind, error);
|
|
311
283
|
}
|
|
312
284
|
/**
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
}
|
|
285
|
+
* @tsplus companion fncts.schema.ParseError.IterableError
|
|
286
|
+
*/
|
|
287
|
+
var IterableError = class {
|
|
288
|
+
ast;
|
|
289
|
+
actual;
|
|
290
|
+
errors;
|
|
291
|
+
_tag = 12;
|
|
292
|
+
constructor(ast, actual, errors) {
|
|
293
|
+
this.ast = ast;
|
|
294
|
+
this.actual = actual;
|
|
295
|
+
this.errors = errors;
|
|
296
|
+
}
|
|
297
|
+
[_fncts_base_data_Equatable_definition.equalsSymbol](that, context) {
|
|
298
|
+
return hasTag(that, 12) && context.comparator(this.ast, that.ast) && context.comparator(this.actual, that.actual) && context.comparator(this.errors, that.errors);
|
|
299
|
+
}
|
|
300
|
+
};
|
|
329
301
|
/**
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
exports.IterableError = IterableError;
|
|
302
|
+
* @tsplus static fncts.schema.ParseError.IterableError __call
|
|
303
|
+
* @tsplus static fncts.schema.ParseErrorOps IterableError
|
|
304
|
+
*/
|
|
334
305
|
function iterableError(ast, actual, errors) {
|
|
335
|
-
|
|
306
|
+
return new IterableError(ast, actual, errors);
|
|
336
307
|
}
|
|
308
|
+
//#endregion
|
|
309
|
+
exports.DeclarationError = DeclarationError;
|
|
310
|
+
exports.IndexError = IndexError;
|
|
311
|
+
exports.IterableError = IterableError;
|
|
312
|
+
exports.KeyError = KeyError;
|
|
313
|
+
exports.MissingError = MissingError;
|
|
314
|
+
exports.RefinementError = RefinementError;
|
|
315
|
+
exports.TransformationError = TransformationError;
|
|
316
|
+
exports.TupleError = TupleError;
|
|
317
|
+
exports.TypeError = TypeError;
|
|
318
|
+
exports.TypeLiteralError = TypeLiteralError;
|
|
319
|
+
exports.UnexpectedError = UnexpectedError;
|
|
320
|
+
exports.UnionError = UnionError;
|
|
321
|
+
exports.UnionMemberError = UnionMemberError;
|
|
322
|
+
exports.declarationError = declarationError;
|
|
323
|
+
exports.indexError = indexError;
|
|
324
|
+
exports.iterableError = iterableError;
|
|
325
|
+
exports.keyError = keyError;
|
|
326
|
+
exports.missingError = missingError;
|
|
327
|
+
exports.refinementError = refinementError;
|
|
328
|
+
exports.transformationError = transformationError;
|
|
329
|
+
exports.tupleError = tupleError;
|
|
330
|
+
exports.typeError = typeError;
|
|
331
|
+
exports.typeLiteralError = typeLiteralError;
|
|
332
|
+
exports.unexpectedError = unexpectedError;
|
|
333
|
+
exports.unionError = unionError;
|
|
334
|
+
exports.unionMemberError = unionMemberError;
|
|
335
|
+
|
|
337
336
|
//# sourceMappingURL=ParseError.cjs.map
|