@glutinum/cli 0.3.1 → 0.5.0

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 (171) hide show
  1. package/README.md +169 -1
  2. package/dist/Glutinum.Converter/FsharpAST.js +152 -20
  3. package/dist/Glutinum.Converter/FsharpAST.js.map +1 -1
  4. package/dist/Glutinum.Converter/Generate.js +17 -5
  5. package/dist/Glutinum.Converter/Generate.js.map +1 -1
  6. package/dist/Glutinum.Converter/GlueAST.js +97 -17
  7. package/dist/Glutinum.Converter/GlueAST.js.map +1 -1
  8. package/dist/Glutinum.Converter/Log.js +9 -5
  9. package/dist/Glutinum.Converter/Log.js.map +1 -1
  10. package/dist/Glutinum.Converter/Printer.js +486 -132
  11. package/dist/Glutinum.Converter/Printer.js.map +1 -1
  12. package/dist/Glutinum.Converter/Read.js +8 -5
  13. package/dist/Glutinum.Converter/Read.js.map +1 -1
  14. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +14 -6
  15. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js.map +1 -1
  16. package/dist/Glutinum.Converter/Reader/Declaration.js +50 -0
  17. package/dist/Glutinum.Converter/Reader/Declaration.js.map +1 -0
  18. package/dist/Glutinum.Converter/Reader/Documentation.js +119 -0
  19. package/dist/Glutinum.Converter/Reader/Documentation.js.map +1 -0
  20. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js +13 -11
  21. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js.map +1 -1
  22. package/dist/Glutinum.Converter/Reader/ExportAssignment.js +42 -0
  23. package/dist/Glutinum.Converter/Reader/ExportAssignment.js.map +1 -0
  24. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js +15 -5
  25. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js.map +1 -1
  26. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js +4 -2
  27. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js.map +1 -1
  28. package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js +3 -3
  29. package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js.map +1 -1
  30. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js +3 -3
  31. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js.map +1 -1
  32. package/dist/Glutinum.Converter/Reader/Node.js +24 -10
  33. package/dist/Glutinum.Converter/Reader/Node.js.map +1 -1
  34. package/dist/Glutinum.Converter/Reader/Parameters.js +3 -3
  35. package/dist/Glutinum.Converter/Reader/Parameters.js.map +1 -1
  36. package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js +5 -5
  37. package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js.map +1 -1
  38. package/dist/Glutinum.Converter/Reader/TypeNode.js +151 -18
  39. package/dist/Glutinum.Converter/Reader/TypeNode.js.map +1 -1
  40. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js +29 -20
  41. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js.map +1 -1
  42. package/dist/Glutinum.Converter/Reader/TypeParameters.js +2 -2
  43. package/dist/Glutinum.Converter/Reader/TypeScriptReader.js +102 -77
  44. package/dist/Glutinum.Converter/Reader/TypeScriptReader.js.map +1 -1
  45. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +17 -11
  46. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js.map +1 -1
  47. package/dist/Glutinum.Converter/Reader/Utils.js +80 -5
  48. package/dist/Glutinum.Converter/Reader/Utils.js.map +1 -1
  49. package/dist/Glutinum.Converter/Reader/VariableStatement.js +14 -7
  50. package/dist/Glutinum.Converter/Reader/VariableStatement.js.map +1 -1
  51. package/dist/Glutinum.Converter/Transform.js +559 -193
  52. package/dist/Glutinum.Converter/Transform.js.map +1 -1
  53. package/dist/Glutinum.Converter/TypeScript.js +1 -1
  54. package/dist/Glutinum.Converter/Utils/Keywords.js +3 -3
  55. package/dist/Glutinum.Converter/Utils/List.js +62 -0
  56. package/dist/Glutinum.Converter/Utils/List.js.map +1 -0
  57. package/dist/Glutinum.Converter/Utils/Naming.js +73 -6
  58. package/dist/Glutinum.Converter/Utils/Naming.js.map +1 -1
  59. package/dist/Glutinum.Converter/Utils/String.js +6 -1
  60. package/dist/Glutinum.Converter/Utils/String.js.map +1 -1
  61. package/dist/Program.js +9 -10
  62. package/dist/Program.js.map +1 -1
  63. package/package.json +22 -3
  64. package/dist/Glutinum.Converter/Reader/NamedDeclaration.js +0 -34
  65. package/dist/Glutinum.Converter/Reader/NamedDeclaration.js.map +0 -1
  66. package/dist/Glutinum.Converter/Reader/Types.js +0 -16
  67. package/dist/Glutinum.Converter/Reader/Types.js.map +0 -1
  68. package/dist/fable_modules/fable-library.4.5.0/Array.d.ts +0 -120
  69. package/dist/fable_modules/fable-library.4.5.0/Array.js +0 -1204
  70. package/dist/fable_modules/fable-library.4.5.0/Async.d.ts +0 -32
  71. package/dist/fable_modules/fable-library.4.5.0/Async.js +0 -158
  72. package/dist/fable_modules/fable-library.4.5.0/AsyncBuilder.d.ts +0 -59
  73. package/dist/fable_modules/fable-library.4.5.0/AsyncBuilder.js +0 -183
  74. package/dist/fable_modules/fable-library.4.5.0/BigInt.d.ts +0 -115
  75. package/dist/fable_modules/fable-library.4.5.0/BigInt.js +0 -282
  76. package/dist/fable_modules/fable-library.4.5.0/BitConverter.d.ts +0 -27
  77. package/dist/fable_modules/fable-library.4.5.0/BitConverter.js +0 -138
  78. package/dist/fable_modules/fable-library.4.5.0/Boolean.d.ts +0 -3
  79. package/dist/fable_modules/fable-library.4.5.0/Boolean.js +0 -21
  80. package/dist/fable_modules/fable-library.4.5.0/CHANGELOG.md +0 -11
  81. package/dist/fable_modules/fable-library.4.5.0/Char.d.ts +0 -65
  82. package/dist/fable_modules/fable-library.4.5.0/Char.js +0 -169
  83. package/dist/fable_modules/fable-library.4.5.0/Choice.d.ts +0 -138
  84. package/dist/fable_modules/fable-library.4.5.0/Choice.js +0 -227
  85. package/dist/fable_modules/fable-library.4.5.0/Date.d.ts +0 -70
  86. package/dist/fable_modules/fable-library.4.5.0/Date.js +0 -451
  87. package/dist/fable_modules/fable-library.4.5.0/DateOffset.d.ts +0 -63
  88. package/dist/fable_modules/fable-library.4.5.0/DateOffset.js +0 -268
  89. package/dist/fable_modules/fable-library.4.5.0/DateOnly.d.ts +0 -18
  90. package/dist/fable_modules/fable-library.4.5.0/DateOnly.js +0 -124
  91. package/dist/fable_modules/fable-library.4.5.0/Decimal.d.ts +0 -45
  92. package/dist/fable_modules/fable-library.4.5.0/Decimal.js +0 -212
  93. package/dist/fable_modules/fable-library.4.5.0/Double.d.ts +0 -11
  94. package/dist/fable_modules/fable-library.4.5.0/Double.js +0 -46
  95. package/dist/fable_modules/fable-library.4.5.0/Encoding.d.ts +0 -12
  96. package/dist/fable_modules/fable-library.4.5.0/Encoding.js +0 -173
  97. package/dist/fable_modules/fable-library.4.5.0/Event.d.ts +0 -31
  98. package/dist/fable_modules/fable-library.4.5.0/Event.js +0 -93
  99. package/dist/fable_modules/fable-library.4.5.0/FSharp.Collections.d.ts +0 -7
  100. package/dist/fable_modules/fable-library.4.5.0/FSharp.Collections.js +0 -27
  101. package/dist/fable_modules/fable-library.4.5.0/FSharp.Core.d.ts +0 -17
  102. package/dist/fable_modules/fable-library.4.5.0/FSharp.Core.js +0 -69
  103. package/dist/fable_modules/fable-library.4.5.0/Global.d.ts +0 -24
  104. package/dist/fable_modules/fable-library.4.5.0/Global.js +0 -8
  105. package/dist/fable_modules/fable-library.4.5.0/Guid.d.ts +0 -10
  106. package/dist/fable_modules/fable-library.4.5.0/Guid.js +0 -142
  107. package/dist/fable_modules/fable-library.4.5.0/Int32.d.ts +0 -28
  108. package/dist/fable_modules/fable-library.4.5.0/Int32.js +0 -135
  109. package/dist/fable_modules/fable-library.4.5.0/List.d.ts +0 -143
  110. package/dist/fable_modules/fable-library.4.5.0/List.js +0 -1273
  111. package/dist/fable_modules/fable-library.4.5.0/Long.d.ts +0 -3
  112. package/dist/fable_modules/fable-library.4.5.0/Long.js +0 -46
  113. package/dist/fable_modules/fable-library.4.5.0/MailboxProcessor.d.ts +0 -25
  114. package/dist/fable_modules/fable-library.4.5.0/MailboxProcessor.js +0 -93
  115. package/dist/fable_modules/fable-library.4.5.0/Map.d.ts +0 -178
  116. package/dist/fable_modules/fable-library.4.5.0/Map.js +0 -1396
  117. package/dist/fable_modules/fable-library.4.5.0/MapUtil.d.ts +0 -10
  118. package/dist/fable_modules/fable-library.4.5.0/MapUtil.js +0 -112
  119. package/dist/fable_modules/fable-library.4.5.0/MutableMap.d.ts +0 -52
  120. package/dist/fable_modules/fable-library.4.5.0/MutableMap.js +0 -326
  121. package/dist/fable_modules/fable-library.4.5.0/MutableSet.d.ts +0 -39
  122. package/dist/fable_modules/fable-library.4.5.0/MutableSet.js +0 -232
  123. package/dist/fable_modules/fable-library.4.5.0/Native.d.ts +0 -2
  124. package/dist/fable_modules/fable-library.4.5.0/Native.js +0 -8
  125. package/dist/fable_modules/fable-library.4.5.0/Numeric.d.ts +0 -19
  126. package/dist/fable_modules/fable-library.4.5.0/Numeric.js +0 -71
  127. package/dist/fable_modules/fable-library.4.5.0/Observable.d.ts +0 -32
  128. package/dist/fable_modules/fable-library.4.5.0/Observable.js +0 -113
  129. package/dist/fable_modules/fable-library.4.5.0/Option.d.ts +0 -28
  130. package/dist/fable_modules/fable-library.4.5.0/Option.js +0 -96
  131. package/dist/fable_modules/fable-library.4.5.0/README.md +0 -3
  132. package/dist/fable_modules/fable-library.4.5.0/Random.d.ts +0 -37
  133. package/dist/fable_modules/fable-library.4.5.0/Random.js +0 -170
  134. package/dist/fable_modules/fable-library.4.5.0/Range.d.ts +0 -12
  135. package/dist/fable_modules/fable-library.4.5.0/Range.js +0 -45
  136. package/dist/fable_modules/fable-library.4.5.0/Reflection.d.ts +0 -119
  137. package/dist/fable_modules/fable-library.4.5.0/Reflection.js +0 -461
  138. package/dist/fable_modules/fable-library.4.5.0/RegExp.d.ts +0 -10
  139. package/dist/fable_modules/fable-library.4.5.0/RegExp.js +0 -132
  140. package/dist/fable_modules/fable-library.4.5.0/Seq.d.ts +0 -165
  141. package/dist/fable_modules/fable-library.4.5.0/Seq.js +0 -1379
  142. package/dist/fable_modules/fable-library.4.5.0/Seq2.d.ts +0 -18
  143. package/dist/fable_modules/fable-library.4.5.0/Seq2.js +0 -111
  144. package/dist/fable_modules/fable-library.4.5.0/Set.d.ts +0 -190
  145. package/dist/fable_modules/fable-library.4.5.0/Set.js +0 -1789
  146. package/dist/fable_modules/fable-library.4.5.0/String.d.ts +0 -49
  147. package/dist/fable_modules/fable-library.4.5.0/String.js +0 -540
  148. package/dist/fable_modules/fable-library.4.5.0/System.Collections.Generic.d.ts +0 -71
  149. package/dist/fable_modules/fable-library.4.5.0/System.Collections.Generic.js +0 -307
  150. package/dist/fable_modules/fable-library.4.5.0/System.Text.d.ts +0 -30
  151. package/dist/fable_modules/fable-library.4.5.0/System.Text.js +0 -110
  152. package/dist/fable_modules/fable-library.4.5.0/SystemException.d.ts +0 -5
  153. package/dist/fable_modules/fable-library.4.5.0/SystemException.js +0 -5
  154. package/dist/fable_modules/fable-library.4.5.0/TimeOnly.d.ts +0 -15
  155. package/dist/fable_modules/fable-library.4.5.0/TimeOnly.js +0 -122
  156. package/dist/fable_modules/fable-library.4.5.0/TimeSpan.d.ts +0 -34
  157. package/dist/fable_modules/fable-library.4.5.0/TimeSpan.js +0 -177
  158. package/dist/fable_modules/fable-library.4.5.0/Timer.d.ts +0 -19
  159. package/dist/fable_modules/fable-library.4.5.0/Timer.js +0 -67
  160. package/dist/fable_modules/fable-library.4.5.0/Types.d.ts +0 -58
  161. package/dist/fable_modules/fable-library.4.5.0/Types.js +0 -208
  162. package/dist/fable_modules/fable-library.4.5.0/Unicode.13.0.0.d.ts +0 -2
  163. package/dist/fable_modules/fable-library.4.5.0/Unicode.13.0.0.js +0 -4
  164. package/dist/fable_modules/fable-library.4.5.0/Uri.d.ts +0 -29
  165. package/dist/fable_modules/fable-library.4.5.0/Uri.js +0 -142
  166. package/dist/fable_modules/fable-library.4.5.0/Util.d.ts +0 -207
  167. package/dist/fable_modules/fable-library.4.5.0/Util.js +0 -781
  168. package/dist/fable_modules/fable-library.4.5.0/lib/big.d.ts +0 -5
  169. package/dist/fable_modules/fable-library.4.5.0/lib/big.js +0 -826
  170. package/dist/fable_modules/fable-library.4.5.0/package.json +0 -23
  171. package/dist/fable_modules/project_cracked.json +0 -1
