@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.
Files changed (146) hide show
  1. package/AST.d.ts +60 -29
  2. package/ASTAnnotationMap.d.ts +4 -1
  3. package/LICENSE +26 -0
  4. package/ParseError/ParseError.d.ts +28 -13
  5. package/_cjs/AST.cjs +1096 -1087
  6. package/_cjs/AST.cjs.map +1 -1
  7. package/_cjs/ASTAnnotation.cjs +114 -83
  8. package/_cjs/ASTAnnotation.cjs.map +1 -1
  9. package/_cjs/ASTAnnotationMap.cjs +43 -32
  10. package/_cjs/ASTAnnotationMap.cjs.map +1 -1
  11. package/_cjs/Eq.cjs +113 -145
  12. package/_cjs/Eq.cjs.map +1 -1
  13. package/_cjs/Gen.cjs +131 -167
  14. package/_cjs/Gen.cjs.map +1 -1
  15. package/_cjs/Guard.cjs +167 -267
  16. package/_cjs/Guard.cjs.map +1 -1
  17. package/_cjs/InvalidInterpretationError.cjs +9 -15
  18. package/_cjs/InvalidInterpretationError.cjs.map +1 -1
  19. package/_cjs/ParseError/ParseError.cjs +285 -209
  20. package/_cjs/ParseError/ParseError.cjs.map +1 -1
  21. package/_cjs/ParseError/ParseErrorFormatter.cjs +0 -2
  22. package/_cjs/ParseError/PathFormatter.cjs +55 -87
  23. package/_cjs/ParseError/PathFormatter.cjs.map +1 -1
  24. package/_cjs/ParseError/TreeFormatter.cjs +70 -102
  25. package/_cjs/ParseError/TreeFormatter.cjs.map +1 -1
  26. package/_cjs/ParseError.cjs +35 -50
  27. package/_cjs/ParseResult.cjs +15 -15
  28. package/_cjs/ParseResult.cjs.map +1 -1
  29. package/_cjs/Parser/api.cjs +54 -50
  30. package/_cjs/Parser/api.cjs.map +1 -1
  31. package/_cjs/Parser/definition.cjs +17 -16
  32. package/_cjs/Parser/definition.cjs.map +1 -1
  33. package/_cjs/Parser/interpreter.cjs +276 -358
  34. package/_cjs/Parser/interpreter.cjs.map +1 -1
  35. package/_cjs/Parser.cjs +12 -39
  36. package/_cjs/Schema/api/conc.cjs +64 -59
  37. package/_cjs/Schema/api/conc.cjs.map +1 -1
  38. package/_cjs/Schema/api/either.cjs +73 -72
  39. package/_cjs/Schema/api/either.cjs.map +1 -1
  40. package/_cjs/Schema/api/hashMap.cjs +85 -85
  41. package/_cjs/Schema/api/hashMap.cjs.map +1 -1
  42. package/_cjs/Schema/api/hashSet.cjs +75 -69
  43. package/_cjs/Schema/api/hashSet.cjs.map +1 -1
  44. package/_cjs/Schema/api/list.cjs +74 -64
  45. package/_cjs/Schema/api/list.cjs.map +1 -1
  46. package/_cjs/Schema/api/map.cjs +81 -83
  47. package/_cjs/Schema/api/map.cjs.map +1 -1
  48. package/_cjs/Schema/api/maybe.cjs +56 -49
  49. package/_cjs/Schema/api/maybe.cjs.map +1 -1
  50. package/_cjs/Schema/api/set.cjs +68 -61
  51. package/_cjs/Schema/api/set.cjs.map +1 -1
  52. package/_cjs/Schema/api.cjs +332 -350
  53. package/_cjs/Schema/api.cjs.map +1 -1
  54. package/_cjs/Schema/definition.cjs +28 -27
  55. package/_cjs/Schema/definition.cjs.map +1 -1
  56. package/_cjs/Schema/derivations.cjs +85 -100
  57. package/_cjs/Schema/derivations.cjs.map +1 -1
  58. package/_cjs/Schema.cjs +95 -127
  59. package/_cjs/Show.cjs +91 -151
  60. package/_cjs/Show.cjs.map +1 -1
  61. package/_cjs/chunk.cjs +28 -0
  62. package/_cjs/global.cjs +0 -2
  63. package/_cjs/index.cjs +0 -2
  64. package/_cjs/utils.cjs +41 -46
  65. package/_cjs/utils.cjs.map +1 -1
  66. package/_mjs/AST.mjs +1007 -1031
  67. package/_mjs/AST.mjs.map +1 -1
  68. package/_mjs/ASTAnnotation.mjs +77 -71
  69. package/_mjs/ASTAnnotation.mjs.map +1 -1
  70. package/_mjs/ASTAnnotationMap.mjs +36 -25
  71. package/_mjs/ASTAnnotationMap.mjs.map +1 -1
  72. package/_mjs/Eq.mjs +101 -134
  73. package/_mjs/Eq.mjs.map +1 -1
  74. package/_mjs/Gen.mjs +117 -157
  75. package/_mjs/Gen.mjs.map +1 -1
  76. package/_mjs/Guard.mjs +154 -257
  77. package/_mjs/Guard.mjs.map +1 -1
  78. package/_mjs/InvalidInterpretationError.mjs +8 -9
  79. package/_mjs/InvalidInterpretationError.mjs.map +1 -1
  80. package/_mjs/ParseError/ParseError.mjs +270 -190
  81. package/_mjs/ParseError/ParseError.mjs.map +1 -1
  82. package/_mjs/ParseError/ParseErrorFormatter.mjs +0 -2
  83. package/_mjs/ParseError/PathFormatter.mjs +51 -80
  84. package/_mjs/ParseError/PathFormatter.mjs.map +1 -1
  85. package/_mjs/ParseError/TreeFormatter.mjs +62 -94
  86. package/_mjs/ParseError/TreeFormatter.mjs.map +1 -1
  87. package/_mjs/ParseError.mjs +5 -6
  88. package/_mjs/ParseResult.mjs +13 -9
  89. package/_mjs/ParseResult.mjs.map +1 -1
  90. package/_mjs/Parser/api.mjs +43 -39
  91. package/_mjs/Parser/api.mjs.map +1 -1
  92. package/_mjs/Parser/definition.mjs +12 -8
  93. package/_mjs/Parser/definition.mjs.map +1 -1
  94. package/_mjs/Parser/interpreter.mjs +262 -348
  95. package/_mjs/Parser/interpreter.mjs.map +1 -1
  96. package/_mjs/Parser.mjs +4 -5
  97. package/_mjs/Schema/api/conc.mjs +41 -45
  98. package/_mjs/Schema/api/conc.mjs.map +1 -1
  99. package/_mjs/Schema/api/either.mjs +55 -61
  100. package/_mjs/Schema/api/either.mjs.map +1 -1
  101. package/_mjs/Schema/api/hashMap.mjs +61 -71
  102. package/_mjs/Schema/api/hashMap.mjs.map +1 -1
  103. package/_mjs/Schema/api/hashSet.mjs +53 -56
  104. package/_mjs/Schema/api/hashSet.mjs.map +1 -1
  105. package/_mjs/Schema/api/list.mjs +50 -51
  106. package/_mjs/Schema/api/list.mjs.map +1 -1
  107. package/_mjs/Schema/api/map.mjs +59 -69
  108. package/_mjs/Schema/api/map.mjs.map +1 -1
  109. package/_mjs/Schema/api/maybe.mjs +34 -36
  110. package/_mjs/Schema/api/maybe.mjs.map +1 -1
  111. package/_mjs/Schema/api/set.mjs +47 -48
  112. package/_mjs/Schema/api/set.mjs.map +1 -1
  113. package/_mjs/Schema/api.mjs +304 -346
  114. package/_mjs/Schema/api.mjs.map +1 -1
  115. package/_mjs/Schema/definition.mjs +21 -18
  116. package/_mjs/Schema/definition.mjs.map +1 -1
  117. package/_mjs/Schema/derivations.mjs +71 -90
  118. package/_mjs/Schema/derivations.mjs.map +1 -1
  119. package/_mjs/Schema.mjs +12 -15
  120. package/_mjs/Show.mjs +79 -139
  121. package/_mjs/Show.mjs.map +1 -1
  122. package/_mjs/global.mjs +0 -2
  123. package/_mjs/index.mjs +0 -2
  124. package/_mjs/utils.mjs +35 -37
  125. package/_mjs/utils.mjs.map +1 -1
  126. package/_src/AST.ts +226 -28
  127. package/_src/ASTAnnotationMap.ts +14 -1
  128. package/_src/ParseError/ParseError.ts +128 -13
  129. package/_src/Schema/api/hashMap.ts +1 -1
  130. package/_src/Schema/api/hashSet.ts +1 -1
  131. package/_src/Schema/api/list.ts +3 -1
  132. package/_src/Schema/api/map.ts +1 -1
  133. package/_src/Schema/api/set.ts +1 -1
  134. package/package.json +7 -3
  135. package/_cjs/ParseError/ParseErrorFormatter.cjs.map +0 -1
  136. package/_cjs/ParseError.cjs.map +0 -1
  137. package/_cjs/Parser.cjs.map +0 -1
  138. package/_cjs/Schema.cjs.map +0 -1
  139. package/_cjs/global.cjs.map +0 -1
  140. package/_cjs/index.cjs.map +0 -1
  141. package/_mjs/ParseError/ParseErrorFormatter.mjs.map +0 -1
  142. package/_mjs/ParseError.mjs.map +0 -1
  143. package/_mjs/Parser.mjs.map +0 -1
  144. package/_mjs/Schema.mjs.map +0 -1
  145. package/_mjs/global.mjs.map +0 -1
  146. package/_mjs/index.mjs.map +0 -1
