@glutinum/cli 0.13.0 → 0.14.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 (273) hide show
  1. package/README.md +19 -1
  2. package/dist/Glutinum.Converter/Abbreviations.js +246 -0
  3. package/dist/Glutinum.Converter/FsharpAST.js +87 -28
  4. package/dist/Glutinum.Converter/Generate.js +55 -8
  5. package/dist/Glutinum.Converter/GlueAST.js +333 -34
  6. package/dist/Glutinum.Converter/Log.js +7 -8
  7. package/dist/Glutinum.Converter/Merge.js +683 -31
  8. package/dist/Glutinum.Converter/Packages.js +308 -0
  9. package/dist/Glutinum.Converter/Printer.js +323 -186
  10. package/dist/Glutinum.Converter/Read.js +279 -6
  11. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +13 -7
  12. package/dist/Glutinum.Converter/Reader/Declaration.js +102 -17
  13. package/dist/Glutinum.Converter/Reader/Documentation.js +168 -73
  14. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js +7 -51
  15. package/dist/Glutinum.Converter/Reader/ExportAssignment.js +64 -15
  16. package/dist/Glutinum.Converter/Reader/ExportDeclaration.js +165 -0
  17. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js +30 -5
  18. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js +122 -4
  19. package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js +83 -7
  20. package/dist/Glutinum.Converter/Reader/MappedTypeNode.js +8 -8
  21. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js +11 -9
  22. package/dist/Glutinum.Converter/Reader/NamedTupleMember.js +3 -2
  23. package/dist/Glutinum.Converter/Reader/Node.js +24 -10
  24. package/dist/Glutinum.Converter/Reader/Parameters.js +110 -7
  25. package/dist/Glutinum.Converter/Reader/Report.js +31 -12
  26. package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js +4 -3
  27. package/dist/Glutinum.Converter/Reader/TypeNode.js +1524 -253
  28. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js +75 -20
  29. package/dist/Glutinum.Converter/Reader/TypeParameters.js +8 -5
  30. package/dist/Glutinum.Converter/Reader/TypeQueryNode.js +184 -50
  31. package/dist/Glutinum.Converter/Reader/TypeScriptReader.js +32 -13
  32. package/dist/Glutinum.Converter/Reader/Types.js +180 -0
  33. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +99 -43
  34. package/dist/Glutinum.Converter/Reader/Utils.js +1143 -55
  35. package/dist/Glutinum.Converter/Reader/VariableStatement.js +59 -14
  36. package/dist/Glutinum.Converter/Transform.js +8292 -1119
  37. package/dist/Glutinum.Converter/TypeScript.Extensions.js +3 -3
  38. package/dist/Glutinum.Converter/TypeScript.js +3 -3
  39. package/dist/Glutinum.Converter/Utils/Keywords.js +6 -6
  40. package/dist/Glutinum.Converter/Utils/List.js +3 -3
  41. package/dist/Glutinum.Converter/Utils/Naming.js +61 -12
  42. package/dist/Glutinum.Converter/Utils/String.js +7 -3
  43. package/dist/Program.js +230 -72
  44. package/package.json +4 -4
  45. package/src/Glutinum.Converter/js/bootstrap.js +109 -2
  46. package/src/Glutinum.Converter/js/host.js +144 -0
  47. package/src/Glutinum.Converter/js/npm.js +137 -0
  48. package/src/Glutinum.Converter/js/resolve.js +402 -0
  49. package/dist/Glutinum.Converter/FsharpAST.js.map +0 -1
  50. package/dist/Glutinum.Converter/Generate.js.map +0 -1
  51. package/dist/Glutinum.Converter/GlueAST.js.map +0 -1
  52. package/dist/Glutinum.Converter/Log.js.map +0 -1
  53. package/dist/Glutinum.Converter/Merge.js.map +0 -1
  54. package/dist/Glutinum.Converter/Printer.js.map +0 -1
  55. package/dist/Glutinum.Converter/Read.js.map +0 -1
  56. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js.map +0 -1
  57. package/dist/Glutinum.Converter/Reader/Declaration.js.map +0 -1
  58. package/dist/Glutinum.Converter/Reader/Documentation.js.map +0 -1
  59. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js.map +0 -1
  60. package/dist/Glutinum.Converter/Reader/ExportAssignment.js.map +0 -1
  61. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js.map +0 -1
  62. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js.map +0 -1
  63. package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js.map +0 -1
  64. package/dist/Glutinum.Converter/Reader/MappedTypeNode.js.map +0 -1
  65. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js.map +0 -1
  66. package/dist/Glutinum.Converter/Reader/NamedTupleMember.js.map +0 -1
  67. package/dist/Glutinum.Converter/Reader/Node.js.map +0 -1
  68. package/dist/Glutinum.Converter/Reader/Parameters.js.map +0 -1
  69. package/dist/Glutinum.Converter/Reader/Report.js.map +0 -1
  70. package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js.map +0 -1
  71. package/dist/Glutinum.Converter/Reader/TypeNode.js.map +0 -1
  72. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js.map +0 -1
  73. package/dist/Glutinum.Converter/Reader/TypeParameters.js.map +0 -1
  74. package/dist/Glutinum.Converter/Reader/TypeQueryNode.js.map +0 -1
  75. package/dist/Glutinum.Converter/Reader/TypeScriptReader.js.map +0 -1
  76. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js.map +0 -1
  77. package/dist/Glutinum.Converter/Reader/Utils.js.map +0 -1
  78. package/dist/Glutinum.Converter/Reader/VariableStatement.js.map +0 -1
  79. package/dist/Glutinum.Converter/Transform.js.map +0 -1
  80. package/dist/Glutinum.Converter/TypeScript.Extensions.js.map +0 -1
  81. package/dist/Glutinum.Converter/TypeScript.js.map +0 -1
  82. package/dist/Glutinum.Converter/Utils/Keywords.js.map +0 -1
  83. package/dist/Glutinum.Converter/Utils/List.js.map +0 -1
  84. package/dist/Glutinum.Converter/Utils/Naming.js.map +0 -1
  85. package/dist/Glutinum.Converter/Utils/String.js.map +0 -1
  86. package/dist/Program.js.map +0 -1
  87. package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +0 -57
  88. package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +0 -105
  89. package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js.map +0 -1
  90. package/dist/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +0 -20
  91. package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs +0 -766
  92. package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +0 -218
  93. package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js.map +0 -1
  94. package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +0 -31
  95. package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +0 -20
  96. package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js.map +0 -1
  97. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AssemblyInfo.fs +0 -19
  98. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs +0 -207
  99. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs.js +0 -127
  100. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs.js.map +0 -1
  101. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOption.fs +0 -81
  102. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs +0 -183
  103. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs.js +0 -37
  104. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs.js.map +0 -1
  105. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionOp.fs +0 -24
  106. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResult.fs +0 -439
  107. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs +0 -217
  108. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs.js +0 -18
  109. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs.js.map +0 -1
  110. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOp.fs +0 -24
  111. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs +0 -75
  112. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js +0 -26
  113. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js.map +0 -1
  114. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs +0 -238
  115. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs.js +0 -18
  116. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs.js.map +0 -1
  117. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionOp.fs +0 -24
  118. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidation.fs +0 -190
  119. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs +0 -194
  120. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs.js +0 -18
  121. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs.js.map +0 -1
  122. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationOp.fs +0 -35
  123. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/FsToolkit.ErrorHandling.fableproj +0 -51
  124. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs +0 -218
  125. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs.js +0 -358
  126. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs.js.map +0 -1
  127. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Option.fs +0 -331
  128. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs +0 -186
  129. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js +0 -18
  130. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js.map +0 -1
  131. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionOp.fs +0 -21
  132. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs +0 -644
  133. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs.js +0 -45
  134. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs.js.map +0 -1
  135. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs +0 -155
  136. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs.js +0 -23
  137. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs.js.map +0 -1
  138. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOp.fs +0 -45
  139. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs +0 -201
  140. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs.js +0 -65
  141. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs.js.map +0 -1
  142. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs +0 -146
  143. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs.js +0 -18
  144. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs.js.map +0 -1
  145. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionOp.fs +0 -57
  146. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs +0 -19
  147. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js +0 -31
  148. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js.map +0 -1
  149. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs +0 -22
  150. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js +0 -18
  151. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js.map +0 -1
  152. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Validation.fs +0 -172
  153. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs +0 -148
  154. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs.js +0 -18
  155. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs.js.map +0 -1
  156. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationOp.fs +0 -35
  157. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValueOption.fs +0 -151
  158. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValueOptionCE.fs +0 -165
  159. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Debug/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -3
  160. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Debug/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
  161. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -3
  162. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.0/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
  163. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -3
  164. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
  165. package/dist/fable_modules/fable-library-js.4.14.0/Array.d.ts +0 -123
  166. package/dist/fable_modules/fable-library-js.4.14.0/Array.js +0 -1242
  167. package/dist/fable_modules/fable-library-js.4.14.0/Async.d.ts +0 -32
  168. package/dist/fable_modules/fable-library-js.4.14.0/Async.js +0 -158
  169. package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.d.ts +0 -59
  170. package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.js +0 -183
  171. package/dist/fable_modules/fable-library-js.4.14.0/BigInt.d.ts +0 -115
  172. package/dist/fable_modules/fable-library-js.4.14.0/BigInt.js +0 -282
  173. package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.d.ts +0 -27
  174. package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.js +0 -138
  175. package/dist/fable_modules/fable-library-js.4.14.0/Boolean.d.ts +0 -3
  176. package/dist/fable_modules/fable-library-js.4.14.0/Boolean.js +0 -21
  177. package/dist/fable_modules/fable-library-js.4.14.0/CHANGELOG.md +0 -37
  178. package/dist/fable_modules/fable-library-js.4.14.0/Char.d.ts +0 -65
  179. package/dist/fable_modules/fable-library-js.4.14.0/Char.js +0 -169
  180. package/dist/fable_modules/fable-library-js.4.14.0/Choice.d.ts +0 -121
  181. package/dist/fable_modules/fable-library-js.4.14.0/Choice.js +0 -184
  182. package/dist/fable_modules/fable-library-js.4.14.0/Date.d.ts +0 -70
  183. package/dist/fable_modules/fable-library-js.4.14.0/Date.js +0 -749
  184. package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.d.ts +0 -63
  185. package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.js +0 -268
  186. package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.d.ts +0 -18
  187. package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.js +0 -124
  188. package/dist/fable_modules/fable-library-js.4.14.0/Decimal.d.ts +0 -45
  189. package/dist/fable_modules/fable-library-js.4.14.0/Decimal.js +0 -212
  190. package/dist/fable_modules/fable-library-js.4.14.0/Double.d.ts +0 -11
  191. package/dist/fable_modules/fable-library-js.4.14.0/Double.js +0 -46
  192. package/dist/fable_modules/fable-library-js.4.14.0/Encoding.d.ts +0 -12
  193. package/dist/fable_modules/fable-library-js.4.14.0/Encoding.js +0 -173
  194. package/dist/fable_modules/fable-library-js.4.14.0/Event.d.ts +0 -31
  195. package/dist/fable_modules/fable-library-js.4.14.0/Event.js +0 -93
  196. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.d.ts +0 -7
  197. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.js +0 -27
  198. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.d.ts +0 -12
  199. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.js +0 -27
  200. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.d.ts +0 -17
  201. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.js +0 -69
  202. package/dist/fable_modules/fable-library-js.4.14.0/Global.d.ts +0 -24
  203. package/dist/fable_modules/fable-library-js.4.14.0/Global.js +0 -8
  204. package/dist/fable_modules/fable-library-js.4.14.0/Guid.d.ts +0 -10
  205. package/dist/fable_modules/fable-library-js.4.14.0/Guid.js +0 -142
  206. package/dist/fable_modules/fable-library-js.4.14.0/Int32.d.ts +0 -28
  207. package/dist/fable_modules/fable-library-js.4.14.0/Int32.js +0 -135
  208. package/dist/fable_modules/fable-library-js.4.14.0/List.d.ts +0 -143
  209. package/dist/fable_modules/fable-library-js.4.14.0/List.js +0 -1273
  210. package/dist/fable_modules/fable-library-js.4.14.0/Long.d.ts +0 -3
  211. package/dist/fable_modules/fable-library-js.4.14.0/Long.js +0 -46
  212. package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.d.ts +0 -25
  213. package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.js +0 -93
  214. package/dist/fable_modules/fable-library-js.4.14.0/Map.d.ts +0 -178
  215. package/dist/fable_modules/fable-library-js.4.14.0/Map.js +0 -1396
  216. package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.d.ts +0 -10
  217. package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.js +0 -112
  218. package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.d.ts +0 -52
  219. package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.js +0 -327
  220. package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.d.ts +0 -39
  221. package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.js +0 -233
  222. package/dist/fable_modules/fable-library-js.4.14.0/Native.d.ts +0 -2
  223. package/dist/fable_modules/fable-library-js.4.14.0/Native.js +0 -8
  224. package/dist/fable_modules/fable-library-js.4.14.0/Numeric.d.ts +0 -19
  225. package/dist/fable_modules/fable-library-js.4.14.0/Numeric.js +0 -71
  226. package/dist/fable_modules/fable-library-js.4.14.0/Observable.d.ts +0 -32
  227. package/dist/fable_modules/fable-library-js.4.14.0/Observable.js +0 -113
  228. package/dist/fable_modules/fable-library-js.4.14.0/Option.d.ts +0 -28
  229. package/dist/fable_modules/fable-library-js.4.14.0/Option.js +0 -96
  230. package/dist/fable_modules/fable-library-js.4.14.0/README.md +0 -3
  231. package/dist/fable_modules/fable-library-js.4.14.0/Random.d.ts +0 -37
  232. package/dist/fable_modules/fable-library-js.4.14.0/Random.js +0 -170
  233. package/dist/fable_modules/fable-library-js.4.14.0/Range.d.ts +0 -12
  234. package/dist/fable_modules/fable-library-js.4.14.0/Range.js +0 -45
  235. package/dist/fable_modules/fable-library-js.4.14.0/Reflection.d.ts +0 -119
  236. package/dist/fable_modules/fable-library-js.4.14.0/Reflection.js +0 -461
  237. package/dist/fable_modules/fable-library-js.4.14.0/RegExp.d.ts +0 -10
  238. package/dist/fable_modules/fable-library-js.4.14.0/RegExp.js +0 -132
  239. package/dist/fable_modules/fable-library-js.4.14.0/Result.d.ts +0 -37
  240. package/dist/fable_modules/fable-library-js.4.14.0/Result.js +0 -165
  241. package/dist/fable_modules/fable-library-js.4.14.0/Seq.d.ts +0 -165
  242. package/dist/fable_modules/fable-library-js.4.14.0/Seq.js +0 -1379
  243. package/dist/fable_modules/fable-library-js.4.14.0/Seq2.d.ts +0 -18
  244. package/dist/fable_modules/fable-library-js.4.14.0/Seq2.js +0 -111
  245. package/dist/fable_modules/fable-library-js.4.14.0/Set.d.ts +0 -190
  246. package/dist/fable_modules/fable-library-js.4.14.0/Set.js +0 -1789
  247. package/dist/fable_modules/fable-library-js.4.14.0/String.d.ts +0 -50
  248. package/dist/fable_modules/fable-library-js.4.14.0/String.js +0 -543
  249. package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.d.ts +0 -79
  250. package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.js +0 -317
  251. package/dist/fable_modules/fable-library-js.4.14.0/System.Text.d.ts +0 -38
  252. package/dist/fable_modules/fable-library-js.4.14.0/System.Text.js +0 -162
  253. package/dist/fable_modules/fable-library-js.4.14.0/SystemException.d.ts +0 -5
  254. package/dist/fable_modules/fable-library-js.4.14.0/SystemException.js +0 -5
  255. package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.d.ts +0 -15
  256. package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.js +0 -122
  257. package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.d.ts +0 -34
  258. package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.js +0 -177
  259. package/dist/fable_modules/fable-library-js.4.14.0/Timer.d.ts +0 -19
  260. package/dist/fable_modules/fable-library-js.4.14.0/Timer.js +0 -67
  261. package/dist/fable_modules/fable-library-js.4.14.0/Types.d.ts +0 -58
  262. package/dist/fable_modules/fable-library-js.4.14.0/Types.js +0 -208
  263. package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.d.ts +0 -2
  264. package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.js +0 -4
  265. package/dist/fable_modules/fable-library-js.4.14.0/Uri.d.ts +0 -29
  266. package/dist/fable_modules/fable-library-js.4.14.0/Uri.js +0 -142
  267. package/dist/fable_modules/fable-library-js.4.14.0/Util.d.ts +0 -207
  268. package/dist/fable_modules/fable-library-js.4.14.0/Util.js +0 -770
  269. package/dist/fable_modules/fable-library-js.4.14.0/big.d.ts +0 -338
  270. package/dist/fable_modules/fable-library-js.4.14.0/lib/big.d.ts +0 -5
  271. package/dist/fable_modules/fable-library-js.4.14.0/lib/big.js +0 -826
  272. package/dist/fable_modules/fable-library-js.4.14.0/package.json +0 -24
  273. package/dist/fable_modules/project_cracked.json +0 -1