@@ -6,23 +6,23 @@ export function readTypeAliasDeclaration(reader, declaration) {
6
6
  switch (matchValue) {
7
7
  case 192: {
8
8
  const unionTypeNode = declaration.type;
9
- typ = reader["Glutinum.Converter.Reader.Types.TypeScriptReader.ReadUnionTypeNodeZ5A082EC2"](unionTypeNode);
9
+ typ = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadUnionTypeNodeZ5A082EC2"](unionTypeNode);
10
10
  break;
11
11
  }
12
12
  case 198: {
13
13
  const typeOperatorNode = declaration.type;
14
- typ = reader["Glutinum.Converter.Reader.Types.TypeScriptReader.ReadTypeOperatorNodeZ6830FC33"](typeOperatorNode);
14
+ typ = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeOperatorNodeZ6830FC33"](typeOperatorNode);
15
15
  break;
16
16
  }
17
17
  case 199: {
18
18
  const declaration_1 = declaration.type;
19
- typ = reader["Glutinum.Converter.Reader.Types.TypeScriptReader.ReadIndexedAccessTypeZ5577BC0A"](declaration_1);
19
+ typ = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadIndexedAccessTypeZ5577BC0A"](declaration_1);
20
20
  break;
21
21
  }
22
22
  default:
23
- typ = reader["Glutinum.Converter.Reader.Types.TypeScriptReader.ReadTypeNode24A678AD"](declaration.type);
23
+ typ = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](declaration.type);
24
24
  }
25
- return new GlueType(5, [new GlueTypeAliasDeclaration(declaration.name.getText(), typ, reader["Glutinum.Converter.Reader.Types.TypeScriptReader.ReadTypeParameters4088FB9E"](declaration.typeParameters))]);
25
+ return new GlueType(5, [new GlueTypeAliasDeclaration(declaration.name.getText(), typ, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](declaration.typeParameters))]);
26
26
  }
27
27
 
28
28
  //# sourceMappingURL=TypeAliasDeclaration.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeAliasDeclaration.fs"],"names":["typ","matchValue","declaration","unionTypeNode","reader","typeOperatorNode"],"mappings":";;;AAYQA;AACMC,uBAAA,AAAAC;YAAAD;aAAA;AAEEE,kCAAgB,AAAAD;AAEpB,AALJF,kBAKI,AAAAI,sFAAyBD;;;aAJvB;AAOEE,qCAAmB,AAAAH;AACvB,AATJF,kBASI,AAAAI,yFAA4BC;;;aAR1B;AAWEH,kCAAc,AAAAA;AAClB,AAbJF,kBAaI,AAAAI,0FAA6BF;;;;AAG1B,AAhBPF,kBAgBO,AAAAI,gFAAoB,AAAAF;;AAQ5B,WAAA,iBALH,6BACW,AAAAA,4BACAF,KACU,AAAAI,sFAA0B,AAAAF","file":null,"sourcesContent":null,"sourceRoot":null}