@@ -1,260 +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
- /**
21
- * @tsplus companion fncts.schema.ParseError.DeclarationError
22
- */
23
- class DeclarationError {
24
- constructor(ast, actual, error) {
25
- this.ast = ast;
26
- this.actual = actual;
27
- this.error = error;
28
- this._tag = 0 /* ParseErrorTag.Declaration */;
29
- }
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
6
+ function hasTag(u, tag) {
7
+ return typeof u === "object" && u !== null && "_tag" in u && u._tag === tag;
30
8
  }
31
9
  /**
32
- * @tsplus static fncts.schema.ParseError.DeclarationError __call
33
- * @tsplus static fncts.schema.ParseErrorOps DeclarationError
34
- */
35
- exports.DeclarationError = DeclarationError;
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
+ };
26
+ /**
27
+ * @tsplus static fncts.schema.ParseError.DeclarationError __call
28
+ * @tsplus static fncts.schema.ParseErrorOps DeclarationError
29
+ */
36
30
  function declarationError(ast, actual, error) {
37
- return new DeclarationError(ast, actual, error);
31
+ return new DeclarationError(ast, actual, error);
38
32
  }
39
33
  /**
40
- * @tsplus companion fncts.schema.ParseError.TypeError
41
- */
42
- class TypeError {
43
- constructor(ast, actual) {
44
- this.ast = ast;
45
- this.actual = actual;
46
- this._tag = 1 /* ParseErrorTag.Type */;
47
- }
48
- }
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
+ };
49
48
  /**
50
- * @tsplus static fncts.schema.ParseError.TypeError __call
51
- * @tsplus static fncts.schema.ParseErrorOps TypeError
52
- */
53
- exports.TypeError = TypeError;
49
+ * @tsplus static fncts.schema.ParseError.TypeError __call
50
+ * @tsplus static fncts.schema.ParseErrorOps TypeError
51
+ */
54
52
  function typeError(expected, actual) {
55
- return new TypeError(expected, actual);
53
+ return new TypeError(expected, actual);
56
54
  }
