@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.
Files changed (135) hide show
  1. package/LICENSE +26 -0
  2. package/_cjs/AST.cjs +1093 -1226
  3. package/_cjs/AST.cjs.map +1 -1
  4. package/_cjs/ASTAnnotation.cjs +114 -85
  5. package/_cjs/ASTAnnotation.cjs.map +1 -1
  6. package/_cjs/ASTAnnotationMap.cjs +43 -41
  7. package/_cjs/ASTAnnotationMap.cjs.map +1 -1
  8. package/_cjs/Eq.cjs +113 -145
  9. package/_cjs/Eq.cjs.map +1 -1
  10. package/_cjs/Gen.cjs +131 -167
  11. package/_cjs/Gen.cjs.map +1 -1
  12. package/_cjs/Guard.cjs +167 -267
  13. package/_cjs/Guard.cjs.map +1 -1
  14. package/_cjs/InvalidInterpretationError.cjs +9 -10
  15. package/_cjs/InvalidInterpretationError.cjs.map +1 -1
  16. package/_cjs/ParseError/ParseError.cjs +283 -284
  17. package/_cjs/ParseError/ParseError.cjs.map +1 -1
  18. package/_cjs/ParseError/ParseErrorFormatter.cjs +0 -2
  19. package/_cjs/ParseError/PathFormatter.cjs +55 -87
  20. package/_cjs/ParseError/PathFormatter.cjs.map +1 -1
  21. package/_cjs/ParseError/TreeFormatter.cjs +70 -102
  22. package/_cjs/ParseError/TreeFormatter.cjs.map +1 -1
  23. package/_cjs/ParseError.cjs +35 -50
  24. package/_cjs/ParseResult.cjs +15 -15
  25. package/_cjs/ParseResult.cjs.map +1 -1
  26. package/_cjs/Parser/api.cjs +54 -50
  27. package/_cjs/Parser/api.cjs.map +1 -1
  28. package/_cjs/Parser/definition.cjs +17 -16
  29. package/_cjs/Parser/definition.cjs.map +1 -1
  30. package/_cjs/Parser/interpreter.cjs +276 -358
  31. package/_cjs/Parser/interpreter.cjs.map +1 -1
  32. package/_cjs/Parser.cjs +12 -39
  33. package/_cjs/Schema/api/conc.cjs +64 -59
  34. package/_cjs/Schema/api/conc.cjs.map +1 -1
  35. package/_cjs/Schema/api/either.cjs +73 -72
  36. package/_cjs/Schema/api/either.cjs.map +1 -1
  37. package/_cjs/Schema/api/hashMap.cjs +85 -85
  38. package/_cjs/Schema/api/hashMap.cjs.map +1 -1
  39. package/_cjs/Schema/api/hashSet.cjs +75 -69
  40. package/_cjs/Schema/api/hashSet.cjs.map +1 -1
  41. package/_cjs/Schema/api/list.cjs +74 -66
  42. package/_cjs/Schema/api/list.cjs.map +1 -1
  43. package/_cjs/Schema/api/map.cjs +81 -83
  44. package/_cjs/Schema/api/map.cjs.map +1 -1
  45. package/_cjs/Schema/api/maybe.cjs +56 -49
  46. package/_cjs/Schema/api/maybe.cjs.map +1 -1
  47. package/_cjs/Schema/api/set.cjs +68 -61
  48. package/_cjs/Schema/api/set.cjs.map +1 -1
  49. package/_cjs/Schema/api.cjs +332 -350
  50. package/_cjs/Schema/api.cjs.map +1 -1
  51. package/_cjs/Schema/definition.cjs +28 -26
  52. package/_cjs/Schema/definition.cjs.map +1 -1
  53. package/_cjs/Schema/derivations.cjs +85 -100
  54. package/_cjs/Schema/derivations.cjs.map +1 -1
  55. package/_cjs/Schema.cjs +95 -127
  56. package/_cjs/Show.cjs +91 -151
  57. package/_cjs/Show.cjs.map +1 -1
  58. package/_cjs/chunk.cjs +28 -0
  59. package/_cjs/global.cjs +0 -2
  60. package/_cjs/index.cjs +0 -2
  61. package/_cjs/utils.cjs +41 -46
  62. package/_cjs/utils.cjs.map +1 -1
  63. package/_mjs/AST.mjs +996 -1161
  64. package/_mjs/AST.mjs.map +1 -1
  65. package/_mjs/ASTAnnotation.mjs +77 -73
  66. package/_mjs/ASTAnnotation.mjs.map +1 -1
  67. package/_mjs/ASTAnnotationMap.mjs +31 -29
  68. package/_mjs/ASTAnnotationMap.mjs.map +1 -1
  69. package/_mjs/Eq.mjs +101 -134
  70. package/_mjs/Eq.mjs.map +1 -1
  71. package/_mjs/Gen.mjs +117 -157
  72. package/_mjs/Gen.mjs.map +1 -1
  73. package/_mjs/Guard.mjs +154 -257
  74. package/_mjs/Guard.mjs.map +1 -1
  75. package/_mjs/InvalidInterpretationError.mjs +8 -4
  76. package/_mjs/InvalidInterpretationError.mjs.map +1 -1
  77. package/_mjs/ParseError/ParseError.mjs +266 -262
  78. package/_mjs/ParseError/ParseError.mjs.map +1 -1
  79. package/_mjs/ParseError/ParseErrorFormatter.mjs +0 -2
  80. package/_mjs/ParseError/PathFormatter.mjs +51 -80
  81. package/_mjs/ParseError/PathFormatter.mjs.map +1 -1
  82. package/_mjs/ParseError/TreeFormatter.mjs +62 -94
  83. package/_mjs/ParseError/TreeFormatter.mjs.map +1 -1
  84. package/_mjs/ParseError.mjs +5 -6
  85. package/_mjs/ParseResult.mjs +13 -9
  86. package/_mjs/ParseResult.mjs.map +1 -1
  87. package/_mjs/Parser/api.mjs +43 -39
  88. package/_mjs/Parser/api.mjs.map +1 -1
  89. package/_mjs/Parser/definition.mjs +12 -8
  90. package/_mjs/Parser/definition.mjs.map +1 -1
  91. package/_mjs/Parser/interpreter.mjs +262 -348
  92. package/_mjs/Parser/interpreter.mjs.map +1 -1
  93. package/_mjs/Parser.mjs +4 -5
  94. package/_mjs/Schema/api/conc.mjs +41 -45
  95. package/_mjs/Schema/api/conc.mjs.map +1 -1
  96. package/_mjs/Schema/api/either.mjs +55 -61
  97. package/_mjs/Schema/api/either.mjs.map +1 -1
  98. package/_mjs/Schema/api/hashMap.mjs +61 -71
  99. package/_mjs/Schema/api/hashMap.mjs.map +1 -1
  100. package/_mjs/Schema/api/hashSet.mjs +53 -56
  101. package/_mjs/Schema/api/hashSet.mjs.map +1 -1
  102. package/_mjs/Schema/api/list.mjs +50 -53
  103. package/_mjs/Schema/api/list.mjs.map +1 -1
  104. package/_mjs/Schema/api/map.mjs +59 -69
  105. package/_mjs/Schema/api/map.mjs.map +1 -1
  106. package/_mjs/Schema/api/maybe.mjs +34 -36
  107. package/_mjs/Schema/api/maybe.mjs.map +1 -1
  108. package/_mjs/Schema/api/set.mjs +47 -48
  109. package/_mjs/Schema/api/set.mjs.map +1 -1
  110. package/_mjs/Schema/api.mjs +304 -346
  111. package/_mjs/Schema/api.mjs.map +1 -1
  112. package/_mjs/Schema/definition.mjs +21 -17
  113. package/_mjs/Schema/definition.mjs.map +1 -1
  114. package/_mjs/Schema/derivations.mjs +71 -90
  115. package/_mjs/Schema/derivations.mjs.map +1 -1
  116. package/_mjs/Schema.mjs +12 -15
  117. package/_mjs/Show.mjs +79 -139
  118. package/_mjs/Show.mjs.map +1 -1
  119. package/_mjs/global.mjs +0 -2
  120. package/_mjs/index.mjs +0 -2
  121. package/_mjs/utils.mjs +35 -37
  122. package/_mjs/utils.mjs.map +1 -1
  123. package/package.json +7 -3
  124. package/_cjs/ParseError/ParseErrorFormatter.cjs.map +0 -1
  125. package/_cjs/ParseError.cjs.map +0 -1
  126. package/_cjs/Parser.cjs.map +0 -1
  127. package/_cjs/Schema.cjs.map +0 -1
  128. package/_cjs/global.cjs.map +0 -1
  129. package/_cjs/index.cjs.map +0 -1
  130. package/_mjs/ParseError/ParseErrorFormatter.mjs.map +0 -1
  131. package/_mjs/ParseError.mjs.map +0 -1
  132. package/_mjs/Parser.mjs.map +0 -1
  133. package/_mjs/Schema.mjs.map +0 -1
  134. package/_mjs/global.mjs.map +0 -1
  135. package/_mjs/index.mjs.map +0 -1