1
+ {"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeAliasDeclaration.fs"],"names":["typ","matchValue","declaration","unionTypeNode","reader","typeOperatorNode"],"mappings":";;;AAYQA;AACMC,uBAAA,AAAAC;YAAAD;aAAA;AAEEE,kCAAgB,AAAAD;AAEpB,AALJF,kBAKI,AAAAI,uFAAyBD;;;aAJvB;AAOEE,qCAAmB,AAAAH;AACvB,AATJF,kBASI,AAAAI,0FAA4BC;;;aAR1B;AAWEH,kCAAc,AAAAA;AAClB,AAbJF,kBAaI,AAAAI,2FAA6BF;;;;AAE1B,AAfPF,kBAeO,AAAAI,iFAAoB,AAAAF;;AAO5B,WAAA,iBALH,6BACW,AAAAA,4BACAF,KACU,AAAAI,uFAA0B,AAAAF","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -1,11 +1,29 @@
1
- import { GlueClassDeclaration, GlueFunctionType, GlueTypeReference, GlueInterface, GlueTypeUnion, GlueLiteral, GlueType, GluePrimitive } from "../GlueAST.js";
2
- import { empty, map, choose } from "../../fable_modules/fable-library.4.5.0/List.js";
3
- import { $007CHasSymbolFlags$007C_$007C, $007CHasTypeFlags$007C_$007C } from "./Utils.js";
4
- import { head, toList } from "../../fable_modules/fable-library.4.5.0/Seq.js";
5
- import { value as value_2 } from "../../fable_modules/fable-library.4.5.0/Option.js";
1
+ import { Union } from "../../fable_modules/fable-library-js.4.14.0/Types.js";
2
+ import { union_type, class_type } from "../../fable_modules/fable-library-js.4.14.0/Reflection.js";
3
+ import { GlueTypeLiteral, GlueClassDeclaration, GlueFunctionType, GlueTypeReference, GlueInterface, GlueTypeUnion, GlueLiteral, GlueType, GluePrimitive } from "../GlueAST.js";
4
+ import { tryReadLiteral, $007CHasSymbolFlags$007C_$007C, $007CHasTypeFlags$007C_$007C, generateReaderError } from "./Utils.js";
5
+ import { exists, empty, map, choose } from "../../fable_modules/fable-library-js.4.14.0/List.js";
6
+ import { head, toList } from "../../fable_modules/fable-library-js.4.14.0/Seq.js";
7
+ import { value as value_2 } from "../../fable_modules/fable-library-js.4.14.0/Option.js";
8
+ import { interpolate, toText } from "../../fable_modules/fable-library-js.4.14.0/String.js";
9
+
10
+ class IntersectionTypePropertyResult extends Union {
11
+ constructor(tag, fields) {
12
+ super();
13
+ this.tag = tag;
14
+ this.fields = fields;
15
+ }
16
+ cases() {
17
+ return ["Single", "ForceAny"];
18
+ }
19
+ }
20
+
21
+ function IntersectionTypePropertyResult_$reflection() {
22
+ return union_type("Glutinum.Converter.Reader.TypeNode.IntersectionTypePropertyResult", [], IntersectionTypePropertyResult, () => [[["Item", class_type("TypeScript.Ts.Declaration")]], []]);
23
+ }
6
24
 
7
25
  export function readTypeNode(reader, typeNode) {
8
- const checker = reader["Glutinum.Converter.Reader.Types.TypeScriptReader.get_checker"]();
26
+ const checker = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]();
9
27
  const matchValue = typeNode.kind | 0;
10
28
  switch (matchValue) {
11
29
  case 106:
@@ -18,10 +36,14 @@ export function readTypeNode(reader, typeNode) {
18
36
  return new GlueType(3, [new GluePrimitive(3, [])]);
19
37
  case 150:
20
38
  return new GlueType(3, [new GluePrimitive(5, [])]);
39
+ case 151:
40
+ return new GlueType(3, [new GluePrimitive(9, [])]);
21
41
  case 154:
22
42
  return new GlueType(3, [new GluePrimitive(0, [])]);
23
43
  case 157:
24
44
  return new GlueType(3, [new GluePrimitive(8, [])]);
45
+ case 159:
46
+ return new GlueType(23, []);
25
47
  case 182:
26
48
  return new GlueType(3, [new GluePrimitive(3, [])]);
27
49
  case 183: {
@@ -33,7 +55,7 @@ export function readTypeNode(reader, typeNode) {
33
55
  fullName = checker.getFullyQualifiedName(symbol);
34
56
  }
35
57
  else {
36
- throw new Error("readTypeNode: Missing symbol");
58
+ throw new Error(generateReaderError("type node", "Missing symbol", typeReferenceNode));
37
59
  }
38
60
  switch (fullName) {
39
61
  case "Exclude": {
@@ -71,7 +93,7 @@ export function readTypeNode(reader, typeNode) {
71
93
  const originalType = value_2(patternInput[1].declarations)[0].parent;
72
94
  if (originalType.kind === 264) {
73
95
  const interfaceDeclaration = originalType;
74
- const members = map((declaration) => reader["Glutinum.Converter.Reader.Types.TypeScriptReader.ReadNamedDeclaration2A58F896"](declaration), toList(interfaceDeclaration.members));
96
+ const members = map((declaration) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](declaration), toList(interfaceDeclaration.members));
75
97
  return new GlueType(14, [new GlueInterface(interfaceDeclaration.name.getText(), members, empty())]);
76
98
  }
77
99
  else {
@@ -92,7 +114,7 @@ export function readTypeNode(reader, typeNode) {
92
114
  else {
93
115
  let typeArguments_1;
94
116
  const matchValue_5 = typeReferenceNode.typeArguments;
95
- typeArguments_1 = ((matchValue_5 != null) ? map((arg) => reader["Glutinum.Converter.Reader.Types.TypeScriptReader.ReadTypeNodeZ64B23DD2"](arg), toList(matchValue_5)) : empty());
117
+ typeArguments_1 = ((matchValue_5 != null) ? map((arg) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](arg), toList(matchValue_5)) : empty());
96
118
  return new GlueType(13, [new GlueTypeReference(typeReferenceNode.typeName.getText(), fullName, typeArguments_1)]);
97
119
  }
98
120
  }
@@ -100,27 +122,138 @@ export function readTypeNode(reader, typeNode) {
100
122
  }
101
123
  case 184: {
102
124
  const functionTypeNode = typeNode;
103
- return new GlueType(16, [new GlueFunctionType(reader["Glutinum.Converter.Reader.Types.TypeScriptReader.ReadTypeNode24A678AD"](functionTypeNode.type), reader["Glutinum.Converter.Reader.Types.TypeScriptReader.ReadParametersZ17143B5B"](functionTypeNode.parameters))]);
125
+ return new GlueType(16, [new GlueFunctionType(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](functionTypeNode.type), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](functionTypeNode.parameters))]);
104
126
  }
105
127
  case 186: {
106
128
  const typeNodeQuery = typeNode;
107
- const typ_3 = checker.getTypeAtLocation(typeNodeQuery);
108
- const matchValue_6 = typ_3.symbol.flags | 0;
109
- if ($007CHasSymbolFlags$007C_$007C(32, matchValue_6) != null) {
110
- return new GlueType(12, [new GlueClassDeclaration(typ_3.symbol.name, empty(), empty(), empty())]);
129
+ const typ_3 = checker.getTypeAtLocation(typeNodeQuery.exprName);
130
+ const matchValue_6 = typ_3.flags | 0;
131
+ if ($007CHasTypeFlags$007C_$007C(524288, matchValue_6) != null) {
132
+ const matchValue_7 = typ_3.symbol.declarations;
133
+ if (matchValue_7 == null) {
134
+ return new GlueType(3, [new GluePrimitive(6, [])]);
135
+ }
136
+ else {
137
+ const declarations = matchValue_7;
138
+ const declaration_1 = declarations[0];
139
+ if (declaration_1.kind === 263) {
140
+ return new GlueType(12, [new GlueClassDeclaration(typ_3.symbol.name, empty(), empty(), empty())]);
141
+ }
142
+ else {
143
+ return reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](declaration_1);
144
+ }
145
+ }
146
+ }
147
+ else if ($007CHasTypeFlags$007C_$007C(4, matchValue_6) != null) {
148
+ return new GlueType(3, [new GluePrimitive(0, [])]);
149
+ }
150
+ else if ($007CHasTypeFlags$007C_$007C(8, matchValue_6) != null) {
151
+ return new GlueType(3, [new GluePrimitive(5, [])]);
152
+ }
153
+ else if ($007CHasTypeFlags$007C_$007C(16, matchValue_6) != null) {
154
+ return new GlueType(3, [new GluePrimitive(3, [])]);
155
+ }
156
+ else if ($007CHasTypeFlags$007C_$007C(1, matchValue_6) != null) {
157
+ return new GlueType(3, [new GluePrimitive(6, [])]);
158
+ }
159
+ else if ($007CHasTypeFlags$007C_$007C(16384, matchValue_6) != null) {
160
+ return new GlueType(3, [new GluePrimitive(4, [])]);
111
161
  }
112
162
  else {
113
163
  return new GlueType(3, [new GluePrimitive(6, [])]);
114
164
  }
115
165
  }
166
+ case 187: {
167
+ const typeLiteralNode = typeNode;
168
+ return new GlueType(21, [new GlueTypeLiteral(map((declaration_4) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](declaration_4), toList(typeLiteralNode.members)))]);
169
+ }
116
170
  case 188: {
117
171
  const arrayTypeNode = typeNode;
118
- return new GlueType(15, [reader["Glutinum.Converter.Reader.Types.TypeScriptReader.ReadTypeNode24A678AD"](arrayTypeNode.elementType)]);
172
+ return new GlueType(15, [reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](arrayTypeNode.elementType)]);
173
+ }
174
+ case 189: {
175
+ const tupleTypeNode = typeNode;
176
+ return new GlueType(19, [map((element) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](element), toList(tupleTypeNode.elements))]);
177
+ }
178
+ case 190: {
179
+ const optionalTypeNode = typeNode;
180
+ return new GlueType(22, [reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](optionalTypeNode.type)]);
119
181
  }