57
55
  /**
58
- * @tsplus companion fncts.schema.ParseError.TypeLiteralError
59
- */
60
- class TypeLiteralError {
61
- constructor(ast, actual, errors, output = {}) {
62
- this.ast = ast;
63
- this.actual = actual;
64
- this.errors = errors;
65
- this.output = output;
66
- this._tag = 9 /* ParseErrorTag.TypeLiteral */;
67
- }
68
- }
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
+ };
69
74
  /**
70
- * @tsplus static fncts.schema.ParseError.TypeLiteralError __call
71
- * @tsplus static fncts.schema.ParseErrorOps TypeLiteralError
72
- */
73
- exports.TypeLiteralError = TypeLiteralError;
75
+ * @tsplus static fncts.schema.ParseError.TypeLiteralError __call
76
+ * @tsplus static fncts.schema.ParseErrorOps TypeLiteralError
77
+ */
74
78
  function typeLiteralError(ast, actual, errors, output = {}) {
75
- return new TypeLiteralError(ast, actual, errors, output);
79
+ return new TypeLiteralError(ast, actual, errors, output);
76
80
  }
77
81
  /**
78
- * @tsplus companion fncts.schema.ParseError.TupleError
79
- */
80
- class TupleError {
81
- constructor(ast, actual, errors, output = []) {
82
- this.ast = ast;
83
- this.actual = actual;
84
- this.errors = errors;
85
- this.output = output;
86
- this._tag = 10 /* ParseErrorTag.Tuple */;
87
- }
88
- }
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
+ };
89
100
  /**
90
- * @tsplus static fncts.schema.ParseError.TupleError __call
91
- * @tsplus static fncts.schema.ParseErrorOps TupleError
92
- */
93
- exports.TupleError = TupleError;
101
+ * @tsplus static fncts.schema.ParseError.TupleError __call
102
+ * @tsplus static fncts.schema.ParseErrorOps TupleError
103
+ */
94
104
  function tupleError(ast, actual, errors, output = []) {
95
- return new TupleError(ast, actual, errors, output);
105
+ return new TupleError(ast, actual, errors, output);
96
106
  }