@@ -1,337 +1,336 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
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
- return typeof u === "object" && u !== null && "_tag" in u && u._tag === tag;
7
+ return typeof u === "object" && u !== null && "_tag" in u && u._tag === tag;
24
8
  }
25
9
  /**
26
- * @tsplus companion fncts.schema.ParseError.DeclarationError
27
- */
28
- class DeclarationError {
29
- ast;
30
- actual;
31
- error;
32
- _tag = 0 /* ParseErrorTag.Declaration */;
33
- constructor(ast, actual, error) {
34
- this.ast = ast;
35
- this.actual = actual;
36
- this.error = error;
37
- }
38
- [tsplus_module_1.equalsSymbol](that, context) {
39
- return hasTag(that, 0 /* ParseErrorTag.Declaration */) && context.comparator(this.ast, that.ast) && context.comparator(this.actual, that.actual) && context.comparator(this.error, that.error);
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
- * @tsplus static fncts.schema.ParseError.DeclarationError __call
44
- * @tsplus static fncts.schema.ParseErrorOps DeclarationError
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
- return new DeclarationError(ast, actual, error);
31
+ return new DeclarationError(ast, actual, error);
49
32
  }
50
33
  /**
51
- * @tsplus companion fncts.schema.ParseError.TypeError
52
- */
53
- class TypeError {
54
- ast;
55
- actual;
56
- _tag = 1 /* ParseErrorTag.Type */;
57
- constructor(ast, actual) {
58
- this.ast = ast;
59
- this.actual = actual;
60
- }
61
- [tsplus_module_1.equalsSymbol](that, context) {
62
- return hasTag(that, 1 /* ParseErrorTag.Type */) && context.comparator(this.ast, that.ast) && context.comparator(this.actual, that.actual);
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
- * @tsplus static fncts.schema.ParseError.TypeError __call
67
- * @tsplus static fncts.schema.ParseErrorOps TypeError
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
- return new TypeError(expected, actual);
53
+ return new TypeError(expected, actual);
72
54
  }
73
55
  /**
74
- * @tsplus companion fncts.schema.ParseError.TypeLiteralError
75
- */
76
- class TypeLiteralError {
77
- ast;
78
- actual;
79
- errors;
80
- output;
81
- _tag = 9 /* ParseErrorTag.TypeLiteral */;
82
- constructor(ast, actual, errors, output = {}) {
83
- this.ast = ast;
84
- this.actual = actual;
85
- this.errors = errors;
86
- this.output = output;
87
- }
88
- [tsplus_module_1.equalsSymbol](that, context) {
89
- return hasTag(that, 9 /* ParseErrorTag.TypeLiteral */) && context.comparator(this.ast, that.ast) && context.comparator(this.actual, that.actual) && context.comparator(this.errors, that.errors) && context.comparator(this.output, that.output);
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
- * @tsplus static fncts.schema.ParseError.TypeLiteralError __call
94
- * @tsplus static fncts.schema.ParseErrorOps TypeLiteralError
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
- return new TypeLiteralError(ast, actual, errors, output);
79
+ return new TypeLiteralError(ast, actual, errors, output);
99
80
  }
100
81
  /**
101
- * @tsplus companion fncts.schema.ParseError.TupleError
102
- */
103
- class TupleError {
104
- ast;
105
- actual;
106
- errors;
107
- output;
108
- _tag = 10 /* ParseErrorTag.Tuple */;
109
- constructor(ast, actual, errors, output = []) {
110
- this.ast = ast;
111
- this.actual = actual;
112
- this.errors = errors;
113
- this.output = output;
114
- }
115
- [tsplus_module_1.equalsSymbol](that, context) {
116
- return hasTag(that, 10 /* ParseErrorTag.Tuple */) && context.comparator(this.ast, that.ast) && context.comparator(this.actual, that.actual) && context.comparator(this.errors, that.errors) && context.comparator(this.output, that.output);
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
- * @tsplus static fncts.schema.ParseError.TupleError __call
121
- * @tsplus static fncts.schema.ParseErrorOps TupleError
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
- return new TupleError(ast, actual, errors, output);
105
+ return new TupleError(ast, actual, errors, output);
126
106
  }
127
107
  /**
128
- * @tsplus companion fncts.schema.ParseError.IndexError
129
- */
130
- class IndexError {
131
- index;
132
- error;
133
- _tag = 2 /* ParseErrorTag.Index */;
134
- constructor(index, error) {
135
- this.index = index;
136
- this.error = error;
137
- }
138
- [tsplus_module_1.equalsSymbol](that, context) {
139
- return hasTag(that, 2 /* ParseErrorTag.Index */) && context.comparator(this.index, that.index) && context.comparator(this.error, that.error);
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
- * @tsplus static fncts.schema.ParseError.IndexError __call
144
- * @tsplus static fncts.schema.ParseErrorOps IndexError
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
- return new IndexError(index, error);
127
+ return new IndexError(index, error);
149
128
  }
150
129
  /**
151
- * @tsplus companion fncts.schema.ParseError.KeyError
152
- */
153
- class KeyError {
154
- keyAST;
155
- key;
156
- error;
157
- _tag = 3 /* ParseErrorTag.Key */;
158
- constructor(keyAST, key, error) {
159
- this.keyAST = keyAST;
160
- this.key = key;
161
- this.error = error;
162
- }
163
- [tsplus_module_1.equalsSymbol](that, context) {
164
- return hasTag(that, 3 /* ParseErrorTag.Key */) && context.comparator(this.keyAST, that.keyAST) && context.comparator(this.key, that.key) && context.comparator(this.error, that.error);
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
- * @tsplus static fncts.schema.ParseError.KeyError __call
169
- * @tsplus static fncts.schema.ParseErrorOps KeyError
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
- return new KeyError(keyAST, key, error);
151
+ return new KeyError(keyAST, key, error);
174
152
  }
175
153
  /**
176
- * @tsplus companion fncts.schema.ParseError.MissingError
177
- */
178
- class MissingError {
179
- _tag = 4 /* ParseErrorTag.Missing */;
180
- [tsplus_module_1.equalsSymbol](that) {
181
- return hasTag(that, 4 /* ParseErrorTag.Missing */);
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
- * @tsplus static fncts.schema.ParseErrorOps MissingError
186
- */
187
- exports.MissingError = MissingError;
188
- const missingError = exports.missingError = /*#__PURE__*/new MissingError();
163
+ * @tsplus static fncts.schema.ParseErrorOps MissingError
164
+ */
165
+ const missingError = new MissingError();
189
166
  /**
190
- * @tsplus companion fncts.schema.ParseError.UnexpectedError
191
- */
192
- class UnexpectedError {
193
- actual;
194
- _tag = 5 /* ParseErrorTag.Unexpected */;
195
- constructor(actual) {
196
- this.actual = actual;
197
- }
198
- [tsplus_module_1.equalsSymbol](that, context) {
199
- return hasTag(that, 5 /* ParseErrorTag.Unexpected */) && context.comparator(this.actual, that.actual);
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
- * @tsplus static fncts.schema.ParseError.UnexpectedError __call
204
- * @tsplus static fncts.schema.ParseErrorOps UnexpectedError
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
- return new UnexpectedError(actual);
184
+ return new UnexpectedError(actual);
209
185
  }
210
186
  /**
211
- * @tsplus companion fncts.schema.ParseError.UnionError
212
- */
213
- class UnionError {
214
- ast;
215
- actual;
216
- errors;
217
- _tag = 11 /* ParseErrorTag.Union */;
218
- constructor(ast, actual, errors) {
219
- this.ast = ast;
220
- this.actual = actual;
221
- this.errors = errors;
222
- }
223
- [tsplus_module_1.equalsSymbol](that, context) {
224
- return hasTag(that, 11 /* ParseErrorTag.Union */) && context.comparator(this.ast, that.ast) && context.comparator(this.actual, that.actual) && context.comparator(this.errors, that.errors);
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
- * @tsplus static fncts.schema.ParseError.UnionError __call
229
- * @tsplus static fncts.schema.ParseErrorOps UnionError
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
- return new UnionError(ast, actual, errors);
208
+ return new UnionError(ast, actual, errors);
234
209
  }
235
210
  /**
236
- * @tsplus companion fncts.schema.ParseError.UnionMemberError
237
- */
238
- class UnionMemberError {
239
- ast;
240
- error;
241
- _tag = 6 /* ParseErrorTag.UnionMember */;
242
- constructor(ast, error) {
243
- this.ast = ast;
244
- this.error = error;
245
- }
246
- [tsplus_module_1.equalsSymbol](that, context) {
247
- return hasTag(that, 6 /* ParseErrorTag.UnionMember */) && context.comparator(this.ast, that.ast) && context.comparator(this.error, that.error);
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
- * @tsplus static fncts.schema.ParseError.UnionMemberError __call
252
- * @tsplus static fncts.schema.ParseErrorOps UnionMemberError
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
- return new UnionMemberError(ast, error);
230
+ return new UnionMemberError(ast, error);
257
231
  }
258
232
  /**
259
- * @tsplus companion fncts.schema.ParseError.RefinementError
260
- */
261
- class RefinementError {
262
- ast;
263
- actual;
264
- kind;
265
- error;
266
- _tag = 7 /* ParseErrorTag.Refinement */;
267
- constructor(ast, actual, kind, error) {
268
- this.ast = ast;
269
- this.actual = actual;
270
- this.kind = kind;
271
- this.error = error;
272
- }
273
- [tsplus_module_1.equalsSymbol](that, context) {
274
- return hasTag(that, 7 /* ParseErrorTag.Refinement */) && 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
- }
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
- * @tsplus static fncts.schema.ParseError.RefinementError __call
279
- * @tsplus static fncts.schema.ParseErrorOps RefinementError
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
- return new RefinementError(ast, actual, kind, error);
256
+ return new RefinementError(ast, actual, kind, error);
284
257
  }
285
258
  /**
286
- * @tsplus companion fncts.schema.ParseError.TransformationError
287
- */
288
- class TransformationError {
289
- ast;
290
- actual;
291
- kind;
292
- error;
293
- _tag = 8 /* ParseErrorTag.Transformation */;
294
- constructor(ast, actual, kind, error) {
295
- this.ast = ast;
296
- this.actual = actual;
297
- this.kind = kind;
298
- this.error = error;
299
- }
300
- [tsplus_module_1.equalsSymbol](that, context) {
301
- return hasTag(that, 8 /* ParseErrorTag.Transformation */) && context.comparator(this.ast, that.ast) && context.comparator(this.actual, that.actual) && context.comparator(this.kind, that.kind) && context.comparator(this.error, that.error);
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
- * @tsplus static fncts.schema.ParseError.TransformationError __call
306
- * @tsplus static fncts.schema.ParseErrorOps TransformationError
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
- return new TransformationError(ast, actual, kind, error);
282
+ return new TransformationError(ast, actual, kind, error);
311
283
  }
312
284
  /**
313
- * @tsplus companion fncts.schema.ParseError.IterableError
314
- */
315
- class IterableError {
316
- ast;
317
- actual;
318
- errors;
319
- _tag = 12 /* ParseErrorTag.Iterable */;
320
- constructor(ast, actual, errors) {
321
- this.ast = ast;
322
- this.actual = actual;
323
- this.errors = errors;
324
- }
325
- [tsplus_module_1.equalsSymbol](that, context) {
326
- return hasTag(that, 12 /* ParseErrorTag.Iterable */) && context.comparator(this.ast, that.ast) && context.comparator(this.actual, that.actual) && context.comparator(this.errors, that.errors);
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
- * @tsplus static fncts.schema.ParseError.IterableError __call
331
- * @tsplus static fncts.schema.ParseErrorOps IterableError
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
- return new IterableError(ast, actual, errors);
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