120
182
  case 192:
121
- return reader["Glutinum.Converter.Reader.Types.TypeScriptReader.ReadUnionTypeNodeZ5A082EC2"](typeNode);
122
- default:
123
- throw new Error(`readTypeNode: Unsupported kind ${typeNode.kind}`);
183
+ return reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadUnionTypeNodeZ5A082EC2"](typeNode);
184
+ case 193: {
185
+ const intersectionTypeNode = typeNode;
186
+ const unionOrIntersectionType = checker.getTypeAtLocation(intersectionTypeNode);
187
+ const properties = choose((property) => {
188
+ const matchValue_10 = property.declarations;
189
+ if (matchValue_10 == null) {
190
+ throw new Error(generateReaderError("type node", "Missing declarations", typeNode));
191
+ }
192
+ else {
193
+ const declarations_1 = matchValue_10;
194
+ if (declarations_1.length === 1) {
195
+ return new IntersectionTypePropertyResult(0, [declarations_1[0]]);
196
+ }
197
+ else {
198
+ return new IntersectionTypePropertyResult(1, []);
199
+ }
200
+ }
201
+ }, toList(unionOrIntersectionType.getProperties()));
202
+ if (exists((property_1) => {
203
+ if (property_1.tag === 0) {
204
+ if (property_1.fields[0].kind === 174) {
205
+ return true;
206
+ }
207
+ else {
208
+ return false;
209
+ }
210
+ }
211
+ else {
212
+ return true;
213
+ }
214
+ }, properties)) {
215
+ return new GlueType(3, [new GluePrimitive(6, [])]);
216
+ }
217
+ else {
218
+ return new GlueType(20, [choose((_arg) => {
219
+ if (_arg.tag === 1) {
220
+ throw new Error("Sould not happen here");
221
+ }
222
+ else {
223
+ return reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](_arg.fields[0]);
224
+ }
225
+ }, properties)]);
226
+ }
227
+ }
228
+ case 196: {
229
+ const parenthesizedTypeNode = typeNode;
230
+ return reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](parenthesizedTypeNode.type);
231
+ }
232
+ case 197: {
233
+ const thisTypeNode = typeNode;
234
+ const typ_4 = checker.getTypeAtLocation(thisTypeNode);
235
+ return new GlueType(18, [typ_4.symbol.name]);
236
+ }
237
+ case 198: {
238
+ const typeOperatorNode = typeNode;
239
+ return reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeOperatorNodeZ6830FC33"](typeOperatorNode);
240
+ }
241
+ case 201: {
242
+ const literalTypeNode = typeNode;
243
+ const matchValue_9 = tryReadLiteral(literalTypeNode.literal);
244
+ if (matchValue_9 == null) {
245
+ throw new Error(generateReaderError("type node - literal type", "Could not read literal type", typeNode));
246
+ }
247
+ else {
248
+ return new GlueType(8, [matchValue_9]);
249
+ }
250
+ }
251
+ default: {
252
+ const item = generateReaderError("type node", toText(interpolate("Unsupported kind %A%P()", [typeNode.kind])), typeNode);
253
+ const objectArg = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
254
+ void (objectArg.push(item));
255
+ return new GlueType(3, [new GluePrimitive(6, [])]);
256
+ }
124
257
  }
125
258
  }