97
107
  /**
98
- * @tsplus companion fncts.schema.ParseError.IndexError
99
- */
100
- class IndexError {
101
- constructor(index, error) {
102
- this.index = index;
103
- this.error = error;
104
- this._tag = 2 /* ParseErrorTag.Index */;
105
- }
106
- }
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
+ };
107
122
  /**
108
- * @tsplus static fncts.schema.ParseError.IndexError __call
109
- * @tsplus static fncts.schema.ParseErrorOps IndexError
110
- */
111
- exports.IndexError = IndexError;
123
+ * @tsplus static fncts.schema.ParseError.IndexError __call
124
+ * @tsplus static fncts.schema.ParseErrorOps IndexError
125
+ */
112
126
  function indexError(index, error) {
113
- return new IndexError(index, error);
127
+ return new IndexError(index, error);
114
128
  }
115
129
  /**
116
- * @tsplus companion fncts.schema.ParseError.KeyError
117
- */
118
- class KeyError {
119
- constructor(keyAST, key, error) {
120
- this.keyAST = keyAST;
121
- this.key = key;
122
- this.error = error;
123
- this._tag = 3 /* ParseErrorTag.Key */;
124
- }
125
- }
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
+ };
126
146
  /**
127
- * @tsplus static fncts.schema.ParseError.KeyError __call
128
- * @tsplus static fncts.schema.ParseErrorOps KeyError
129
- */
130
- exports.KeyError = KeyError;
147
+ * @tsplus static fncts.schema.ParseError.KeyError __call
148
+ * @tsplus static fncts.schema.ParseErrorOps KeyError
149
+ */
131
150
  function keyError(keyAST, key, error) {
132
- return new KeyError(keyAST, key, error);
151
+ return new KeyError(keyAST, key, error);
133
152
  }
134
153
  /**
135
- * @tsplus companion fncts.schema.ParseError.MissingError
136
- */
137
- class MissingError {
138
- constructor() {
139
- this._tag = 4 /* ParseErrorTag.Missing */;
140
- }
141
- }
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
+ };
142
162
  /**
143
- * @tsplus static fncts.schema.ParseErrorOps MissingError
144
- */
145
- exports.MissingError = MissingError;
146
- const missingError = exports.missingError = /*#__PURE__*/new MissingError();
163
+ * @tsplus static fncts.schema.ParseErrorOps MissingError
164
+ */
165
+ const missingError = new MissingError();
147
166
  /**
148
- * @tsplus companion fncts.schema.ParseError.UnexpectedError
149
- */
150
- class UnexpectedError {
151
- constructor(actual) {
152
- this.actual = actual;
153
- this._tag = 5 /* ParseErrorTag.Unexpected */;
154
- }
155
- }
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
+ };
156
179
  /**
157
- * @tsplus static fncts.schema.ParseError.UnexpectedError __call
158
- * @tsplus static fncts.schema.ParseErrorOps UnexpectedError
159
- */
160
- exports.UnexpectedError = UnexpectedError;
180
+ * @tsplus static fncts.schema.ParseError.UnexpectedError __call
181
+ * @tsplus static fncts.schema.ParseErrorOps UnexpectedError
182
+ */
161
183
  function unexpectedError(actual) {
162
- return new UnexpectedError(actual);
184
+ return new UnexpectedError(actual);
163
185
  }
164
186
  /**
165
- * @tsplus companion fncts.schema.ParseError.UnionError
166
- */
167
- class UnionError {
168
- constructor(ast, actual, errors) {
169
- this.ast = ast;
170
- this.actual = actual;
171
- this.errors = errors;
172
- this._tag = 11 /* ParseErrorTag.Union */;
173
- }
174
- }
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
+ };
175
203
  /**
176
- * @tsplus static fncts.schema.ParseError.UnionError __call
177
- * @tsplus static fncts.schema.ParseErrorOps UnionError
178
- */
179
- exports.UnionError = UnionError;
204
+ * @tsplus static fncts.schema.ParseError.UnionError __call
205
+ * @tsplus static fncts.schema.ParseErrorOps UnionError
206
+ */
180
207
  function unionError(ast, actual, errors) {
181
- return new UnionError(ast, actual, errors);
208
+ return new UnionError(ast, actual, errors);
182
209
  }
183
210
  /**
184
- * @tsplus companion fncts.schema.ParseError.UnionMemberError
185
- */
186
- class UnionMemberError {
187
- constructor(ast, error) {
188
- this.ast = ast;
189
- this.error = error;
190
- this._tag = 6 /* ParseErrorTag.UnionMember */;
191
- }
192
- }
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
+ };
193
225
  /**
194
- * @tsplus static fncts.schema.ParseError.UnionMemberError __call
195
- * @tsplus static fncts.schema.ParseErrorOps UnionMemberError
196
- */
197
- exports.UnionMemberError = UnionMemberError;
226
+ * @tsplus static fncts.schema.ParseError.UnionMemberError __call
227
+ * @tsplus static fncts.schema.ParseErrorOps UnionMemberError
228
+ */
198
229
  function unionMemberError(ast, error) {
199
- return new UnionMemberError(ast, error);
230
+ return new UnionMemberError(ast, error);
200
231
  }
