@nfdi4plants/arctrl 3.0.0 → 3.0.3

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 (54) hide show
  1. package/dist/ts/ts/CWL/Decode.d.ts +15 -11
  2. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
  3. package/dist/ts/ts/CWL/Decode.js +73 -23
  4. package/dist/ts/ts/CWL/Encode.d.ts +8 -1
  5. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
  6. package/dist/ts/ts/CWL/Encode.js +15 -11
  7. package/dist/ts/ts/CWL/Requirements.d.ts +1 -1
  8. package/dist/ts/ts/CWL/Requirements.js +1 -1
  9. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +1 -1
  10. package/dist/ts/ts/CWL/WorkflowSteps.js +1 -1
  11. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
  12. package/dist/ts/ts/Conversion/Basic.js +6 -6
  13. package/dist/ts/ts/Conversion/Workflow.js +3 -3
  14. package/dist/ts/ts/Core/DataContext.d.ts +21 -29
  15. package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
  16. package/dist/ts/ts/Core/DataContext.js +70 -84
  17. package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
  18. package/dist/ts/ts/Core/Datamap.js +9 -10
  19. package/dist/ts/ts/Json/Datamap/DataContext.d.ts.map +1 -1
  20. package/dist/ts/ts/Json/Datamap/DataContext.js +6 -6
  21. package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +1 -1
  22. package/dist/ts/ts/ROCrateIO.d.ts +1 -0
  23. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  24. package/dist/ts/ts/ROCrateIO.js +6 -3
  25. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.d.ts.map +1 -1
  26. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +1 -2
  27. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.d.ts.map +1 -1
  28. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +6 -7
  29. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
  30. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +2 -2
  31. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +1 -1
  32. package/dist/ts/ts/Yaml/ValidationPackage.js +6 -6
  33. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +1 -1
  34. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +6 -6
  35. package/dist/ts/ts/Yaml.js +1 -1
  36. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/Encode.fs.js +9 -9
  37. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Escapes.fs.js +313 -0
  38. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/FlowToBlock.fs.js +14 -12
  39. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Persil.fs.js +562 -0
  40. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/Preprocessing.fs.js +52 -12
  41. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Reader.fs.js +1314 -0
  42. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/Regex.fs.js +7 -1
  43. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/RegexActivePatterns.fs.js +313 -0
  44. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/StringBuffer.fs.js +60 -0
  45. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Writer.fs.js +391 -0
  46. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/YAMLiciousTypes.fs.js +317 -0
  47. package/package.json +1 -1
  48. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Persil.fs.js +0 -45
  49. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Reader.fs.js +0 -539
  50. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/RegexActivePatterns.fs.js +0 -216
  51. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Writer.fs.js +0 -164
  52. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/YAMLiciousTypes.fs.js +0 -152
  53. /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/Decode.fs.js +0 -0
  54. /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/Interop/JsInterop.fs.js +0 -0