126
259
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeNode.fs"],"names":["checker","reader","matchValue","typeNode","typeReferenceNode","symbolOpt","fullName","symbol","typ","literalType","aliasTypeArguments","patternInput","originalType","interfaceDeclaration","members","declaration","typeArguments","functionTypeNode","typeNodeQuery","arrayTypeNode"],"mappings":";;;;;;;AAUQA,oBAAU,AAAAC;AAERC,uBAAA,AAAAC;YAAAD;aAAA;AAMyB,mBAAA,iBAAmB;aAN5C;AAGyB,mBAAA,iBAAmB;aAH5C;AAKwB,mBAAA,iBAAmB;aAL3C;AAI4B,mBAAA,iBAAmB;aAJ/C;AAC2B,mBAAA,iBAAmB;aAD9C;AAE2B,mBAAA,iBAAmB;aAF9C;AAQF,mBAAA,iBAAmB;aARjB;AAuI2B,mBAAA,iBAAmB;aAvI9C;AAaEE,sCAAoBD;AAEpBE,8BAAY,AAAAL,4BAA8B,AAAAI;AAE1CE;AACM,gBAAA,AAAAD;AAECE,\u002BBAAUF;AAAA,AAHjBC,2BAGiB,AAAAN,8BAA8BO;;;AADrC,gCAAS;;oBAKpBD;qBAAW;AACNE,gCACA,AAAAR,4BAA4BI;AAgCN,2BAAA,iBAAjB,kBA1BF;AACOF,6CAAA,AAAAM;AACJ,4BADI,AACJ,6BAAa,KADTN;AAEEO,gDAAcD;AAIU,mCAAA,iBAA5B,oBAF0B,AAAAC;;6BAG5B,IAPI,AAOJ,6BAAa,KAPTP;AAQEO,kDAAcD;AAaT,mCAAA,iBAVL,AACI,qBACI,AAAAC,wBAEJ,oBAA2B,AAAAA,0BAE3B,oBACiB,AAAAA;;;AAItB,mCAAA;;uBAxBR,OADH,AAAAD;;qBA8BW;AACXA,kCAAM,AAAAR,4BAA4BI;AAOhCF,yCAAA,AAAAM;AAAA,wBAAA,AAAAN;AAECQ,mDACHR;AAAA,4BAAG,AAAAQ,8BAA4B;AAC3B,mCAAA;;;AAEIH,6CAAS,AAAAG,mBAAoB;AAEjC,gCAAG,AAAAH;AACC,uCAAA;;;AAIII,qDACmC,KAAnC,QAAA,AAAAJ;AAEAK,qDACA,QAAA,AAJA,AAAAD,8BAI6B;AAE3B,oCAAA,AAAAC,sBAAA;AAEEC,iEACAD;AAEAE,oDAGG,qBAAS,AAAAb,wFAAAc,cADT,OADH,AAAAF;AAUD,2CAAA,kBANF,kBACU,AAAAA,qCACGC,SACO;;;AAKlB,2CAAA;;;;;;AApCT,\u002BBAAA;;;;AAwCJZ,yCAAA,QAAAG;AACJ,wBADI,AACJ,\u002BBAAe,QADXH;AAEsB,\u002BBAAA,kBAAxB,QAAAG;;;AAEIW;AACMd,6CAAA,AAAAE;AAAA,AADNY,2CACM,CAAA,AAAAd,wBAKC,aAAkB,AAAAD,uFADlB,OADHC,iBAFM;AAWX,\u002BBAAA,kBALF,sBACU,AAAAE,sCACIE,UACKU;;;;;aA5H1B;AA0IEC,qCAAmBd;AAMpB,mBAAA,kBAJH,qBACW,AAAAF,gFAAoB,AAAAgB,wBACd,AAAAhB,mFAAsB,AAAAgB;;aA9IrC;AAmJEC,kCAAgBf;AAEhBK,0BAAM,AAAAR,0BAA0BkB;AAE9BhB,iCAAA,AAAAM;AACJ,gBADI,AACJ,\u002BBAAe,IADXN;AAQC,uBAAA,kBANH,yBACW,AAAAM,mBACQ,SACL,SACO;;;AAGlB,uBAAA,iBAAmB;;;aAhKxB;AAiIEW,kCAAgBhB;AAIpB,mBAAA,kBAFkB,AAAAF,gFAAoB,AAAAkB;;aAnIpC;AAUF,mBAAA,AAAAlB,sFAAyBE;;AAwJtB,4BAAS,kCAAkC,AAAAA","file":null,"sourcesContent":null,"sourceRoot":null}
1
+ {"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeNode.fs"],"names":["checker","reader","matchValue","typeNode","typeReferenceNode","symbolOpt","fullName","symbol","typ","literalType","aliasTypeArguments","patternInput","originalType","interfaceDeclaration","members","declaration","typeArguments","functionTypeNode","typeNodeQuery","declarations","typeLiteralNode","arrayTypeNode","tupleTypeNode","element","optionalTypeNode","intersectionTypeNode","unionOrIntersectionType","properties","property","_arg1","parenthesizedTypeNode","thisTypeNode","typeOperatorNode","literalTypeNode","item","objectArg"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAkBQA,oBAAU,AAAAC;AAERC,uBAAA,AAAAC;YAAAD;aAAA;AAMyB,mBAAA,iBAAmB;aAN5C;AAGyB,mBAAA,iBAAmB;aAH5C;AAKwB,mBAAA,iBAAmB;aAL3C;AAI4B,mBAAA,iBAAmB;aAJ/C;AAC2B,mBAAA,iBAAmB;aAD9C;AA8S2B,mBAAA,iBAAmB;aA9S9C;AAE2B,mBAAA,iBAAmB;aAF9C;AAQF,mBAAA,iBAAmB;aARjB;AA4S4B,mBAAA;aA5S5B;AA4I2B,mBAAA,iBAAmB;aA5I9C;AAaEE,sCAAoBD;AAEpBE,8BAAY,AAAAL,4BAA8B,AAAAI;AAE1CE;AACM,gBAAA,AAAAD;AAOCE,\u002BBAAUF;AAAA,AARjBC,2BAQiB,AAAAN,8BAA8BO;;;AADxC,gCAJH,oBACI,aACA,kBACAH;;oBAMTE;qBAAW;AACNE,gCACA,AAAAR,4BAA4BI;AAgCN,2BAAA,iBAAjB,kBA1BF;AACOF,6CAAA,AAAAM;AACJ,4BADI,AACJ,6BAAa,KADTN;AAEEO,gDAAcD;AAIU,mCAAA,iBAA5B,oBAF0B,AAAAC;;6BAG5B,IAPI,AAOJ,6BAAa,KAPTP;AAQEO,kDAAcD;AAaT,mCAAA,iBAVL,AACI,qBACI,AAAAC,wBAEJ,oBAA2B,AAAAA,0BAE3B,oBACiB,AAAAA;;;AAItB,mCAAA;;uBAxBR,OADH,AAAAD;;qBA8BW;AACXA,kCAAM,AAAAR,4BAA4BI;AAOhCF,yCAAA,AAAAM;AAAA,wBAAA,AAAAN;AAECQ,mDACHR;AAAA,4BAAG,AAAAQ,8BAA4B;AAC3B,mCAAA;;;AAEIH,6CAAS,AAAAG,mBAAoB;AAEjC,gCAAG,AAAAH;AACC,uCAAA;;;AAIII,qDACmC,KAAnC,QAAA,AAAAJ;AAEAK,qDACA,QAAA,AAJA,AAAAD,8BAI6B;AAE3B,oCAAA,AAAAC,sBAAA;AAEEC,iEACAD;AAEAE,oDAGG,qBAAS,AAAAb,oFAAAc,cADT,OADH,AAAAF;AAUD,2CAAA,kBANF,kBACU,AAAAA,qCACGC,SACO;;;AAKlB,2CAAA;;;;;;AApCT,\u002BBAAA;;;;AAwCJZ,yCAAA,QAAAG;AACJ,wBADI,AACJ,\u002BBAAe,QADXH;AAEsB,\u002BBAAA,kBAAxB,QAAAG;;;AAEIW;AACMd,6CAAA,AAAAE;AAAA,AADNY,2CACM,CAAA,AAAAd,wBAKC,aAAkB,AAAAD,wFADlB,OADHC,iBAFM;AAWX,\u002BBAAA,kBALF,sBACU,AAAAE,sCACIE,UACKU;;;;;aAjI1B;AA\u002BIEC,qCAAmBd;AAMpB,mBAAA,kBAJH,qBACW,AAAAF,iFAAoB,AAAAgB,wBACd,AAAAhB,oFAAsB,AAAAgB;;aAnJrC;AAwJEC,kCAAgBf;AAEhBK,0BAAM,AAAAR,0BAA4B,AAAAkB;AAEhChB,iCAAA,AAAAM;AACJ,gBADI,AACJ,6BAAa,QADTN;AAGIA,qCAAA,AAAAM;AAAA,oBAAA,AAAAN;AAeI,2BAAA,iBAAmB;;;AAdtBiB,yCACCjB;AAAAa,0CAAc,AAAAI,aAAc;AAE1B,wBAAA,AAAAJ,uBAAA;AAQC,\u002BBAAA,kBANH,yBACW,AAAAP,mBACQ,SACL,SACO;;;AAGlB,\u002BBAAA,AAAAP,6EAAgBc;;;;iBAG7B,IAnBI,AAmBJ,6BAAa,GAnBTb;AAoBF,uBAAA,iBAAmB;;iBACrB,IArBI,AAqBJ,6BAAa,GArBTA;AAsBF,uBAAA,iBAAmB;;iBACrB,IAvBI,AAuBJ,6BAAa,IAvBTA;AAwBF,uBAAA,iBAAmB;;iBACrB,IAzBI,AAyBJ,6BAAa,GAzBTA;AAyB6B,uBAAA,iBAAmB;;iBACpD,IA1BI,AA0BJ,6BAAa,OA1BTA;AA2BF,uBAAA,iBAAmB;;;AAChB,uBAAA,iBAAmB;;;aAxLxB;AAoREkB,oCAAkBjB;AAOsB,mBAAA,kBAA3C,oBAFM,uBAAS,AAAAF,oFAAAc,gBADT,OADH,AAAAK;;aAvRF;AAsIEC,kCAAgBlB;AAIpB,mBAAA,kBAFkB,AAAAF,iFAAoB,AAAAoB;;aAxIpC;AAsNEC,kCAAgBnB;AAQjB,mBAAA,kBAJA,iBAEC,AAAAF,iFADiCsB,UAFlC,OADH,AAAAD;;aAxNE;AAmSEE,qCAAmBrB;AAE0B,mBAAA,kBAAjD,AAAAF,iFAAoB,AAAAuB;;aArSlB;AAUF,mBAAA,AAAAvB,uFAAyBE;aAVvB;AAiOEsB,yCAAuBtB;AAEvBuB,4CACA,AAAA1B,0BAA0ByB;AAG1BE,\u002BBAGG;AACOzB,sCAAA,AAAA0B;AAAA,oBAAA,AAAA1B;AAOF,oCACI,oBACI,aACA,wBACAC;;;AAVLgB,2CACHjB;AAAA,wBAAG,AAAAiB,0BAAqB;AACf,\u002BBAAA,uCAAO,AAAAA,eAAc;;;AAErB,\u002BBAAA;;;eAPd,OADH,AAAAO;AAgCJ,gBATO;AACO,oBAAA,AAAAE;AAGI,wBAAA,AAAAA,8BAAA;\u002BBAC\u002BB;;;\u002BBAC9B;;;;2BAJG;;eAHlBD;AAWA,uBAAA,iBAAmB;;;AAQhB,uBAAA,kBALA;AACC,wBAAA,AAAAE;AAEc,wCAAS;;;AADM,\u002BBAAA,AAAA5B,oFAAL,AAAA4B;;mBAH5BF;;;aA3QF;AA8REG,0CAAwB3B;AAE5B,mBAAA,AAAAF,iFAAoB,AAAA6B;;aAhSlB;AA2MEC,iCAAe5B;AAMfK,0BAAM,AAAAR,0BAA0B\u002BB;AAEpC,mBAAA,kBAAkB,AAAAvB;;aAnNhB;AAwSEwB,qCAAmB7B;AAEvB,mBAAA,AAAAF,0FAA4B\u002BB;;aA1S1B;AA2LEC,oCAAkB9B;AAKhBD,iCAAA,eAF0B,AAAA\u002BB;AAE1B,gBAAA,AAAA/B;AAGF,gCACI,oBACI,4BACA,\u002BBACAC;;;AANM,uBAAA,iBAAAD;;;;AAoHfgC,yBAJH,oBACI,aACA,OAAA,YAAA,4BAAsB,AAAA/B,kBACtBA;AACDgC,8BAAA,AAAAlC;AAAA,kBAAAkC,eAAAD;AAEH,mBAAA,iBAAmB","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -1,33 +1,42 @@
1
1
  import typescript from "typescript";
2
- import { GlueType } from "../GlueAST.js";
2
+ import { generateReaderError } from "./Utils.js";
3
+ import { GluePrimitive, GlueType } from "../GlueAST.js";
4
+ import { interpolate, toText } from "../../fable_modules/fable-library-js.4.14.0/String.js";
3
5
 
4
6
  export function readTypeOperatorNode(reader, node) {
5
- if (node.operator === 143) {
6
- if (typescript.isTypeReferenceNode(node.type)) {
7
- const typeReferenceNode = node.type;
8
- const symbolOpt = reader["Glutinum.Converter.Reader.Types.TypeScriptReader.get_checker"]().getSymbolAtLocation(typeReferenceNode.typeName);
9
- if (symbolOpt != null) {
10
- const symbol = symbolOpt;
11
- const matchValue_1 = symbol.declarations;
12
- if (matchValue_1 == null) {
13
- throw new Error("readTypeOperator: Missing declaration");
7
+ const matchValue = node.operator | 0;
8
+ switch (matchValue) {
9
+ case 143:
10
+ if (typescript.isTypeReferenceNode(node.type)) {
11
+ const typeReferenceNode = node.type;
12
+ const symbolOpt = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getSymbolAtLocation(typeReferenceNode.typeName);
13
+ if (symbolOpt != null) {
14
+ const symbol = symbolOpt;
15
+ const matchValue_1 = symbol.declarations;
16
+ if (matchValue_1 == null) {
17
+ throw new Error(generateReaderError("type operator (keyof)", "Missing declarations", node));
18
+ }
19
+ else {
20
+ const declarations = matchValue_1;
21
+ const interfaceDeclaration = declarations[0];
22
+ return new GlueType(9, [reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadInterfaceDeclaration1CB6FA10"](interfaceDeclaration)]);
23
+ }
14
24
  }
15
25
  else {
16
- const declarations = matchValue_1;
17
- const interfaceDeclaration = declarations[0];
18
- return new GlueType(9, [reader["Glutinum.Converter.Reader.Types.TypeScriptReader.ReadInterfaceDeclaration1CB6FA10"](interfaceDeclaration)]);
26
+ throw new Error(generateReaderError("type operator (keyof)", "Missing symbol", node));
19
27
  }
20
28
  }
21
29
  else {
22
- throw new Error("readTypeOperator: Missing symbol");
30
+ throw new Error(generateReaderError("type operator (keyof)", toText(interpolate("Was expecting a type reference instead got a Node of type %A%P()", [node.type.kind])), node));
23
31
  }
32
+ case 148:
33
+ return reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](node.type);
34
+ default: {
35
+ const item = generateReaderError("type operator", toText(interpolate("Unsupported operator %A%P()", [node.operator])), node);
36
+ const objectArg = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
37
+ void (objectArg.push(item));
38
+ return new GlueType(3, [new GluePrimitive(6, [])]);
24
39
  }
25
- else {
26
- throw new Error("readTypeOperator: Unsupported type reference");
27
- }
28
- }
29
- else {
30
- throw new Error(`readTypeOperator: Unsupported operator ${node.operator}`);
31
40
  }
32
41
  }
33
42
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeOperatorNode.fs"],"names":["node","typeReferenceNode","symbolOpt","reader","symbol","matchValue","declarations","interfaceDeclaration"],"mappings":";;;;AAYU,QAAA,AAAAA,kBAAA;AAEF,YAAG,\u002BBAAuB,AAAAA;AAClBC,sCAAoB,AAAAD;AAGpBE,8BACA,AAAAC,6FAAqC,AAAAF;AAEnC,gBAAA,AAAAC;AAGCE,\u002BBACGF;AAAAG,qCAAA,AAAAD;AAAA,oBAAA,AAAAC;AAQI,oCAAS;;;AAPZC,yCACCD;AAAAE,iDACA,AAAAD,aAAa;AAGd,2BAAA,iBADH,AAAAH,4FAAgCI;;;;AAR9B,gCAAS;;;;AAcnB,4BAAS;;;;AAEV,wBAAS,0CAA0C,AAAAP","file":null,"sourcesContent":null,"sourceRoot":null}
1
+ {"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeOperatorNode.fs"],"names":["matchValue","node","typeReferenceNode","symbolOpt","reader","symbol","declarations","interfaceDeclaration","item","objectArg"],"mappings":";;;;;;AAYUA,uBAAA,AAAAC;YAAAD;aAAA;AAEF,gBAAG,\u002BBAAuB,AAAAC;AAClBC,0CAAoB,AAAAD;AAGpBE,kCACA,AAAAC,8FAAqC,AAAAF;AAEnC,oBAAA,AAAAC;AAQCE,mCACGF;AAAAH,yCAAA,AAAAK;AAAA,wBAAA,AAAAL;AAaC,wCAJH,oBACI,yBACA,wBACAC;;;AAXDK,6CACCN;AAAAO,qDACA,AAAAD,aAAa;AAGd,\u002BBAAA,iBADH,AAAAF,6FAAgCG;;;;AARjC,oCAJH,oBACI,yBACA,kBACAN;;;;AAwBL,gCAJH,oBACI,yBACA,OAAA,YAAA,qEAA\u002BD,AAAAA,mBAC/DA;;aArCN;AAwC6B,mBAAA,AAAAG,iFAAoB,AAAAH;;AAOhDO,yBAJH,oBACI,iBACA,OAAA,YAAA,gCAA0B,AAAAP,kBAC1BA;AACDQ,8BAAA,AAAAL;AAAA,kBAAAK,eAAAD;AAEH,mBAAA,iBAAmB","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -1,6 +1,6 @@
1
- import { empty, map } from "../../fable_modules/fable-library.4.5.0/List.js";
1
+ import { empty, map } from "../../fable_modules/fable-library-js.4.14.0/List.js";
2
2
  import { GlueTypeParameter } from "../GlueAST.js";
3
- import { toList } from "../../fable_modules/fable-library.4.5.0/Seq.js";
3
+ import { toList } from "../../fable_modules/fable-library-js.4.14.0/Seq.js";
4
4
 
5
5
  export function readTypeParameters(reader, typeParameters) {
6
6
  if (typeParameters != null) {
@@ -1,6 +1,6 @@
1
1
  import { readClassDeclaration } from "./ClassDeclaration.js";
2
- import { GluePrimitive, GlueType } from "../GlueAST.js";
3
2
  import { readEnumDeclaration } from "./EnumDeclaration.js";
3
+ import { GluePrimitive, GlueType } from "../GlueAST.js";
4
4
  import { readFunctionDeclaration } from "./FunctionDeclaration.js";
5
5
  import { readInterfaceDeclaration } from "./InterfaceDeclaration.js";
6
6
  import { readModuleDeclaration } from "./ModuleDeclaration.js";
@@ -8,88 +8,113 @@ import { readNode } from "./Node.js";
8
8
  import { readTypeAliasDeclaration } from "./TypeAliasDeclaration.js";
9
9
  import { readTypeNode } from "./TypeNode.js";
10
10
  import { readVariableStatement } from "./VariableStatement.js";
11
- import { readNamedDeclaration } from "./NamedDeclaration.js";
11
+ import { readDeclaration } from "./Declaration.js";
12
12
  import { readParameters } from "./Parameters.js";
13
13
  import { readUnionTypeNode } from "./UnionTypeNode.js";
14
14
  import { readTypeOperatorNode } from "./TypeOperatorNode.js";
15
15
  import { readIndexedAccessType } from "./IndexedAccessType.js";
16
16
  import { readTypeParameters } from "./TypeParameters.js";
17
- import { TypeScriptReader } from "./Types.js";
17
+ import { readExportAssignment } from "./ExportAssignment.js";
18
+ import { readDocumentationForNode, readDocumentationForSignature } from "./Documentation.js";
19
+ import { class_type } from "../../fable_modules/fable-library-js.4.14.0/Reflection.js";
20
+
21
+ export class TypeScriptReader {
22
+ constructor(checker) {
23
+ this["checker@24"] = checker;
24
+ this.warnings = [];
25
+ }
26
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"() {
27
+ const _ = this;
28
+ return _["checker@24"];
29
+ }
30
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"() {
31
+ const _ = this;
32
+ return _.warnings;
33
+ }
34
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadClassDeclarationZ4558F325"(classDeclaration) {
35
+ const this$ = this;
36
+ return readClassDeclaration(this$, classDeclaration);
37
+ }
38
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadEnumDeclaration49F76106"(enumDeclaration) {
39
+ const this$ = this;
40
+ return new GlueType(4, [readEnumDeclaration(this$, enumDeclaration)]);
41
+ }
42
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadFunctionDeclarationZ72EBD329"(functionDeclaration) {
43
+ const this$ = this;
44
+ return new GlueType(6, [readFunctionDeclaration(this$, functionDeclaration)]);
45
+ }
46
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadInterfaceDeclaration1CB6FA10"(interfaceDeclaration) {
47
+ const this$ = this;
48
+ return new GlueType(1, [readInterfaceDeclaration(this$, interfaceDeclaration)]);
49
+ }
50
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadModuleDeclarationC29C54F"(moduleDeclaration) {
51
+ const this$ = this;
52
+ return new GlueType(11, [readModuleDeclaration(this$, moduleDeclaration)]);
53
+ }
54
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"(node) {
55
+ const this$ = this;
56
+ return readNode(this$, node);
57
+ }
58
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeAliasDeclarationZ7FA16745"(typeAliasDeclaration) {
59
+ const this$ = this;
60
+ return readTypeAliasDeclaration(this$, typeAliasDeclaration);
61
+ }
62
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"(typNode) {
63
+ const this$ = this;
64
+ return this$["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](typNode);
65
+ }
66
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"(typNode) {
67
+ const this$ = this;
68
+ return (typNode == null) ? (new GlueType(3, [new GluePrimitive(4, [])])) : readTypeNode(this$, typNode);
69
+ }
70
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadVariableStatementZ66C4BA0A"(variableStatement) {
71
+ const this$ = this;
72
+ return readVariableStatement(this$, variableStatement);
73
+ }
74
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"(declaration) {
75
+ const this$ = this;
76
+ return readDeclaration(this$, declaration);
77
+ }
78
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"(parameters) {
79
+ const this$ = this;
80
+ return readParameters(this$, parameters);
81
+ }
82
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadUnionTypeNodeZ5A082EC2"(unionType) {
83
+ const this$ = this;
84
+ return readUnionTypeNode(this$, unionType);
85
+ }
86
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeOperatorNodeZ6830FC33"(node) {
87
+ const this$ = this;
88
+ return readTypeOperatorNode(this$, node);
89
+ }
90
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadIndexedAccessTypeZ5577BC0A"(declaration) {
91
+ const this$ = this;
92
+ return readIndexedAccessType(this$, declaration);
93
+ }
94
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"(typeParametersOpt) {
95
+ const this$ = this;
96
+ return readTypeParameters(this$, typeParametersOpt);
97
+ }
98
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadExportAssignmentZ3497D0FE"(exportAssignment) {
99
+ const this$ = this;
100
+ return readExportAssignment(this$, exportAssignment);
101
+ }
102
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromSignature61B89E55"(declaration) {
103
+ const this$ = this;
104
+ return readDocumentationForSignature(this$, declaration);
105
+ }
106
+ "Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"(node) {
107
+ const this$ = this;
108
+ return readDocumentationForNode(this$, node);
109
+ }
110
+ }
111
+
112
+ export function TypeScriptReader_$reflection() {
113
+ return class_type("Glutinum.Converter.Reader.TypeScriptReader.TypeScriptReader", void 0, TypeScriptReader);
114
+ }
18
115
 