201
232
  /**
202
- * @tsplus companion fncts.schema.ParseError.RefinementError
203
- */
204
- class RefinementError {
205
- constructor(ast, actual, kind, error) {
206
- this.ast = ast;
207
- this.actual = actual;
208
- this.kind = kind;
209
- this.error = error;
210
- this._tag = 7 /* ParseErrorTag.Refinement */;
211
- }
212
- }
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
+ };
213
251
  /**
214
- * @tsplus static fncts.schema.ParseError.RefinementError __call
215
- * @tsplus static fncts.schema.ParseErrorOps RefinementError
216
- */
217
- exports.RefinementError = RefinementError;
252
+ * @tsplus static fncts.schema.ParseError.RefinementError __call
253
+ * @tsplus static fncts.schema.ParseErrorOps RefinementError
254
+ */
218
255
  function refinementError(ast, actual, kind, error) {
219
- return new RefinementError(ast, actual, kind, error);
256
+ return new RefinementError(ast, actual, kind, error);
220
257
  }
221
258
  /**
222
- * @tsplus companion fncts.schema.ParseError.TransformationError
223
- */
224
- class TransformationError {
225
- constructor(ast, actual, kind, error) {
226
- this.ast = ast;
227
- this.actual = actual;
228
- this.kind = kind;
229
- this.error = error;
230
- this._tag = 8 /* ParseErrorTag.Transformation */;
231
- }
232
- }
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
+ };
233
277
  /**
234
- * @tsplus static fncts.schema.ParseError.TransformationError __call
235
- * @tsplus static fncts.schema.ParseErrorOps TransformationError
236
- */
237
- exports.TransformationError = TransformationError;
278
+ * @tsplus static fncts.schema.ParseError.TransformationError __call
279
+ * @tsplus static fncts.schema.ParseErrorOps TransformationError
280
+ */
238
281
  function transformationError(ast, actual, kind, error) {
239
- return new TransformationError(ast, actual, kind, error);
282
+ return new TransformationError(ast, actual, kind, error);
240
283
  }