@@ -1,8 +1,11 @@
1
- import { toString, Union, Record } from "../fable_modules/fable-library-js.4.14.0/Types.js";
2
- import { float64_type, int32_type, bool_type, union_type, list_type, record_type, option_type, string_type } from "../fable_modules/fable-library-js.4.14.0/Reflection.js";
3
- import { singleton, map, collect, empty } from "../fable_modules/fable-library-js.4.14.0/List.js";
4
- import { int32ToString } from "../fable_modules/fable-library-js.4.14.0/Util.js";
5
- import { join } from "../fable_modules/fable-library-js.4.14.0/String.js";
1
+
2
+ import { toString, Union, Record } from "../fable_modules/fable-library-js.5.17.2/Types.js";
3
+ import { float64_type, int32_type, bool_type, union_type, list_type, record_type, option_type, string_type } from "../fable_modules/fable-library-js.5.17.2/Reflection.js";
4
+ import { append, singleton, map, collect, empty } from "../fable_modules/fable-library-js.5.17.2/List.js";
5
+ import { stringHash, int32ToString } from "../fable_modules/fable-library-js.5.17.2/Util.js";
6
+ import { join, concat } from "../fable_modules/fable-library-js.5.17.2/String.js";
7
+ import { tryFind } from "../fable_modules/fable-library-js.5.17.2/Map.js";
8
+ import { List_distinctBy } from "../fable_modules/fable-library-js.5.17.2/Seq2.js";
6
9
 