@@ -1,216 +0,0 @@
1
- import { match, create } from '../../../node_modules/@fable-org/fable-library-js/RegExp.js';
2
- import { KeyPattern, ValuePattern, LineCommentPattern, FlowStyleArrayPattern, SequenceOpenerPattern, SequenceCloserPattern, FlowStyleObjectPattern, FlowStyleObjectOpenerPattern, FlowStyleObjectCloserPattern } from './Regex.fs.js';
3
- import { unwrap } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
4
- import { parse } from '../../../node_modules/@fable-org/fable-library-js/Int32.js';
5
-
6
- function $007CKey$007C_$007C(input) {
7
- let v;
8
- if (input.tag === /* Line */
9
- 2) {
10
- const s = input.fields[0];
11
- const m = match(create(KeyPattern), s);
12
- if (m != null) {
13
- return {
14
- Comment: unwrap((v = m.groups && m.groups.comment || "", v === "" ? void 0 : parse(v, 511, false, 32))),
15
- Key: m.groups && m.groups.key || ""
16
- };
17
- } else {
18
- return void 0;
19
- }
20
- } else {
21
- return void 0;
22
- }
23
- }
24
- function $007CKeyValue$007C_$007C(input) {
25
- if (input.tag === /* Line */
26
- 2) {
27
- const m = match(/^(?<key>[^\{{\[]+):\s+(?<value>(.*))$/gu, input.fields[0]);
28
- if (m != null) {
29
- const v = (m.groups && m.groups.value || "").trim();
30
- return {
31
- Key: m.groups && m.groups.key || "",
32
- Value: v
33
- };
34
- } else {
35
- return void 0;
36
- }
37
- } else {
38
- return void 0;
39
- }
40
- }
41
- function $007CYamlValue$007C_$007C(input) {
42
- let v;
43
- if (input.tag === /* Line */
44
- 2) {
45
- const s = input.fields[0];
46
- const m = match(create(ValuePattern), s);
47
- if (m != null) {
48
- return {
49
- Comment: unwrap((v = m.groups && m.groups.comment || "", v === "" ? void 0 : parse(v, 511, false, 32))),
50
- Value: (m.groups && m.groups.value || "").trim()
51
- };
52
- } else {
53
- return void 0;
54
- }
55
- } else {
56
- return void 0;
57
- }
58
- }
59
- function $007CYamlComment$007C_$007C(input) {
60
- if (input.tag === /* Line */
61
- 2) {
62
- const s = input.fields[0];
63
- const m = match(create(LineCommentPattern), s);
64
- if (m != null) {
65
- return {
66
- Comment: parse(m.groups && m.groups.comment || "", 511, false, 32)
67
- };
68
- } else {
69
- return void 0;
70
- }
71
- } else {
72
- return void 0;
73
- }
74
- }
75
- function $007CSequenceMinusOpener$007C_$007C(input) {
76
- let v;
77
- if (input.tag === /* Line */
78
- 2) {
79
- const m = match(/^-(\s+(?<value>.*))?$/gu, input.fields[0]);
80
- if (m != null) {
81
- return {
82
- Value: unwrap((v = (m.groups && m.groups.value || "").trim(), v === "" ? void 0 : v))
83
- };
84
- } else {
85
- return void 0;
86
- }
87
- } else {
88
- return void 0;
89
- }
90
- }
91
- function $007CFlowStyleArray$007C_$007C(input) {
92
- let v;
93
- if (input.tag === /* Line */
94
- 2) {
95
- const s = input.fields[0];
96
- const m = match(create(FlowStyleArrayPattern), s);
97
- if (m != null) {
98
- return {
99
- Comment: unwrap((v = m.groups && m.groups.comment || "", v === "" ? void 0 : parse(v, 511, false, 32))),
100
- Value: m.groups && m.groups.inlineSequence || ""
101
- };
102
- } else {
103
- return void 0;
104
- }
105
- } else {
106
- return void 0;
107
- }
108
- }
109
- const $007CInlineSequence$007C_$007C = $007CFlowStyleArray$007C_$007C;
110
- function $007CSequenceSquareOpener$007C_$007C(input) {
111
- let v;
112
- if (input.tag === /* Line */
113
- 2) {
114
- const s = input.fields[0];
115
- const m = match(create(SequenceOpenerPattern), s);
116
- if (m != null) {
117
- return {
118
- Comment: unwrap((v = m.groups && m.groups.comment || "", v === "" ? void 0 : parse(v, 511, false, 32)))
119
- };
120
- } else {
121
- return void 0;
122
- }
123
- } else {
124
- return void 0;
125
- }
126
- }
127
- function $007CSequenceSquareCloser$007C_$007C(input) {
128
- let v;
129
- if (input.tag === /* Line */
130
- 2) {
131
- const s = input.fields[0];
132
- const m = match(create(SequenceCloserPattern), s);
133
- if (m != null) {
134
- return {
135
- Comment: unwrap((v = m.groups && m.groups.comment || "", v === "" ? void 0 : parse(v, 511, false, 32)))
136
- };
137
- } else {
138
- return void 0;
139
- }
140
- } else {
141
- return void 0;
142
- }
143
- }
144
- function $007CFlowStyleObject$007C_$007C(input) {
145
- let v;
146
- if (input.tag === /* Line */
147
- 2) {
148
- const s = input.fields[0];
149
- const m = match(create(FlowStyleObjectPattern), s);
150
- if (m != null) {
151
- return {
152
- Comment: unwrap((v = m.groups && m.groups.comment || "", v === "" ? void 0 : parse(v, 511, false, 32))),
153
- Value: m.groups && m.groups.inlineSequence || ""
154
- };
155
- } else {
156
- return void 0;
157
- }
158
- } else {
159
- return void 0;
160
- }
161
- }
162
- const $007CInlineJSON$007C_$007C = $007CFlowStyleObject$007C_$007C;
163
- function $007CFlowStyleObjectOpener$007C_$007C(input) {
164
- let v;
165
- if (input.tag === /* Line */
166
- 2) {
167
- const s = input.fields[0];
168
- const m = match(create(FlowStyleObjectOpenerPattern), s);
169
- if (m != null) {
170
- return {
171
- Comment: unwrap((v = m.groups && m.groups.comment || "", v === "" ? void 0 : parse(v, 511, false, 32))),
172
- Key: m.groups && m.groups.key || ""
173
- };
174
- } else {
175
- return void 0;
176
- }
177
- } else {
178
- return void 0;
179
- }
180
- }
181
- const $007CJSONKeyOpener$007C_$007C = $007CFlowStyleObjectOpener$007C_$007C;
182
- function $007CFlowStyleObjectCloser$007C_$007C(input) {
183
- let v;
184
- if (input.tag === /* Line */
185
- 2) {
186
- const s = input.fields[0];
187
- const m = match(create(FlowStyleObjectCloserPattern), s);
188
- if (m != null) {
189
- return {
190
- Comment: unwrap((v = m.groups && m.groups.comment || "", v === "" ? void 0 : parse(v, 511, false, 32)))
191
- };
192
- } else {
193
- return void 0;
194
- }
195
- } else {
196
- return void 0;
197
- }
198
- }
199
- const $007CJSONCloser$007C_$007C = $007CFlowStyleObjectCloser$007C_$007C;
200
- function $007CSchemaNamespace$007C_$007C(input) {
201
- if (input.tag === /* Line */
202
- 2) {
203
- const m = match(/^\$(?<key>[a-zA-Z0-9\s:]+):$/gu, input.fields[0]);
204
- if (m != null) {
205
- return {
206
- Key: m.groups && m.groups.key || ""
207
- };
208
- } else {
209
- return void 0;
210
- }
211
- } else {
212
- return void 0;
213
- }
214
- }
215
-
216
- export { $007CFlowStyleArray$007C_$007C, $007CFlowStyleObject$007C_$007C, $007CFlowStyleObjectCloser$007C_$007C, $007CFlowStyleObjectOpener$007C_$007C, $007CInlineJSON$007C_$007C, $007CInlineSequence$007C_$007C, $007CJSONCloser$007C_$007C, $007CJSONKeyOpener$007C_$007C, $007CKey$007C_$007C, $007CKeyValue$007C_$007C, $007CSchemaNamespace$007C_$007C, $007CSequenceMinusOpener$007C_$007C, $007CSequenceSquareCloser$007C_$007C, $007CSequenceSquareOpener$007C_$007C, $007CYamlComment$007C_$007C, $007CYamlValue$007C_$007C };
@@ -1,164 +0,0 @@
1
- import { forAll, toList, delay, collect, singleton, map as map$2 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
2
- import { PreprocessorElement_Nil, PreprocessorElement_Line, PreprocessorElement_Level, PreprocessorElement_Intendation } from './YAMLiciousTypes.fs.js';
3
- import { map as map$1, ofArray, singleton as singleton$1 } from '../../../node_modules/@fable-org/fable-library-js/List.js';
4
- import { defaultArg, map } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
5
- import { join } from '../../../node_modules/@fable-org/fable-library-js/String.js';
6
- import { write as write$1 } from './Preprocessing.fs.js';
7
-
8
- function StyleVerifier_checkInlineSequence(ele) {
9
- return forAll((x) => {
10
- let matchResult, v;
11
- if (x.tag === /* Value */
12
- 1) {
13
- if (x.fields[0].Comment == null) {
14
- matchResult = 0;
15
- v = x.fields[0].Value;
16
- } else {
17
- matchResult = 1;
18
- }
19
- } else {
20
- matchResult = 1;
21
- }
22
- switch (matchResult) {
23
- case 0:
24
- return true;
25
- default:
26
- return false;
27
- }
28
- }, ele);
29
- }
30
- function Formatting_mkComment(comment) {
31
- return "#" + comment;
32
- }
33
- function Formatting_mkKey(key) {
34
- return key + ":";
35
- }
36
- function Formatting_mkContent(content) {
37
- return content.Value + defaultArg(map((s) => " " + Formatting_mkComment(s), content.Comment), "");
38
- }
39
- function Formatting_mkInlineSequence(seq) {
40
- return "[" + join(", ", map$1((x) => {
41
- let matchResult, v;
42
- if (x.tag === /* Value */
43
- 1) {
44
- if (x.fields[0].Comment == null) {
45
- matchResult = 0;
46
- v = x.fields[0].Value;
47
- } else {
48
- matchResult = 1;
49
- }
50
- } else {
51
- matchResult = 1;
52
- }
53
- switch (matchResult) {
54
- case 0:
55
- return v;
56
- default:
57
- throw new Error("Invalid sequence element");
58
- }
59
- }, seq)) + "]";
60
- }
61
- function Formatting_mkMinusLine(c) {
62
- return "- " + c;
63
- }
64
- function detokenize(ele) {
65
- const loop = (ele_1) => {
66
- switch (ele_1.tag) {
67
- case /* Mapping */
68
- 0: {
69
- const v = ele_1.fields[1];
70
- const key = ele_1.fields[0];
71
- let matchResult, v_1, seq_1, anyElse;
72
- switch (v.tag) {
73
- case /* Value */
74
- 1: {
75
- matchResult = 0;
76
- v_1 = v.fields[0];
77
- break;
78
- }
79
- case /* Sequence */
80
- 2: {
81
- if (StyleVerifier_checkInlineSequence(v.fields[0])) {
82
- matchResult = 1;
83
- seq_1 = v.fields[0];
84
- } else {
85
- matchResult = 2;
86
- anyElse = v;
87
- }
88
- break;
89
- }
90
- default: {
91
- matchResult = 2;
92
- anyElse = v;
93
- }
94
- }
95
- switch (matchResult) {
96
- case 0:
97
- return PreprocessorElement_Line(Formatting_mkKey(key.Value) + " " + Formatting_mkContent(v_1));
98
- case 1:
99
- return PreprocessorElement_Line(Formatting_mkKey(key.Value) + " " + Formatting_mkInlineSequence(seq_1));
100
- default:
101
- return PreprocessorElement_Level(ofArray([PreprocessorElement_Line(Formatting_mkKey(Formatting_mkContent(key))), PreprocessorElement_Intendation(singleton$1(loop(anyElse)))]));
102
- }
103
- }
104
- case /* Value */
105
- 1:
106
- return PreprocessorElement_Line(Formatting_mkContent(ele_1.fields[0]));
107
- case /* Object */
108
- 3: {
109
- const seq_2 = ele_1.fields[0];
110
- return PreprocessorElement_Level(toList(delay(() => map$2(loop, seq_2))));
111
- }
112
- case /* Sequence */
113
- 2: {
114
- const seq_3 = ele_1.fields[0];
115
- return PreprocessorElement_Level(toList(delay(() => collect((ele_3) => {
116
- const matchValue = ele_3;
117
- let matchResult_1, v_3, seq_5, anyElse_1;
118
- switch (matchValue.tag) {
119
- case /* Value */
120
- 1: {
121
- matchResult_1 = 0;
122
- v_3 = matchValue.fields[0];
123
- break;
124
- }
125
- case /* Sequence */
126
- 2: {
127
- if (StyleVerifier_checkInlineSequence(matchValue.fields[0])) {
128
- matchResult_1 = 1;
129
- seq_5 = matchValue.fields[0];
130
- } else {
131
- matchResult_1 = 2;
132
- anyElse_1 = matchValue;
133
- }
134
- break;
135
- }
136
- default: {
137
- matchResult_1 = 2;
138
- anyElse_1 = matchValue;
139
- }
140
- }
141
- switch (matchResult_1) {
142
- case 0:
143
- return singleton(PreprocessorElement_Line(Formatting_mkMinusLine(Formatting_mkContent(v_3))));
144
- case 1:
145
- return singleton(PreprocessorElement_Line(Formatting_mkMinusLine(Formatting_mkInlineSequence(seq_5))));
146
- default:
147
- return singleton(PreprocessorElement_Level(ofArray([PreprocessorElement_Line("-"), PreprocessorElement_Intendation(singleton$1(loop(anyElse_1)))])));
148
- }
149
- }, seq_3))));
150
- }
151
- case /* Comment */
152
- 4:
153
- return PreprocessorElement_Line(Formatting_mkComment(ele_1.fields[0]));
154
- default:
155
- return PreprocessorElement_Nil();
156
- }
157
- };
158
- return loop(ele);
159
- }
160
- function write(ele, fconfig) {
161
- return write$1(detokenize(ele), fconfig);
162
- }
163
-
164
- export { Formatting_mkComment, Formatting_mkContent, Formatting_mkInlineSequence, Formatting_mkKey, Formatting_mkMinusLine, StyleVerifier_checkInlineSequence, detokenize, write };
@@ -1,152 +0,0 @@
1
- import { Record, Union, toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
2
- import { getEnumerator, disposeSafe } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
3
- import { record_type, int32_type, class_type, string_type, union_type, list_type, option_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
4
- import { defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
5
- import { initialize } from '../../../node_modules/@fable-org/fable-library-js/String.js';
6
- import { StringBuilder_$ctor, StringBuilder__AppendLine_Z721C83C5 } from '../../../node_modules/@fable-org/fable-library-js/System.Text.js';
7
-
8
- class Config extends Record {
9
- constructor(Whitespace, Level) {
10
- super();
11
- this.Whitespace = Whitespace | 0;
12
- this.Level = Level | 0;
13
- }
14
- }
15
- function Config_$reflection() {
16
- return record_type("YAMLicious.YAMLiciousTypes.Config", [], Config, () => [["Whitespace", int32_type], ["Level", int32_type]]);
17
- }
18
- function Config_init_71136F3F(whitespace) {
19
- return new Config(defaultArg(whitespace, 4), 0);
20
- }
21
- function Config__get_WhitespaceString(this$) {
22
- return initialize(this$.Level * this$.Whitespace, (_arg) => " ");
23
- }
24
- class Preprocessor extends Record {
25
- constructor(AST, StringMap, CommentMap) {
26
- super();
27
- this.AST = AST;
28
- this.StringMap = StringMap;
29
- this.CommentMap = CommentMap;
30
- }
31
- }
32
- function Preprocessor_$reflection() {
33
- return record_type("YAMLicious.YAMLiciousTypes.Preprocessor", [], Preprocessor, () => [["AST", PreprocessorElement_$reflection()], ["StringMap", class_type("System.Collections.Generic.Dictionary`2", [int32_type, string_type])], ["CommentMap", class_type("System.Collections.Generic.Dictionary`2", [int32_type, string_type])]]);
34
- }
35
- function PreprocessorElement_Level(Item) {
36
- return new PreprocessorElement(0, [Item]);
37
- }
38
- function PreprocessorElement_Intendation(Item) {
39
- return new PreprocessorElement(1, [Item]);
40
- }
41
- function PreprocessorElement_Line(Item) {
42
- return new PreprocessorElement(2, [Item]);
43
- }
44
- function PreprocessorElement_Nil() {
45
- return new PreprocessorElement(3, []);
46
- }
47
- class PreprocessorElement extends Union {
48
- constructor(tag, fields) {
49
- super();
50
- this.tag = tag;
51
- this.fields = fields;
52
- }
53
- cases() {
54
- return ["Level", "Intendation", "Line", "Nil"];
55
- }
56
- toString() {
57
- const this$ = this;
58
- const sb = StringBuilder_$ctor();
59
- const innerprint = (next, level) => {
60
- const indent = initialize(level * 2, (_arg) => " ");
61
- switch (next.tag) {
62
- case /* Intendation */
63
- 1: {
64
- const children = next.fields[0];
65
- StringBuilder__AppendLine_Z721C83C5(sb, indent + "Intendation [");
66
- const enumerator = getEnumerator(children);
67
- try {
68
- while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
69
- innerprint(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"](), level + 1);
70
- }
71
- } finally {
72
- disposeSafe(enumerator);
73
- }
74
- StringBuilder__AppendLine_Z721C83C5(sb, indent + "]");
75
- break;
76
- }
77
- case /* Level */
78
- 0: {
79
- const children_1 = next.fields[0];
80
- StringBuilder__AppendLine_Z721C83C5(sb, indent + "Level [");
81
- const enumerator_1 = getEnumerator(children_1);
82
- try {
83
- while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
84
- innerprint(enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"](), level + 1);
85
- }
86
- } finally {
87
- disposeSafe(enumerator_1);
88
- }
89
- StringBuilder__AppendLine_Z721C83C5(sb, indent + "]");
90
- break;
91
- }
92
- case /* Nil */
93
- 3: {
94
- break;
95
- }
96
- default:
97
- StringBuilder__AppendLine_Z721C83C5(sb, indent + `Line "${next.fields[0]}"`);
98
- }
99
- };
100
- innerprint(this$, 0);
101
- return toString(sb);
102
- }
103
- }
104
- function PreprocessorElement_$reflection() {
105
- return union_type("YAMLicious.YAMLiciousTypes.PreprocessorElement", [], PreprocessorElement, () => [[["Item", list_type(PreprocessorElement_$reflection())]], [["Item", list_type(PreprocessorElement_$reflection())]], [["Item", string_type]], []]);
106
- }
107
- class YAMLContent extends Record {
108
- constructor(Value, Comment$) {
109
- super();
110
- this.Value = Value;
111
- this.Comment = Comment$;
112
- }
113
- }
114
- function YAMLContent_$reflection() {
115
- return record_type("YAMLicious.YAMLiciousTypes.YAMLContent", [], YAMLContent, () => [["Value", string_type], ["Comment", option_type(string_type)]]);
116
- }
117
- function YAMLContent_create_27AED5E3(value, comment) {
118
- return new YAMLContent(value, comment);
119
- }
120
- function YAMLElement_Mapping(Item1, Item2) {
121
- return new YAMLElement(0, [Item1, Item2]);
122
- }
123
- function YAMLElement_Value(Item) {
124
- return new YAMLElement(1, [Item]);
125
- }
126
- function YAMLElement_Sequence(Item) {
127
- return new YAMLElement(2, [Item]);
128
- }
129
- function YAMLElement_Object(Item) {
130
- return new YAMLElement(3, [Item]);
131
- }
132
- function YAMLElement_Comment(Item) {
133
- return new YAMLElement(4, [Item]);
134
- }
135
- function YAMLElement_Nil() {
136
- return new YAMLElement(5, []);
137
- }
138
- class YAMLElement extends Union {
139
- constructor(tag, fields) {
140
- super();
141
- this.tag = tag;
142
- this.fields = fields;
143
- }
144
- cases() {
145
- return ["Mapping", "Value", "Sequence", "Object", "Comment", "Nil"];
146
- }
147
- }
148
- function YAMLElement_$reflection() {
149
- return union_type("YAMLicious.YAMLiciousTypes.YAMLElement", [], YAMLElement, () => [[["Item1", YAMLContent_$reflection()], ["Item2", YAMLElement_$reflection()]], [["Item", YAMLContent_$reflection()]], [["Item", list_type(YAMLElement_$reflection())]], [["Item", list_type(YAMLElement_$reflection())]], [["Item", string_type]], []]);
150
- }
151
-
152
- export { Config, Config_$reflection, Config__get_WhitespaceString, Config_init_71136F3F, Preprocessor, PreprocessorElement, PreprocessorElement_$reflection, PreprocessorElement_Intendation, PreprocessorElement_Level, PreprocessorElement_Line, PreprocessorElement_Nil, Preprocessor_$reflection, YAMLContent, YAMLContent_$reflection, YAMLContent_create_27AED5E3, YAMLElement, YAMLElement_$reflection, YAMLElement_Comment, YAMLElement_Mapping, YAMLElement_Nil, YAMLElement_Object, YAMLElement_Sequence, YAMLElement_Value };