241
284
  /**
242
- * @tsplus companion fncts.schema.ParseError.IterableError
243
- */
244
- class IterableError {
245
- constructor(ast, actual, errors) {
246
- this.ast = ast;
247
- this.actual = actual;
248
- this.errors = errors;
249
- this._tag = 12 /* ParseErrorTag.Iterable */;
250
- }
251
- }
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
+ };
252
301
  /**
253
- * @tsplus static fncts.schema.ParseError.IterableError __call
254
- * @tsplus static fncts.schema.ParseErrorOps IterableError
255
- */
256
- exports.IterableError = IterableError;
302
+ * @tsplus static fncts.schema.ParseError.IterableError __call
303
+ * @tsplus static fncts.schema.ParseErrorOps IterableError
304
+ */
257
305
  function iterableError(ast, actual, errors) {
258
- return new IterableError(ast, actual, errors);
306
+ return new IterableError(ast, actual, errors);
259
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
+
260
336
  //# sourceMappingURL=ParseError.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ParseError.cjs","names":["DeclarationError","constructor","ast","actual","error","_tag","exports","declarationError","TypeError","typeError","expected","TypeLiteralError","errors","output","typeLiteralError","TupleError","tupleError","IndexError","index","indexError","KeyError","keyAST","key","keyError","MissingError","missingError","UnexpectedError","unexpectedError","UnionError","unionError","UnionMemberError","unionMemberError","RefinementError","kind","refinementError","TransformationError","transformationError","IterableError","iterableError"],"sources":["../../_src/ParseError/ParseError.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAgCA;;;AAGM,MAAOA,gBAAgB;EAE3BC,YACWC,GAAgB,EAChBC,MAAe,EACfC,KAAiB;IAFjB,KAAAF,GAAG,GAAHA,GAAG;IACH,KAAAC,MAAM,GAANA,MAAM;IACN,KAAAC,KAAK,GAALA,KAAK;IAJP,KAAAC,IAAI;EAKV;;AAGL;;;;AAAAC,OAAA,CAAAN,gBAAA,GAAAA,gBAAA;AAIM,SAAUO,gBAAgBA,CAACL,GAAgB,EAAEC,MAAe,EAAEC,KAAiB;EACnF,OAAO,IAAIJ,gBAAgB,CAACE,GAAG,EAAEC,MAAM,EAAEC,KAAK,CAAC;AACjD;AAEA;;;AAGM,MAAOI,SAAS;EAEpBP,YACWC,GAAQ,EACRC,MAAe;IADf,KAAAD,GAAG,GAAHA,GAAG;IACH,KAAAC,MAAM,GAANA,MAAM;IAHR,KAAAE,IAAI;EAIV;;AAGL;;;;AAAAC,OAAA,CAAAE,SAAA,GAAAA,SAAA;AAIM,SAAUC,SAASA,CAACC,QAAa,EAAEP,MAAe;EACtD,OAAO,IAAIK,SAAS,CAACE,QAAQ,EAAEP,MAAM,CAAC;AACxC;AAEA;;;AAGM,MAAOQ,gBAAgB;EAE3BV,YACWC,GAAgB,EAChBC,MAAe,EACfS,MAAwB,EACxBC,MAAA,GAA4C,EAAE;IAH9C,KAAAX,GAAG,GAAHA,GAAG;IACH,KAAAC,MAAM,GAANA,MAAM;IACN,KAAAS,MAAM,GAANA,MAAM;IACN,KAAAC,MAAM,GAANA,MAAM;IALR,KAAAR,IAAI;EAMV;;AAGL;;;;AAAAC,OAAA,CAAAK,gBAAA,GAAAA,gBAAA;AAIM,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B,aAAA,GAAAA,aAAA;AAIM,SAAUC,aAAaA,CAACpC,GAAQ,EAAEC,MAAe,EAAES,MAAqC;EAC5F,OAAO,IAAIyB,aAAa,CAACnC,GAAG,EAAEC,MAAM,EAAES,MAAM,CAAC;AAC/C","ignoreList":[]}
1
+ {"version":3,"file":"ParseError.cjs","names":["tsplus_module_1"],"sources":["../../esm/ParseError/ParseError.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/base/data/Equatable/definition\";\nfunction hasTag(u, tag) {\n return typeof u === \"object\" && u !== null && \"_tag\" in u && u._tag === tag;\n}\n/**\n * @tsplus companion fncts.schema.ParseError.DeclarationError\n */\nexport class DeclarationError {\n ast;\n actual;\n error;\n _tag = 0 /* ParseErrorTag.Declaration */;\n constructor(ast, actual, error) {\n this.ast = ast;\n this.actual = actual;\n this.error = error;\n }\n [tsplus_module_1.equalsSymbol](that, context) {\n return (hasTag(that, 0 /* ParseErrorTag.Declaration */) &&\n context.comparator(this.ast, that.ast) &&\n context.comparator(this.actual, that.actual) &&\n context.comparator(this.error, that.error));\n }\n}\n/**\n * @tsplus static fncts.schema.ParseError.DeclarationError __call\n * @tsplus static fncts.schema.ParseErrorOps DeclarationError\n */\nexport function declarationError(ast, actual, error) {\n return new DeclarationError(ast, actual, error);\n}\n/**\n * @tsplus companion fncts.schema.ParseError.TypeError\n */\nexport class TypeError {\n ast;\n actual;\n _tag = 1 /* ParseErrorTag.Type */;\n constructor(ast, actual) {\n this.ast = ast;\n this.actual = actual;\n }\n [tsplus_module_1.equalsSymbol](that, context) {\n return (hasTag(that, 1 /* ParseErrorTag.Type */) &&\n context.comparator(this.ast, that.ast) &&\n context.comparator(this.actual, that.actual));\n }\n}\n/**\n * @tsplus static fncts.schema.ParseError.TypeError __call\n * @tsplus static fncts.schema.ParseErrorOps TypeError\n */\nexport function typeError(expected, actual) {\n return new TypeError(expected, actual);\n}\n/**\n * @tsplus companion fncts.schema.ParseError.TypeLiteralError\n */\nexport class TypeLiteralError {\n ast;\n actual;\n errors;\n output;\n _tag = 9 /* ParseErrorTag.TypeLiteral */;\n constructor(ast, actual, errors, output = {}) {\n this.ast = ast;\n this.actual = actual;\n this.errors = errors;\n this.output = output;\n }\n [tsplus_module_1.equalsSymbol](that, context) {\n return (hasTag(that, 9 /* ParseErrorTag.TypeLiteral */) &&\n context.comparator(this.ast, that.ast) &&\n context.comparator(this.actual, that.actual) &&\n context.comparator(this.errors, that.errors) &&\n context.comparator(this.output, that.output));\n }\n}\n/**\n * @tsplus static fncts.schema.ParseError.TypeLiteralError __call\n * @tsplus static fncts.schema.ParseErrorOps TypeLiteralError\n */\nexport function typeLiteralError(ast, actual, errors, output = {}) {\n return new TypeLiteralError(ast, actual, errors, output);\n}\n/**\n * @tsplus companion fncts.schema.ParseError.TupleError\n */\nexport class TupleError {\n ast;\n actual;\n errors;\n output;\n _tag = 10 /* ParseErrorTag.Tuple */;\n constructor(ast, actual, errors, output = []) {\n this.ast = ast;\n this.actual = actual;\n this.errors = errors;\n this.output = output;\n }\n [tsplus_module_1.equalsSymbol](that, context) {\n return (hasTag(that, 10 /* ParseErrorTag.Tuple */) &&\n context.comparator(this.ast, that.ast) &&\n context.comparator(this.actual, that.actual) &&\n context.comparator(this.errors, that.errors) &&\n context.comparator(this.output, that.output));\n }\n}\n/**\n * @tsplus static fncts.schema.ParseError.TupleError __call\n * @tsplus static fncts.schema.ParseErrorOps TupleError\n */\nexport function tupleError(ast, actual, errors, output = []) {\n return new TupleError(ast, actual, errors, output);\n}\n/**\n * @tsplus companion fncts.schema.ParseError.IndexError\n */\nexport class IndexError {\n index;\n error;\n _tag = 2 /* ParseErrorTag.Index */;\n constructor(index, error) {\n this.index = index;\n this.error = error;\n }\n [tsplus_module_1.equalsSymbol](that, context) {\n return (hasTag(that, 2 /* ParseErrorTag.Index */) &&\n context.comparator(this.index, that.index) &&\n context.comparator(this.error, that.error));\n }\n}\n/**\n * @tsplus static fncts.schema.ParseError.IndexError __call\n * @tsplus static fncts.schema.ParseErrorOps IndexError\n */\nexport function indexError(index, error) {\n return new IndexError(index, error);\n}\n/**\n * @tsplus companion fncts.schema.ParseError.KeyError\n */\nexport class KeyError {\n keyAST;\n key;\n error;\n _tag = 3 /* ParseErrorTag.Key */;\n constructor(keyAST, key, error) {\n this.keyAST = keyAST;\n this.key = key;\n this.error = error;\n }\n [tsplus_module_1.equalsSymbol](that, context) {\n return (hasTag(that, 3 /* ParseErrorTag.Key */) &&\n context.comparator(this.keyAST, that.keyAST) &&\n context.comparator(this.key, that.key) &&\n context.comparator(this.error, that.error));\n }\n}\n/**\n * @tsplus static fncts.schema.ParseError.KeyError __call\n * @tsplus static fncts.schema.ParseErrorOps KeyError\n */\nexport function keyError(keyAST, key, error) {\n return new KeyError(keyAST, key, error);\n}\n/**\n * @tsplus companion fncts.schema.ParseError.MissingError\n */\nexport class MissingError {\n _tag = 4 /* ParseErrorTag.Missing */;\n [tsplus_module_1.equalsSymbol](that) {\n return hasTag(that, 4 /* ParseErrorTag.Missing */);\n }\n}\n/**\n * @tsplus static fncts.schema.ParseErrorOps MissingError\n */\nexport const missingError = new MissingError();\n/**\n * @tsplus companion fncts.schema.ParseError.UnexpectedError\n */\nexport class UnexpectedError {\n actual;\n _tag = 5 /* ParseErrorTag.Unexpected */;\n constructor(actual) {\n this.actual = actual;\n }\n [tsplus_module_1.equalsSymbol](that, context) {\n return hasTag(that, 5 /* ParseErrorTag.Unexpected */) && context.comparator(this.actual, that.actual);\n }\n}\n/**\n * @tsplus static fncts.schema.ParseError.UnexpectedError __call\n * @tsplus static fncts.schema.ParseErrorOps UnexpectedError\n */\nexport function unexpectedError(actual) {\n return new UnexpectedError(actual);\n}\n/**\n * @tsplus companion fncts.schema.ParseError.UnionError\n */\nexport class UnionError {\n ast;\n actual;\n errors;\n _tag = 11 /* ParseErrorTag.Union */;\n constructor(ast, actual, errors) {\n this.ast = ast;\n this.actual = actual;\n this.errors = errors;\n }\n [tsplus_module_1.equalsSymbol](that, context) {\n return (hasTag(that, 11 /* ParseErrorTag.Union */) &&\n context.comparator(this.ast, that.ast) &&\n context.comparator(this.actual, that.actual) &&\n context.comparator(this.errors, that.errors));\n }\n}\n/**\n * @tsplus static fncts.schema.ParseError.UnionError __call\n * @tsplus static fncts.schema.ParseErrorOps UnionError\n */\nexport function unionError(ast, actual, errors) {\n return new UnionError(ast, actual, errors);\n}\n/**\n * @tsplus companion fncts.schema.ParseError.UnionMemberError\n */\nexport class UnionMemberError {\n ast;\n error;\n _tag = 6 /* ParseErrorTag.UnionMember */;\n constructor(ast, error) {\n this.ast = ast;\n this.error = error;\n }\n [tsplus_module_1.equalsSymbol](that, context) {\n return (hasTag(that, 6 /* ParseErrorTag.UnionMember */) &&\n context.comparator(this.ast, that.ast) &&\n context.comparator(this.error, that.error));\n }\n}\n/**\n * @tsplus static fncts.schema.ParseError.UnionMemberError __call\n * @tsplus static fncts.schema.ParseErrorOps UnionMemberError\n */\nexport function unionMemberError(ast, error) {\n return new UnionMemberError(ast, error);\n}\n/**\n * @tsplus companion fncts.schema.ParseError.RefinementError\n */\nexport class RefinementError {\n ast;\n actual;\n kind;\n error;\n _tag = 7 /* ParseErrorTag.Refinement */;\n constructor(ast, actual, kind, error) {\n this.ast = ast;\n this.actual = actual;\n this.kind = kind;\n this.error = error;\n }\n [tsplus_module_1.equalsSymbol](that, context) {\n return (hasTag(that, 7 /* ParseErrorTag.Refinement */) &&\n context.comparator(this.ast, that.ast) &&\n context.comparator(this.actual, that.actual) &&\n context.comparator(this.kind, that.kind) &&\n context.comparator(this.error, that.error));\n }\n}\n/**\n * @tsplus static fncts.schema.ParseError.RefinementError __call\n * @tsplus static fncts.schema.ParseErrorOps RefinementError\n */\nexport function refinementError(ast, actual, kind, error) {\n return new RefinementError(ast, actual, kind, error);\n}\n/**\n * @tsplus companion fncts.schema.ParseError.TransformationError\n */\nexport class TransformationError {\n ast;\n actual;\n kind;\n error;\n _tag = 8 /* ParseErrorTag.Transformation */;\n constructor(ast, actual, kind, error) {\n this.ast = ast;\n this.actual = actual;\n this.kind = kind;\n this.error = error;\n }\n [tsplus_module_1.equalsSymbol](that, context) {\n return (hasTag(that, 8 /* ParseErrorTag.Transformation */) &&\n context.comparator(this.ast, that.ast) &&\n context.comparator(this.actual, that.actual) &&\n context.comparator(this.kind, that.kind) &&\n context.comparator(this.error, that.error));\n }\n}\n/**\n * @tsplus static fncts.schema.ParseError.TransformationError __call\n * @tsplus static fncts.schema.ParseErrorOps TransformationError\n */\nexport function transformationError(ast, actual, kind, error) {\n return new TransformationError(ast, actual, kind, error);\n}\n/**\n * @tsplus companion fncts.schema.ParseError.IterableError\n */\nexport class IterableError {\n ast;\n actual;\n errors;\n _tag = 12 /* ParseErrorTag.Iterable */;\n constructor(ast, actual, errors) {\n this.ast = ast;\n this.actual = actual;\n this.errors = errors;\n }\n [tsplus_module_1.equalsSymbol](that, context) {\n return (hasTag(that, 12 /* ParseErrorTag.Iterable */) &&\n context.comparator(this.ast, that.ast) &&\n context.comparator(this.actual, that.actual) &&\n context.comparator(this.errors, that.errors));\n }\n}\n/**\n * @tsplus static fncts.schema.ParseError.IterableError __call\n * @tsplus static fncts.schema.ParseErrorOps IterableError\n */\nexport function iterableError(ast, actual, errors) {\n return new IterableError(ast, actual, errors);\n}\n//# sourceMappingURL=ParseError.js.map"],"mappings":";;;;;AACA,SAAS,OAAO,GAAG,KAAK;AACpB,QAAO,OAAO,MAAM,YAAY,MAAM,QAAQ,UAAU,KAAK,EAAE,SAAS;;;;;AAK5E,IAAa,mBAAb,MAA8B;CAC1B;CACA;CACA;CACA,OAAO;CACP,YAAY,KAAK,QAAQ,OAAO;AAC5B,OAAK,MAAM;AACX,OAAK,SAAS;AACd,OAAK,QAAQ;;CAEjB,CAACA,sCAAgB,cAAc,MAAM,SAAS;AAC1C,SAAQ,OAAO,MAAM,EAAkC,IACnD,QAAQ,WAAW,KAAK,KAAK,KAAK,IAAI,IACtC,QAAQ,WAAW,KAAK,QAAQ,KAAK,OAAO,IAC5C,QAAQ,W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