19
- export function typeScriptReader(checker) {
20
- return new (class extends TypeScriptReader {
21
- constructor() {
22
- super(checker);
23
- }
24
- "Glutinum.Converter.Reader.Types.TypeScriptReader.get_checker"() {
25
- return checker;
26
- }
27
- "Glutinum.Converter.Reader.Types.TypeScriptReader.ReadClassDeclarationZ4558F325"(classDeclaration) {
28
- const this$ = this;
29
- return new GlueType(12, [readClassDeclaration(this$, classDeclaration)]);
30
- }
31
- "Glutinum.Converter.Reader.Types.TypeScriptReader.ReadEnumDeclaration49F76106"(enumDeclaration) {
32
- const this$_1 = this;
33
- return new GlueType(4, [readEnumDeclaration(this$_1, enumDeclaration)]);
34
- }
35
- "Glutinum.Converter.Reader.Types.TypeScriptReader.ReadFunctionDeclarationZ72EBD329"(functionDeclaration) {
36
- const this$_2 = this;
37
- return new GlueType(6, [readFunctionDeclaration(this$_2, functionDeclaration)]);
38
- }
39
- "Glutinum.Converter.Reader.Types.TypeScriptReader.ReadInterfaceDeclaration1CB6FA10"(interfaceDeclaration) {
40
- const this$_3 = this;
41
- return new GlueType(1, [readInterfaceDeclaration(this$_3, interfaceDeclaration)]);
42
- }
43
- "Glutinum.Converter.Reader.Types.TypeScriptReader.ReadModuleDeclarationC29C54F"(moduleDeclaration) {
44
- const this$_4 = this;
45
- return new GlueType(11, [readModuleDeclaration(this$_4, moduleDeclaration)]);
46
- }
47
- "Glutinum.Converter.Reader.Types.TypeScriptReader.ReadNode6C0FD055"(node) {
48
- const this$_5 = this;
49
- return readNode(this$_5, node);
50
- }
51
- "Glutinum.Converter.Reader.Types.TypeScriptReader.ReadTypeAliasDeclarationZ7FA16745"(typeAliasDeclaration) {
52
- const this$_6 = this;
53
- return readTypeAliasDeclaration(this$_6, typeAliasDeclaration);
54
- }
55
- "Glutinum.Converter.Reader.Types.TypeScriptReader.ReadTypeNode24A678AD"(typNode) {
56
- const this$_7 = this;
57
- return this$_7["Glutinum.Converter.Reader.Types.TypeScriptReader.ReadTypeNodeZ64B23DD2"](typNode);
58
- }
59
- "Glutinum.Converter.Reader.Types.TypeScriptReader.ReadTypeNodeZ64B23DD2"(typNode_1) {
60
- const this$_8 = this;
61
- return (typNode_1 == null) ? (new GlueType(3, [new GluePrimitive(4, [])])) : readTypeNode(this$_8, typNode_1);
62
- }
63
- "Glutinum.Converter.Reader.Types.TypeScriptReader.ReadVariableStatementZ66C4BA0A"(variableStatement) {
64
- const this$_9 = this;
65
- return readVariableStatement(this$_9, variableStatement);
66
- }
67
- "Glutinum.Converter.Reader.Types.TypeScriptReader.ReadNamedDeclaration2A58F896"(declaration) {
68
- const this$_10 = this;
69
- return readNamedDeclaration(this$_10, declaration);
70
- }
71
- "Glutinum.Converter.Reader.Types.TypeScriptReader.ReadParametersZ17143B5B"(parameters) {
72
- const this$_11 = this;
73
- return readParameters(this$_11, parameters);
74
- }
75
- "Glutinum.Converter.Reader.Types.TypeScriptReader.ReadUnionTypeNodeZ5A082EC2"(unionType) {
76
- const this$_12 = this;
77
- return readUnionTypeNode(this$_12, unionType);
78
- }
79
- "Glutinum.Converter.Reader.Types.TypeScriptReader.ReadTypeOperatorNodeZ6830FC33"(node_1) {
80
- const this$_13 = this;
81
- return readTypeOperatorNode(this$_13, node_1);
82
- }
83
- "Glutinum.Converter.Reader.Types.TypeScriptReader.ReadIndexedAccessTypeZ5577BC0A"(declaration_1) {
84
- const this$_14 = this;
85
- return readIndexedAccessType(this$_14, declaration_1);
86
- }
87
- "Glutinum.Converter.Reader.Types.TypeScriptReader.ReadTypeParameters4088FB9E"(typeParametersOpt) {
88
- const this$_15 = this;
89
- return readTypeParameters(this$_15, typeParametersOpt);
90
- }
91
- }
92
- )();
116
+ export function TypeScriptReader_$ctor_Z51F60704(checker) {
117
+ return new TypeScriptReader(checker);
93
118
  }
94
119
 
95
120
  //# sourceMappingURL=TypeScriptReader.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeScriptReader.fs"],"names":["checker","this","classDeclaration","enumDeclaration","functionDeclaration","interfaceDeclaration","moduleDeclaration","node","typeAliasDeclaration","typNode","variableStatement","declaration","parameters","unionType","typeParametersOpt"],"mappings":";;;;;;;;;;;;;;;;;;;;;kBAsB2BA;;;mBACkBA;;;AAE9BC,0BAAAA;AAKA,mBAAA,kBADH,qBAAqBA,OAAKC;;;AAGvBD,4BAAAA;AAIyC,mBAAA,iBAA5C,oBAAoBA,SAAKE;;;AAEtBF,4BAAAA;AAKA,mBAAA,iBADH,wBAAwBA,SAAKG;;;AAG1BH,4BAAAA;AAKA,mBAAA,iBADH,yBAAyBA,SAAKI;;;AAG3BJ,4BAAAA;AAKA,mBAAA,kBADH,sBAAsBA,SAAKK;;;AAGxBL,4BAAAA;AAA0C,mBAAA,SAASA,SAAKM;;;AAExDN,4BAAAA;AAIH,mBAAA,yBAAyBA,SAAKO;;;AAE3BP,4BAAAA;AACH,mBAAA,AAAAA,kFAAuBQ;;;AAEpBR,4BAAAA;AACG,mBAAA,CAAA,AAAAQ,sBAEI,iBAAmB,8BADX,aAAaR,SAAbQ;;;AAGfR,4BAAAA;AAIH,mBAAA,sBAAsBA,SAAKS;;;AAExBT,6BAAAA;AAIH,mBAAA,qBAAqBA,UAAKU;;;AAEvBV,6BAAAA;AAIH,mBAAA,eAAeA,UAAKW;;;AAEjBX,6BAAAA;AACH,mBAAA,kBAAkBA,UAAKY;;;AAEpBZ,6BAAAA;AACH,mBAAA,qBAAqBA,UAAKM;;;AAEvBN,6BAAAA;AAIH,mBAAA,sBAAsBA,UAAKU;;;AAExBV,6BAAAA;AAIH,mBAAA,mBAAmBA,UAAKa","file":null,"sourcesContent":null,"sourceRoot":null}
1
+ {"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeScriptReader.fs"],"names":["checker","_","this","classDeclaration","enumDeclaration","functionDeclaration","interfaceDeclaration","moduleDeclaration","node","typeAliasDeclaration","typNode","variableStatement","declaration","parameters","unionType","typeParametersOpt","exportAssignment"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuBsB,6BAAAA;AAClB;;;AAIaC,kBAAAA;AAA4B,eAAA,AAAAA;;;AAE9BA,kBAAAA;AAAa,eAAA,AAAAA;;;AAEbC,sBAAAA;AAIH,eAAA,qBAAqBA,OAAKC;;;AAEvBD,sBAAAA;AAIyC,eAAA,iBAA5C,oBAAoBA,OAAKE;;;AAEtBF,sBAAAA;AAKA,eAAA,iBADH,wBAAwBA,OAAKG;;;AAG1BH,sBAAAA;AAKA,eAAA,iBADH,yBAAyBA,OAAKI;;;AAG3BJ,sBAAAA;AAKA,eAAA,kBADH,sBAAsBA,OAAKK;;;AAGxBL,sBAAAA;AAA0C,eAAA,SAASA,OAAKM;;;AAExDN,sBAAAA;AAIH,eAAA,yBAAyBA,OAAKO;;;AAE3BP,sBAAAA;AACH,eAAA,AAACA,iFAA6CQ;;;AAE3CR,sBAAAA;AACG,eAAA,CAAA,AAAAQ,oBAEI,iBAAmB,8BADX,aAAaR,OAAbQ;;;AAGfR,sBAAAA;AAIH,eAAA,sBAAsBA,OAAKS;;;AAExBT,sBAAAA;AACH,eAAA,gBAAgBA,OAAKU;;;AAElBV,sBAAAA;AAIH,eAAA,eAAeA,OAAKW;;;AAEjBX,sBAAAA;AACH,eAAA,kBAAkBA,OAAKY;;;AAEpBZ,sBAAAA;AACH,eAAA,qBAAqBA,OAAKM;;;AAEvBN,sBAAAA;AAIH,eAAA,sBAAsBA,OAAKU;;;AAExBV,sBAAAA;AAIH,eAAA,mBAAmBA,OAAKa;;;AAErBb,sBAAAA;AAIH,eAAA,qBAAqBA,OAAKc;;;AAEvBd,sBAAAA;AAIH,eAAA,8BAA8BA,OAAKU;;;AAEhCV,sBAAAA;AAIH,eAAA,yBAAyBA,OAAKM","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -1,12 +1,12 @@
1
1
  import typescript from "typescript";
2
- import { map, empty, singleton, choose, concat } from "../../fable_modules/fable-library.4.5.0/List.js";
3
- import { defaultArgWith } from "../../fable_modules/fable-library.4.5.0/Option.js";
4
- import { $007CHasTypeFlags$007C_$007C, tryReadLiteral } from "./Utils.js";
2
+ import { map, empty, singleton, choose, concat } from "../../fable_modules/fable-library-js.4.14.0/List.js";
3
+ import { defaultArgWith } from "../../fable_modules/fable-library-js.4.14.0/Option.js";
4
+ import { $007CHasTypeFlags$007C_$007C, generateReaderError, tryReadLiteral } from "./Utils.js";
5
5
  import { GlueTypeUnion, GlueTypeReference, GluePrimitive, GlueType } from "../GlueAST.js";
6
- import { toList } from "../../fable_modules/fable-library.4.5.0/Seq.js";
6
+ import { toList } from "../../fable_modules/fable-library-js.4.14.0/Seq.js";
7
7
 
8
8
  function readUnionTypeCases(reader, unionTypeNode) {
9
- const checker = reader["Glutinum.Converter.Reader.Types.TypeScriptReader.get_checker"]();
9
+ const checker = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]();
10
10
  const removeParenthesizedType = (node_mut) => {
11
11
  removeParenthesizedType:
12
12
  while (true) {
@@ -45,17 +45,17 @@ function readUnionTypeCases(reader, unionTypeNode) {
45
45
  else if (typescript.isTypeReferenceNode(node_1)) {
46
46
  const typeReferenceNode = node_1;
47
47
  const symbol = defaultArgWith(checker.getSymbolAtLocation(typeReferenceNode.typeName), () => {
48
- throw new Error("readUnionTypeCases: Unsupported type reference, missing symbol");
48
+ throw new Error(generateReaderError("union type cases", "Missing symbol", typeReferenceNode));
49
49
  });
50
50
  const matchValue_1 = symbol.declarations;
51
51
  if (matchValue_1 == null) {
52
52
  const typ = checker.getTypeOfSymbol(symbol);
53
- const matchValue_2 = typ.flags | 0;
54
- if ($007CHasTypeFlags$007C_$007C(1, matchValue_2) != null) {
53
+ const matchValue_3 = typ.flags | 0;
54
+ if ($007CHasTypeFlags$007C_$007C(1, matchValue_3) != null) {
55
55
  return singleton(new GlueType(3, [new GluePrimitive(6, [])]));
56
56
  }
57
57
  else {
58
- throw new Error("readUnionTypeCases: Unsupported type reference");
58
+ throw new Error(generateReaderError("union type cases", "Unsupported type reference reach a point where it was expected to have flags like Any", typeReferenceNode));
59
59
  }
60
60
  }
61
61
  else {
@@ -69,7 +69,13 @@ function readUnionTypeCases(reader, unionTypeNode) {
69
69
  }
70
70
  else {
71
71
  const declaration = declarations[0];
72
- return singleton(reader["Glutinum.Converter.Reader.Types.TypeScriptReader.ReadNode6C0FD055"](declaration));
72
+ if (declaration.kind === 265) {
73
+ return singleton(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](declaration));
74
+ }
75
+ else {
76
+ const fullName_1 = checker.getFullyQualifiedName(symbol);
77
+ return singleton(new GlueType(13, [new GlueTypeReference(typeReferenceNode.getText(), fullName_1, empty())]));
78
+ }
73
79
  }
74
80
  }
75
81
  }
@@ -77,7 +83,7 @@ function readUnionTypeCases(reader, unionTypeNode) {
77
83
  return readUnionTypeCases(reader, node_1).fields[0];
78
84
  }
79
85
  else {
80
- return singleton(reader["Glutinum.Converter.Reader.Types.TypeScriptReader.ReadTypeNode24A678AD"](node_1));
86
+ return singleton(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](node_1));
81
87
  }
82
88
  }, map(removeParenthesizedType, toList(unionTypeNode.types)))));
83
89
  }