7
10
  export class GlueCommentParam extends Record {
8
11
  constructor(Name, Content) {
@@ -71,10 +74,11 @@ export function GlueTypeParameter_$reflection() {
71
74
  }
72
75
 
73
76
  export class GlueMethod extends Record {
74
- constructor(Name, Documentation, Parameters, Type, IsOptional, IsStatic) {
77
+ constructor(Name, Documentation, TypeParameters, Parameters, Type, IsOptional, IsStatic) {
75
78
  super();
76
79
  this.Name = Name;
77
80
  this.Documentation = Documentation;
81
+ this.TypeParameters = TypeParameters;
78
82
  this.Parameters = Parameters;
79
83
  this.Type = Type;
80
84
  this.IsOptional = IsOptional;
@@ -83,19 +87,20 @@ export class GlueMethod extends Record {
83
87
  }
84
88
 
85
89
  export function GlueMethod_$reflection() {
86
- return record_type("Glutinum.Converter.GlueAST.GlueMethod", [], GlueMethod, () => [["Name", string_type], ["Documentation", list_type(GlueComment_$reflection())], ["Parameters", list_type(GlueParameter_$reflection())], ["Type", GlueType_$reflection()], ["IsOptional", bool_type], ["IsStatic", bool_type]]);
90
+ return record_type("Glutinum.Converter.GlueAST.GlueMethod", [], GlueMethod, () => [["Name", string_type], ["Documentation", list_type(GlueComment_$reflection())], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["Parameters", list_type(GlueParameter_$reflection())], ["Type", GlueType_$reflection()], ["IsOptional", bool_type], ["IsStatic", bool_type]]);
87
91
  }
88
92
 
89
93
  export class GlueCallSignature extends Record {
90
- constructor(Parameters, Type) {
94
+ constructor(TypeParameters, Parameters, Type) {
91
95
  super();
96
+ this.TypeParameters = TypeParameters;
92
97
  this.Parameters = Parameters;
93
98
  this.Type = Type;
94
99
  }
95
100
  }
96
101
 
97
102
  export function GlueCallSignature_$reflection() {
98
- return record_type("Glutinum.Converter.GlueAST.GlueCallSignature", [], GlueCallSignature, () => [["Parameters", list_type(GlueParameter_$reflection())], ["Type", GlueType_$reflection()]]);
103
+ return record_type("Glutinum.Converter.GlueAST.GlueCallSignature", [], GlueCallSignature, () => [["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["Parameters", list_type(GlueParameter_$reflection())], ["Type", GlueType_$reflection()]]);
99
104
  }
100
105
 
101
106
  export class GlueAccessor extends Union {
@@ -107,6 +112,9 @@ export class GlueAccessor extends Union {
107
112
  cases() {
108
113
  return ["ReadOnly", "WriteOnly", "ReadWrite"];
109
114
  }
115
+ static ReadOnly = new GlueAccessor(0, []);
116
+ static WriteOnly = new GlueAccessor(1, []);
117
+ static ReadWrite = new GlueAccessor(2, []);
110
118
  }
111
119
 
112
120
  export function GlueAccessor_$reflection() {
@@ -174,17 +182,18 @@ export function GlueIndexSignature_$reflection() {
174
182
  }
175
183
 
176
184
  export class GlueMethodSignature extends Record {
177
- constructor(Name, Documentation, Parameters, Type) {
185
+ constructor(Name, Documentation, TypeParameters, Parameters, Type) {
178
186
  super();
179
187
  this.Name = Name;
180
188
  this.Documentation = Documentation;
189
+ this.TypeParameters = TypeParameters;
181
190
  this.Parameters = Parameters;
182
191
  this.Type = Type;
183
192
  }
184
193
  }
185
194
 
186
195
  export function GlueMethodSignature_$reflection() {
187
- return record_type("Glutinum.Converter.GlueAST.GlueMethodSignature", [], GlueMethodSignature, () => [["Name", string_type], ["Documentation", list_type(GlueComment_$reflection())], ["Parameters", list_type(GlueParameter_$reflection())], ["Type", GlueType_$reflection()]]);
196
+ return record_type("Glutinum.Converter.GlueAST.GlueMethodSignature", [], GlueMethodSignature, () => [["Name", string_type], ["Documentation", list_type(GlueComment_$reflection())], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["Parameters", list_type(GlueParameter_$reflection())], ["Type", GlueType_$reflection()]]);
188
197
  }
189
198
 
190
199
  export class GlueConstructSignature extends Record {
@@ -215,8 +224,9 @@ export function GlueMember_$reflection() {
215
224
  }
216
225
 
217
226
  export class GlueInterface extends Record {
218
- constructor(FullName, Name, Members, TypeParameters, HeritageClauses) {
227
+ constructor(Documentation, FullName, Name, Members, TypeParameters, HeritageClauses) {
219
228
  super();
229
+ this.Documentation = Documentation;
220
230
  this.FullName = FullName;
221
231
  this.Name = Name;
222
232
  this.Members = Members;
@@ -226,7 +236,7 @@ export class GlueInterface extends Record {
226
236
  }
227
237
 
228
238
  export function GlueInterface_$reflection() {
229
- return record_type("Glutinum.Converter.GlueAST.GlueInterface", [], GlueInterface, () => [["FullName", string_type], ["Name", string_type], ["Members", list_type(GlueMember_$reflection())], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["HeritageClauses", list_type(GlueType_$reflection())]]);
239
+ return record_type("Glutinum.Converter.GlueAST.GlueInterface", [], GlueInterface, () => [["Documentation", list_type(GlueComment_$reflection())], ["FullName", string_type], ["Name", string_type], ["Members", list_type(GlueMember_$reflection())], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["HeritageClauses", list_type(GlueType_$reflection())]]);
230
240
  }
231
241
 
232
242
  export class GlueTypeLiteral extends Record {
@@ -260,12 +270,25 @@ export class GluePrimitive extends Union {
260
270
  this.fields = fields;
261
271
  }
262
272
  cases() {
263
- return ["String", "Int", "Float", "Bool", "Unit", "Number", "Any", "Null", "Undefined", "Object", "Symbol", "Never"];
273
+ return ["String", "Int", "Float", "Bool", "Unit", "Number", "Any", "Null", "Undefined", "Object", "Symbol", "Never", "BigInt"];
264
274
  }
275
+ static String$ = new GluePrimitive(0, []);
276
+ static Int = new GluePrimitive(1, []);
277
+ static Float = new GluePrimitive(2, []);
278
+ static Bool = new GluePrimitive(3, []);
279
+ static Unit = new GluePrimitive(4, []);
280
+ static Number$ = new GluePrimitive(5, []);
281
+ static Any = new GluePrimitive(6, []);
282
+ static Null = new GluePrimitive(7, []);
283
+ static Undefined = new GluePrimitive(8, []);
284
+ static Object$ = new GluePrimitive(9, []);
285
+ static Symbol$ = new GluePrimitive(10, []);
286
+ static Never = new GluePrimitive(11, []);
287
+ static BigInt$ = new GluePrimitive(12, []);
265
288
  }
266
289
 
267
290
  export function GluePrimitive_$reflection() {
268
- return union_type("Glutinum.Converter.GlueAST.GluePrimitive", [], GluePrimitive, () => [[], [], [], [], [], [], [], [], [], [], [], []]);
291
+ return union_type("Glutinum.Converter.GlueAST.GluePrimitive", [], GluePrimitive, () => [[], [], [], [], [], [], [], [], [], [], [], [], []]);
269
292
  }
270
293
 
271
294
  export class GlueLiteral extends Union {
@@ -277,6 +300,7 @@ export class GlueLiteral extends Union {
277
300
  cases() {
278
301
  return ["String", "Int", "Float", "Bool", "Null"];
279
302
  }
303
+ static Null = new GlueLiteral(4, []);
280
304
  }
281
305
 
282
306
  export function GlueLiteral_$reflection() {
@@ -308,9 +332,10 @@ export function GlueEnum_$reflection() {
308
332
  }
309
333
 
310
334
  export class GlueTypeAliasDeclaration extends Record {
311
- constructor(Documentation, Name, Type, TypeParameters) {
335
+ constructor(Documentation, FullName, Name, Type, TypeParameters) {
312
336
  super();
313
337
  this.Documentation = Documentation;
338
+ this.FullName = FullName;
314
339
  this.Name = Name;
315
340
  this.Type = Type;
316
341
  this.TypeParameters = TypeParameters;
@@ -318,7 +343,7 @@ export class GlueTypeAliasDeclaration extends Record {
318
343
  }
319
344
 
320
345
  export function GlueTypeAliasDeclaration_$reflection() {
321
- return record_type("Glutinum.Converter.GlueAST.GlueTypeAliasDeclaration", [], GlueTypeAliasDeclaration, () => [["Documentation", list_type(GlueComment_$reflection())], ["Name", string_type], ["Type", GlueType_$reflection()], ["TypeParameters", list_type(GlueTypeParameter_$reflection())]]);
346
+ return record_type("Glutinum.Converter.GlueAST.GlueTypeAliasDeclaration", [], GlueTypeAliasDeclaration, () => [["Documentation", list_type(GlueComment_$reflection())], ["FullName", string_type], ["Name", string_type], ["Type", GlueType_$reflection()], ["TypeParameters", list_type(GlueTypeParameter_$reflection())]]);
322
347
  }
323
348
 
324
349
  export class GlueFunctionDeclaration extends Record {
@@ -338,18 +363,20 @@ export function GlueFunctionDeclaration_$reflection() {
338
363
  }
339
364
 
340
365
  export class GlueModuleDeclaration extends Record {
341
- constructor(Name, IsTopLevel, IsNamespace, IsRecursive, Types) {
366
+ constructor(Documentation, Name, IsTopLevel, IsNamespace, IsGlobal, IsRecursive, Types) {
342
367
  super();
368
+ this.Documentation = Documentation;
343
369
  this.Name = Name;
344
370
  this.IsTopLevel = IsTopLevel;
345
371
  this.IsNamespace = IsNamespace;
372
+ this.IsGlobal = IsGlobal;
346
373
  this.IsRecursive = IsRecursive;
347
374
  this.Types = Types;
348
375
  }
349
376
  }
350
377
 
351
378
  export function GlueModuleDeclaration_$reflection() {
352
- return record_type("Glutinum.Converter.GlueAST.GlueModuleDeclaration", [], GlueModuleDeclaration, () => [["Name", string_type], ["IsTopLevel", bool_type], ["IsNamespace", bool_type], ["IsRecursive", bool_type], ["Types", list_type(GlueType_$reflection())]]);
379
+ return record_type("Glutinum.Converter.GlueAST.GlueModuleDeclaration", [], GlueModuleDeclaration, () => [["Documentation", list_type(GlueComment_$reflection())], ["Name", string_type], ["IsTopLevel", bool_type], ["IsNamespace", bool_type], ["IsGlobal", bool_type], ["IsRecursive", bool_type], ["Types", list_type(GlueType_$reflection())]]);
353
380
  }
354
381
 
355
382
  export class GlueConstructor extends Record {
@@ -365,33 +392,36 @@ export function GlueConstructor_$reflection() {
365
392
  }
366
393
 
367
394
  export class GlueClassDeclaration extends Record {
368
- constructor(Documentation, Name, Constructors, Members, TypeParameters, HeritageClauses) {
395
+ constructor(Documentation, FullName, Name, Constructors, Members, TypeParameters, HeritageClauses, IsExported) {
369
396
  super();
370
397
  this.Documentation = Documentation;
398
+ this.FullName = FullName;
371
399
  this.Name = Name;
372
400
  this.Constructors = Constructors;
373
401
  this.Members = Members;
374
402
  this.TypeParameters = TypeParameters;
375
403
  this.HeritageClauses = HeritageClauses;
404
+ this.IsExported = IsExported;
376
405
  }
377
406
  }
378
407
 
379
408
  export function GlueClassDeclaration_$reflection() {
380
- return record_type("Glutinum.Converter.GlueAST.GlueClassDeclaration", [], GlueClassDeclaration, () => [["Documentation", list_type(GlueComment_$reflection())], ["Name", string_type], ["Constructors", list_type(GlueConstructor_$reflection())], ["Members", list_type(GlueMember_$reflection())], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["HeritageClauses", list_type(GlueType_$reflection())]]);
409
+ return record_type("Glutinum.Converter.GlueAST.GlueClassDeclaration", [], GlueClassDeclaration, () => [["Documentation", list_type(GlueComment_$reflection())], ["FullName", string_type], ["Name", string_type], ["Constructors", list_type(GlueConstructor_$reflection())], ["Members", list_type(GlueMember_$reflection())], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["HeritageClauses", list_type(GlueType_$reflection())], ["IsExported", bool_type]]);
381
410
  }
382
411
 
383
412
  export class GlueTypeReference extends Record {
384
- constructor(Name, FullName, TypeArguments, IsStandardLibrary) {
413
+ constructor(Name, FullName, ModulePath, TypeArguments, IsStandardLibrary) {
385
414
  super();
386
415
  this.Name = Name;
387
416
  this.FullName = FullName;
417
+ this.ModulePath = ModulePath;
388
418
  this.TypeArguments = TypeArguments;
389
419
  this.IsStandardLibrary = IsStandardLibrary;
390
420
  }
391
421
  }
392
422
 
393
423
  export function GlueTypeReference_$reflection() {
394
- return record_type("Glutinum.Converter.GlueAST.GlueTypeReference", [], GlueTypeReference, () => [["Name", string_type], ["FullName", string_type], ["TypeArguments", list_type(GlueType_$reflection())], ["IsStandardLibrary", bool_type]]);
424
+ return record_type("Glutinum.Converter.GlueAST.GlueTypeReference", [], GlueTypeReference, () => [["Name", string_type], ["FullName", string_type], ["ModulePath", list_type(string_type)], ["TypeArguments", list_type(GlueType_$reflection())], ["IsStandardLibrary", bool_type]]);
395
425
  }
396
426
 
397
427
  export class GlueTypeUnion extends Union {
@@ -425,17 +455,18 @@ export function ExcludedMember_$reflection() {
425
455
  }
426
456
 
427
457
  export class GlueFunctionType extends Record {
428
- constructor(Documentation, Type, TypeParameters, Parameters) {
458
+ constructor(Documentation, Type, TypeParameters, OwnTypeParameterNames, Parameters) {
429
459
  super();
430
460
  this.Documentation = Documentation;
431
461
  this.Type = Type;
432
462
  this.TypeParameters = TypeParameters;
463
+ this.OwnTypeParameterNames = OwnTypeParameterNames;
433
464
  this.Parameters = Parameters;
434
465
  }
435
466
  }
436
467
 
437
468
  export function GlueFunctionType_$reflection() {
438
- return record_type("Glutinum.Converter.GlueAST.GlueFunctionType", [], GlueFunctionType, () => [["Documentation", list_type(GlueComment_$reflection())], ["Type", GlueType_$reflection()], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["Parameters", list_type(GlueParameter_$reflection())]]);
469
+ return record_type("Glutinum.Converter.GlueAST.GlueFunctionType", [], GlueFunctionType, () => [["Documentation", list_type(GlueComment_$reflection())], ["Type", GlueType_$reflection()], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["OwnTypeParameterNames", list_type(string_type)], ["Parameters", list_type(GlueParameter_$reflection())]]);
439
470
  }
440
471
 
441
472
  export class NamedTupleType extends Record {
@@ -535,31 +566,94 @@ export class GlueType extends Union {
535
566
  this.fields = fields;
536
567
  }
537
568
  cases() {
538
- return ["Discard", "Interface", "Variable", "Primitive", "Enum", "TypeAliasDeclaration", "FunctionDeclaration", "Union", "Literal", "KeyOf", "IndexedAccessType", "ModuleDeclaration", "ClassDeclaration", "TypeReference", "Array", "FunctionType", "TypeParameter", "ThisType", "TupleType", "NamedTupleType", "IntersectionType", "TypeLiteral", "OptionalType", "Unknown", "ExportDefault", "TemplateLiteral", "UtilityType", "MappedType", "ConstructorType", "ReadOnly"];
569
+ return ["Discard", "Interface", "Variable", "Primitive", "Enum", "TypeAliasDeclaration", "FunctionDeclaration", "Union", "Literal", "KeyOf", "IndexedAccessType", "ModuleDeclaration", "ClassDeclaration", "TypeReference", "Array", "FunctionType", "TypeParameter", "ThisType", "TupleType", "NamedTupleType", "IntersectionType", "TypeLiteral", "OptionalType", "Unknown", "ExportDefault", "TemplateLiteral", "UtilityType", "MappedType", "ConstructorType", "ReadOnly", "FileModule", "ReExport", "ConditionalType"];
539
570
  }
571
+ static Discard = new GlueType(0, []);
572
+ static Unknown = new GlueType(23, []);
573
+ static TemplateLiteral = new GlueType(25, []);
540
574
  }
541
575
 
542
576
  export function GlueType_$reflection() {
543
- return union_type("Glutinum.Converter.GlueAST.GlueType", [], GlueType, () => [[], [["Item", GlueInterface_$reflection()]], [["Item", GlueVariable_$reflection()]], [["Item", GluePrimitive_$reflection()]], [["Item", GlueEnum_$reflection()]], [["Item", GlueTypeAliasDeclaration_$reflection()]], [["Item", GlueFunctionDeclaration_$reflection()]], [["Item", GlueTypeUnion_$reflection()]], [["Item", GlueLiteral_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueIndexedAccessType_$reflection()]], [["Item", GlueModuleDeclaration_$reflection()]], [["Item", GlueClassDeclaration_$reflection()]], [["Item", GlueTypeReference_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueFunctionType_$reflection()]], [["Item", string_type]], [["Item", GlueThisType_$reflection()]], [["Item", list_type(GlueType_$reflection())]], [["Item", NamedTupleType_$reflection()]], [["Item", list_type(GlueMember_$reflection())]], [["Item", GlueTypeLiteral_$reflection()]], [["Item", GlueType_$reflection()]], [], [["Item", GlueType_$reflection()]], [], [["Item", GlueUtilityType_$reflection()]], [["Item", GlueMappedType_$reflection()]], [], [["Item", GlueType_$reflection()]]]);
577
+ return union_type("Glutinum.Converter.GlueAST.GlueType", [], GlueType, () => [[], [["Item", GlueInterface_$reflection()]], [["Item", GlueVariable_$reflection()]], [["Item", GluePrimitive_$reflection()]], [["Item", GlueEnum_$reflection()]], [["Item", GlueTypeAliasDeclaration_$reflection()]], [["Item", GlueFunctionDeclaration_$reflection()]], [["Item", GlueTypeUnion_$reflection()]], [["Item", GlueLiteral_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueIndexedAccessType_$reflection()]], [["Item", GlueModuleDeclaration_$reflection()]], [["Item", GlueClassDeclaration_$reflection()]], [["Item", GlueTypeReference_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueFunctionType_$reflection()]], [["Item", string_type]], [["Item", GlueThisType_$reflection()]], [["Item", list_type(GlueType_$reflection())]], [["Item", NamedTupleType_$reflection()]], [["Item", list_type(GlueMember_$reflection())]], [["Item", GlueTypeLiteral_$reflection()]], [["Item", GlueType_$reflection()]], [], [["Item", GlueType_$reflection()]], [], [["Item", GlueUtilityType_$reflection()]], [["Item", GlueMappedType_$reflection()]], [["Item", GlueConstructSignature_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueFileModule_$reflection()]], [["Item", GlueReExport_$reflection()]], [["Item", GlueConditionalType_$reflection()]]]);
578
+ }
579
+
580
+ export class GlueFileModule extends Record {
581
+ constructor(Name, ImportSpecifier, IsGlobal, Types) {
582
+ super();
583
+ this.Name = Name;
584
+ this.ImportSpecifier = ImportSpecifier;
585
+ this.IsGlobal = IsGlobal;
586
+ this.Types = Types;
587
+ }
588
+ }
589
+
590
+ export function GlueFileModule_$reflection() {
591
+ return record_type("Glutinum.Converter.GlueAST.GlueFileModule", [], GlueFileModule, () => [["Name", string_type], ["ImportSpecifier", string_type], ["IsGlobal", bool_type], ["Types", list_type(GlueType_$reflection())]]);
592
+ }
593
+
594
+ export class GlueConditionalType extends Record {
595
+ constructor(CheckType, ExtendsType, TrueType, FalseType) {
596
+ super();
597
+ this.CheckType = CheckType;
598
+ this.ExtendsType = ExtendsType;
599
+ this.TrueType = TrueType;
600
+ this.FalseType = FalseType;
601
+ }
602
+ }
603
+
604
+ export function GlueConditionalType_$reflection() {
605
+ return record_type("Glutinum.Converter.GlueAST.GlueConditionalType", [], GlueConditionalType, () => [["CheckType", GlueType_$reflection()], ["ExtendsType", GlueType_$reflection()], ["TrueType", GlueType_$reflection()], ["FalseType", GlueType_$reflection()]]);
606
+ }
607
+
608
+ export class GlueReExport extends Record {
609
+ constructor(Name, Declaration, ModulePath) {
610
+ super();
611
+ this.Name = Name;
612
+ this.Declaration = Declaration;
613
+ this.ModulePath = ModulePath;
614
+ }
615
+ }
616
+
617
+ export function GlueReExport_$reflection() {
618
+ return record_type("Glutinum.Converter.GlueAST.GlueReExport", [], GlueReExport, () => [["Name", string_type], ["Declaration", GlueType_$reflection()], ["ModulePath", list_type(string_type)]]);
544
619
  }
545
620
 
546
621
  export function GlueMember__TryGetAccessor(this$) {
547
622
  switch (this$.tag) {
548
623
  case 2:
549
- return new GlueAccessor(0, []);
624
+ return GlueAccessor.ReadOnly;
550
625
  case 3:
551
- return new GlueAccessor(1, []);
626
+ return GlueAccessor.WriteOnly;
552
627
  case 0:
553
628
  case 4:
554
629
  case 5:
555
630
  case 6:
556
631
  case 7:
557
- return void 0;
632
+ return undefined;
558
633
  default:
559
634
  return this$.fields[0].Accessor;
560
635
  }
561
636
  }
562
637
 
638
+ export function GlueMember__get_Documentation(this$) {
639
+ switch (this$.tag) {
640
+ case 1:
641
+ return this$.fields[0].Documentation;
642
+ case 2:
643
+ return this$.fields[0].Documentation;
644
+ case 3:
645
+ return this$.fields[0].Documentation;
646
+ case 6:
647
+ return this$.fields[0].Documentation;
648
+ case 4:
649
+ case 5:
650
+ case 7:
651
+ return empty();
652
+ default:
653
+ return this$.fields[0].Documentation;
654
+ }
655
+ }
656
+
563
657
  export function GlueMember__get_TypeParameters(this$) {
564
658
  switch (this$.tag) {
565
659
  case 1:
@@ -645,6 +739,8 @@ export function GlueType__get_Name(this$) {
645
739
  return "obj";
646
740
  case 10:
647
741
  return "obj";
742
+ case 12:
743
+ return "bigint";
648
744
  case 11:
649
745
  return "obj";
650
746
  default:
@@ -672,11 +768,11 @@ export function GlueType__get_Name(this$) {
672
768
  case 13:
673
769
  return this$.fields[0].Name;
674
770
  case 14:
675
- return `ResizeArray<${GlueType__get_Name(this$.fields[0])}>`;
771
+ return concat("ResizeArray<", GlueType__get_Name(this$.fields[0]), ">");
676
772
  case 29: {
677
773
  const info_11 = this$.fields[0];
678
774
  if (info_11.tag === 14) {
679
- return `ReadonlyArray<${GlueType__get_Name(info_11.fields[0])}>`;
775
+ return concat("ReadonlyArray<", GlueType__get_Name(info_11.fields[0]), ">");
680
776
  }
681
777
  else {
682
778
  return GlueType__get_Name(info_11);
@@ -696,8 +792,12 @@ export function GlueType__get_Name(this$) {
696
792
  case 0:
697
793
  case 24:
698
794
  case 28:
795
+ case 30:
796
+ case 32:
699
797
  case 23:
700
798
  return "obj";
799
+ case 31:
800
+ return this$.fields[0].Name;
701
801
  case 26: {
702
802
  const utilityType = this$.fields[0];
703
803
  switch (utilityType.tag) {
@@ -723,7 +823,7 @@ export function GlueType__get_TypeParameters(this$) {
723
823
  case 12:
724
824
  return this$.fields[0].TypeParameters;
725
825
  case 13:
726
- return map((t) => (new GlueTypeParameter(GlueType__get_Name(t), void 0, void 0)), this$.fields[0].TypeArguments);
826
+ return map((t) => (new GlueTypeParameter(GlueType__get_Name(t), undefined, undefined)), this$.fields[0].TypeArguments);
727
827
  case 6:
728
828
  return this$.fields[0].TypeParameters;
729
829
  case 2:
@@ -763,6 +863,9 @@ export function GlueType__get_TypeParameters(this$) {
763
863
  case 11:
764
864
  case 16:
765
865
  case 21:
866
+ case 30:
867
+ case 31:
868
+ case 32:
766
869
  case 28:
767
870
  return empty();
768
871
  default:
@@ -770,4 +873,200 @@ export function GlueType__get_TypeParameters(this$) {
770
873
  }
771
874
  }
772
875
 
773
- //# sourceMappingURL=GlueAST.js.map
876
+ export function GlueSubstitution_mentionedTypeParameters(glueType_mut) {
877
+ GlueSubstitution_mentionedTypeParameters:
878
+ while (true) {
879
+ const glueType = glueType_mut;
880
+ let matchResult, glueType_2;
881
+ switch (glueType.tag) {
882
+ case 16: {
883
+ matchResult = 0;
884
+ break;
885
+ }
886
+ case 13: {
887
+ matchResult = 1;
888
+ break;
889
+ }
890
+ case 14: {
891
+ matchResult = 2;
892
+ glueType_2 = glueType.fields[0];
893
+ break;
894
+ }
895
+ case 29: {
896
+ matchResult = 2;
897
+ glueType_2 = glueType.fields[0];
898
+ break;
899
+ }
900
+ case 22: {
901
+ matchResult = 2;
902
+ glueType_2 = glueType.fields[0];
903
+ break;
904
+ }
905
+ case 9: {
906
+ matchResult = 2;
907
+ glueType_2 = glueType.fields[0];
908
+ break;
909
+ }
910
+ case 7: {
911
+ matchResult = 3;
912
+ break;
913
+ }
914
+ case 18: {
915
+ matchResult = 4;
916
+ break;
917
+ }
918
+ case 19: {
919
+ matchResult = 5;
920
+ break;
921
+ }
922
+ case 10: {
923
+ matchResult = 6;
924
+ break;
925
+ }
926
+ case 15: {
927
+ matchResult = 7;
928
+ break;
929
+ }
930
+ default:
931
+ matchResult = 8;
932
+ }
933
+ switch (matchResult) {
934
+ case 0:
935
+ return singleton(glueType.fields[0]);
936
+ case 1:
937
+ return collect(GlueSubstitution_mentionedTypeParameters, glueType.fields[0].TypeArguments);
938
+ case 2: {
939
+ glueType_mut = glueType_2;
940
+ continue GlueSubstitution_mentionedTypeParameters;
941
+ }
942
+ case 3:
943
+ return collect(GlueSubstitution_mentionedTypeParameters, glueType.fields[0].fields[0]);
944
+ case 4:
945
+ return collect(GlueSubstitution_mentionedTypeParameters, glueType.fields[0]);
946
+ case 5: {
947
+ glueType_mut = glueType.fields[0].Type;
948
+ continue GlueSubstitution_mentionedTypeParameters;
949
+ }
950
+ case 6: {
951
+ const indexedAccess = glueType.fields[0];
952
+ return append(GlueSubstitution_mentionedTypeParameters(indexedAccess.ObjectType), GlueSubstitution_mentionedTypeParameters(indexedAccess.IndexType));
953
+ }
954
+ case 7: {
955
+ const functionType = glueType.fields[0];
956
+ return append(GlueSubstitution_mentionedTypeParameters(functionType.Type), collect((parameter) => GlueSubstitution_mentionedTypeParameters(parameter.Type), functionType.Parameters));
957
+ }
958
+ default:
959
+ return empty();
960
+ }
961
+ break;
962
+ }
963
+ }
964
+
965
+ export function GlueSubstitution_substitute(substitutions, glueType) {
966
+ let Parameters, ObjectType;
967
+ const substitute = (glueType_1) => GlueSubstitution_substitute(substitutions, glueType_1);
968
+ switch (glueType.tag) {
969
+ case 16: {
970
+ const matchValue = tryFind(glueType.fields[0], substitutions);
971
+ if (matchValue == null) {
972
+ return glueType;
973
+ }
974
+ else {
975
+ return matchValue;
976
+ }
977
+ }
978
+ case 13: {
979
+ const typeReference = glueType.fields[0];
980
+ return new GlueType(/* TypeReference */ 13, [new GlueTypeReference(typeReference.Name, typeReference.FullName, typeReference.ModulePath, map(substitute, typeReference.TypeArguments), typeReference.IsStandardLibrary)]);
981
+ }
982
+ case 7:
983
+ return new GlueType(/* Union */ 7, [new GlueTypeUnion(map(substitute, glueType.fields[0].fields[0]))]);
984
+ case 14:
985
+ return new GlueType(/* Array */ 14, [substitute(glueType.fields[0])]);
986
+ case 29:
987
+ return new GlueType(/* ReadOnly */ 29, [substitute(glueType.fields[0])]);
988
+ case 22:
989
+ return new GlueType(/* OptionalType */ 22, [substitute(glueType.fields[0])]);
990
+ case 18:
991
+ return new GlueType(/* TupleType */ 18, [map(substitute, glueType.fields[0])]);
992
+ case 19: {
993
+ const namedTuple = glueType.fields[0];
994
+ return new GlueType(/* NamedTupleType */ 19, [new NamedTupleType(namedTuple.Name, substitute(namedTuple.Type))]);
995
+ }
996
+ case 15: {
997
+ const functionType = glueType.fields[0];
998
+ return new GlueType(/* FunctionType */ 15, [(Parameters = map((parameter) => GlueSubstitution_substituteParameter(substitutions, parameter), functionType.Parameters), new GlueFunctionType(functionType.Documentation, substitute(functionType.Type), List_distinctBy((_arg) => _arg.Name, collect((typeParameter) => {
999
+ const matchValue_1 = tryFind(typeParameter.Name, substitutions);
1000
+ if (matchValue_1 != null) {
1001
+ return map((name_1) => (new GlueTypeParameter(name_1, undefined, undefined)), GlueSubstitution_mentionedTypeParameters(matchValue_1));
1002
+ }
1003
+ else {
1004
+ return singleton(typeParameter);
1005
+ }
1006
+ }, functionType.TypeParameters), {
1007
+ Equals: (x, y) => (x === y),
1008
+ GetHashCode: (x) => (stringHash(x) | 0),
1009
+ }), functionType.OwnTypeParameterNames, Parameters))]);
1010
+ }
1011
+ case 32: {
1012
+ const conditionalType = glueType.fields[0];
1013
+ return new GlueType(/* ConditionalType */ 32, [new GlueConditionalType(substitute(conditionalType.CheckType), substitute(conditionalType.ExtendsType), substitute(conditionalType.TrueType), substitute(conditionalType.FalseType))]);
1014
+ }
1015
+ case 9:
1016
+ return new GlueType(/* KeyOf */ 9, [substitute(glueType.fields[0])]);
1017
+ case 10: {
1018
+ const indexedAccess = glueType.fields[0];
1019
+ return new GlueType(/* IndexedAccessType */ 10, [(ObjectType = substitute(indexedAccess.ObjectType), new GlueIndexedAccessType(substitute(indexedAccess.IndexType), ObjectType))]);
1020
+ }
1021
+ case 20:
1022
+ return new GlueType(/* IntersectionType */ 20, [map((glueMember) => GlueSubstitution_substituteMember(substitutions, glueMember), glueType.fields[0])]);
1023
+ case 21:
1024
+ return new GlueType(/* TypeLiteral */ 21, [new GlueTypeLiteral(map((glueMember_1) => GlueSubstitution_substituteMember(substitutions, glueMember_1), glueType.fields[0].Members))]);
1025
+ default:
1026
+ return glueType;
1027
+ }
1028
+ }
1029
+
1030
+ export function GlueSubstitution_substituteParameter(substitutions, parameter) {
1031
+ return new GlueParameter(parameter.Name, parameter.IsOptional, parameter.IsSpread, GlueSubstitution_substitute(substitutions, parameter.Type));
1032
+ }
1033
+
1034
+ export function GlueSubstitution_substituteMember(substitutions, glueMember) {
1035
+ const substitute = (glueType) => GlueSubstitution_substitute(substitutions, glueType);
1036
+ const parameters = (list) => map((parameter) => GlueSubstitution_substituteParameter(substitutions, parameter), list);
1037
+ switch (glueMember.tag) {
1038
+ case 0: {
1039
+ const info_1 = glueMember.fields[0];
1040
+ return new GlueMember(/* Method */ 0, [new GlueMethod(info_1.Name, info_1.Documentation, info_1.TypeParameters, parameters(info_1.Parameters), substitute(info_1.Type), info_1.IsOptional, info_1.IsStatic)]);
1041
+ }
1042
+ case 6: {
1043
+ const info_2 = glueMember.fields[0];
1044
+ return new GlueMember(/* MethodSignature */ 6, [new GlueMethodSignature(info_2.Name, info_2.Documentation, info_2.TypeParameters, parameters(info_2.Parameters), substitute(info_2.Type))]);
1045
+ }
1046
+ case 2: {
1047
+ const info_3 = glueMember.fields[0];
1048
+ return new GlueMember(/* GetAccessor */ 2, [new GlueGetAccessor(info_3.Name, info_3.Documentation, substitute(info_3.Type), info_3.IsStatic, info_3.IsPrivate)]);
1049
+ }
1050
+ case 3: {
1051
+ const info_4 = glueMember.fields[0];
1052
+ return new GlueMember(/* SetAccessor */ 3, [new GlueSetAccessor(info_4.Name, info_4.Documentation, substitute(info_4.ArgumentType), info_4.IsStatic, info_4.IsPrivate)]);
1053
+ }
1054
+ case 4: {
1055
+ const info_5 = glueMember.fields[0];
1056
+ return new GlueMember(/* CallSignature */ 4, [new GlueCallSignature(info_5.TypeParameters, parameters(info_5.Parameters), substitute(info_5.Type))]);
1057
+ }
1058
+ case 5: {
1059
+ const info_6 = glueMember.fields[0];
1060
+ return new GlueMember(/* IndexSignature */ 5, [new GlueIndexSignature(parameters(info_6.Parameters), substitute(info_6.Type), info_6.IsReadOnly)]);
1061
+ }
1062
+ case 7: {
1063
+ const info_7 = glueMember.fields[0];
1064
+ return new GlueMember(/* ConstructSignature */ 7, [new GlueConstructSignature(parameters(info_7.Parameters), substitute(info_7.Type))]);
1065
+ }
1066
+ default: {
1067
+ const info = glueMember.fields[0];
1068
+ return new GlueMember(/* Property */ 1, [new GlueProperty(info.Name, info.Documentation, substitute(info.Type), info.IsStatic, info.IsOptional, info.Accessor, info.IsPrivate)]);
1069
+ }
1070
+ }
1071
+ }
1072
+
@@ -1,28 +1,27 @@
1
+
1
2
  import chalk from "chalk";
2
- import { some } from "../fable_modules/fable-library-js.4.14.0/Option.js";
3
3
 
4
4
  export function success(text) {
5
- console.error(some(chalk.greenBright(text)));
5
+ console.error(chalk.greenBright(text));
6
6
  }
7
7
 
8
8
  export function log(text) {
9
- console.error(some(text));
9
+ console.error(text);
10
10
  }
11
11
 
12
12
  export function info(text) {
13
- console.error(some(chalk.blueBright(text)));
13
+ console.error(chalk.blueBright(text));
14
14
  }
15
15
 
16
16
  export function warn(text) {
17
- console.error(some(chalk.yellowBright(text)));
17
+ console.error(chalk.yellowBright(text));
18
18
  }
19
19
 
20
20
  export function error(text) {
21
- console.error(some(chalk.redBright(text)));
21
+ console.error(chalk.redBright(text));
22
22
  }
23
23
 
24
24
  export function debug(text) {
25
- console.error(some(chalk.gray(text)));
25
+ console.error(chalk.gray(text));
26
26
  }
27
27
 
28
- //# sourceMappingURL=Log.js.map