@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,16 +1,289 @@
1
- import { TypeScriptReader_$ctor_Z51F60704 } from "./Reader/TypeScriptReader.js";
2
- import { ofSeq, map } from "../fable_modules/fable-library-js.4.14.0/List.js";
3
- import { value } from "../fable_modules/fable-library-js.4.14.0/Option.js";
1
+
2
+ import { TypeScriptReader_$ctor_26550FA4 } from "./Reader/TypeScriptReader.js";
3
+ import { unwrap, value } from "../fable_modules/fable-library-js.5.17.2/Option.js";
4
+ import { isMergedInterfaceDeclaration, promotedAmbientModule } from "./Reader/Utils.js";
5
+ import { removeSurroundingQuotes } from "./Utils/Naming.js";
6
+ import { exists, filter, sortBy, isEmpty, partition, collect, singleton, append, fold, empty as empty_1, cons, foldBack, choose, ofSeq } from "../fable_modules/fable-library-js.5.17.2/List.js";
7
+ import { ts } from "@ts-morph/bootstrap";
8
+ import { FSharpSet__Contains, ofSeq as ofSeq_1 } from "../fable_modules/fable-library-js.5.17.2/Set.js";
9
+ import { comparePrimitives, equals, compareArrays } from "../fable_modules/fable-library-js.5.17.2/Util.js";
10
+ import { empty, add, tryFind } from "../fable_modules/fable-library-js.5.17.2/Map.js";
11
+ import { GlueFileModule, GlueType, GlueModuleDeclaration } from "./GlueAST.js";
12
+ import { normalizePath } from "./Utils/String.js";
13
+ import { addRangeInPlace } from "../fable_modules/fable-library-js.5.17.2/Array.js";
14
+ import { PackageContext__TryFindPackage_Z721C83C5, PackageContext__FileModuleName_Z11793CAF, PackageContext__ImportSpecifier_Z721C83C5 } from "./Reader/Types.js";
15
+ import { FSharpChoice$2 } from "../fable_modules/fable-library-js.5.17.2/Choice.js";
4
16
 
5
17
  export function readSourceFile(checker, sourceFile) {
6
- const reader = TypeScriptReader_$ctor_Z51F60704(checker);
7
- const GlueAST = map((node) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](node), ofSeq(value(sourceFile).statements));
18
+ let moduleDeclaration;
19
+ const reader = TypeScriptReader_$ctor_26550FA4(checker);
20
+ const GlueAST = readStatements(reader, value(sourceFile));
21
+ let ImportSpecifier;
22
+ const option_1 = promotedAmbientModule(value(sourceFile));
23
+ ImportSpecifier = ((option_1 != null) ? ((moduleDeclaration = option_1, removeSurroundingQuotes(moduleDeclaration.name.text))) : undefined);
8
24
  const Warnings = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
9
25
  return {
10
26
  GlueAST: GlueAST,
27
+ ImportSpecifier: unwrap(ImportSpecifier),
28
+ TypeMemory: ofSeq(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_TypeMemory"]()),
29
+ Warnings: Warnings,
30
+ };
31
+ }
32
+
33
+ function isScript(sourceFile) {
34
+ if (!ts.isExternalModule(sourceFile)) {
35
+ return promotedAmbientModule(sourceFile) == null;
36
+ }
37
+ else {
38
+ return false;
39
+ }
40
+ }
41
+
42
+ function declarationKey(glueType) {
43
+ switch (glueType.tag) {
44
+ case 1:
45
+ return ["type", glueType.fields[0].Name];
46
+ case 5:
47
+ return ["type", glueType.fields[0].Name];
48
+ case 4:
49
+ return ["type", glueType.fields[0].Name];
50
+ case 12:
51
+ return ["class", glueType.fields[0].Name];
52
+ case 6:
53
+ return ["value", glueType.fields[0].Name];
54
+ case 2:
55
+ return ["value", glueType.fields[0].Name];
56
+ default:
57
+ return undefined;
58
+ }
59
+ }
60
+
61
+ function dropShadowedReExports(types) {
62
+ const localKeys = ofSeq_1(choose((glueType) => {
63
+ if (glueType.tag === 31) {
64
+ return undefined;
65
+ }
66
+ else {
67
+ return declarationKey(glueType);
68
+ }
69
+ }, types), {
70
+ Compare: (x, y) => (compareArrays(x, y) | 0),
71
+ });
72
+ return foldBack((glueType_1, tupledArg) => {
73
+ let modulePath;
74
+ const seen = tupledArg[0];
75
+ const acc = tupledArg[1];
76
+ if (glueType_1.tag === 31) {
77
+ const reExport = glueType_1.fields[0];
78
+ const matchValue = declarationKey(reExport.Declaration);
79
+ if (matchValue == null) {
80
+ return [seen, cons(glueType_1, acc)];
81
+ }
82
+ else {
83
+ const category = matchValue[0];
84
+ const key = [category, reExport.Name];
85
+ if (FSharpSet__Contains(localKeys, key)) {
86
+ return [seen, acc];
87
+ }
88
+ else {
89
+ const matchValue_1 = tryFind(key, seen);
90
+ if (matchValue_1 == null) {
91
+ return [add(key, reExport.ModulePath, seen), cons(glueType_1, acc)];
92
+ }
93
+ else if ((modulePath = matchValue_1, (category === "value") && equals(modulePath, reExport.ModulePath))) {
94
+ const modulePath_1 = matchValue_1;
95
+ return [seen, cons(glueType_1, acc)];
96
+ }
97
+ else {
98
+ return [seen, acc];
99
+ }
100
+ }
101
+ }
102
+ }
103
+ else {
104
+ return [seen, cons(glueType_1, acc)];
105
+ }
106
+ }, types, [empty({
107
+ Compare: (x_1, y_1) => (compareArrays(x_1, y_1) | 0),
108
+ }), empty_1()])[1];
109
+ }
110
+
111
+ function extractGlobals(types) {
112
+ return fold((tupledArg, glueType) => {
113
+ const remaining = tupledArg[0];
114
+ const globals = tupledArg[1];
115
+ if (glueType.tag === 11) {
116
+ if (glueType.fields[0].IsGlobal) {
117
+ return [remaining, append(globals, glueType.fields[0].Types)];
118
+ }
119
+ else {
120
+ const patternInput = extractGlobals(glueType.fields[0].Types);
121
+ return [append(remaining, singleton(new GlueType(/* ModuleDeclaration */ 11, [new GlueModuleDeclaration(glueType.fields[0].Documentation, glueType.fields[0].Name, glueType.fields[0].IsTopLevel, glueType.fields[0].IsNamespace, glueType.fields[0].IsGlobal, glueType.fields[0].IsRecursive, patternInput[0])]))), append(globals, patternInput[1])];
122
+ }
123
+ }
124
+ else {
125
+ return [append(remaining, singleton(glueType)), globals];
126
+ }
127
+ }, [empty_1(), empty_1()], types);
128
+ }
129
+
130
+ function readStatements(reader, sourceFile) {
131
+ const promoted = promotedAmbientModule(sourceFile);
132
+ return dropShadowedReExports(collect((statement) => {
133
+ const matchValue = statement.kind;
134
+ let matchResult;
135
+ switch (matchValue) {
136
+ case 264: {
137
+ if (isMergedInterfaceDeclaration(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_PackageContext"](), statement)) {
138
+ matchResult = 1;
139
+ }
140
+ else {
141
+ matchResult = 3;
142
+ }
143
+ break;
144
+ }
145
+ case 267: {
146
+ if ((promoted == null) ? false : (promoted === statement)) {
147
+ matchResult = 2;
148
+ }
149
+ else {
150
+ matchResult = 3;
151
+ }
152
+ break;
153
+ }
154
+ case 278: {
155
+ matchResult = 0;
156
+ break;
157
+ }
158
+ default:
159
+ matchResult = 3;
160
+ }
161
+ switch (matchResult) {
162
+ case 0:
163
+ return reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadExportDeclarationEF24BD1"](statement);
164
+ case 1:
165
+ return empty_1();
166
+ case 2: {
167
+ const matchValue_1 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](statement);
168
+ if (matchValue_1.tag === 11) {
169
+ return matchValue_1.fields[0].Types;
170
+ }
171
+ else {
172
+ return singleton(matchValue_1);
173
+ }
174
+ }
175
+ default:
176
+ return singleton(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](statement));
177
+ }
178
+ }, ofSeq(sourceFile.statements)));
179
+ }
180
+
181
+ /**
182
+ * Read every file of the packages, the target package entry file stays at the top level,
183
+ * its other files and the dependency packages become modules.
184
+ */
185
+ export function readPackages(checker, packageContext, sourceFiles) {
186
+ const reader = TypeScriptReader_$ctor_26550FA4(checker, packageContext);
187
+ const glueAst = collect((package$_2) => {
188
+ let patternInput_3;
189
+ const package$_1 = package$_2;
190
+ const globals = [];
191
+ const patternInput_2 = partition((_arg_1) => {
192
+ if (_arg_1.tag === 1) {
193
+ return false;
194
+ }
195
+ else {
196
+ return true;
197
+ }
198
+ }, choose((sourceFile_2) => {
199
+ const fileName = normalizePath(sourceFile_2.fileName);
200
+ const patternInput = extractGlobals(readStatements(reader, sourceFile_2));
201
+ const types_1 = patternInput[0];
202
+ addRangeInPlace(patternInput[1], globals);
203
+ let importSpecifier;
204
+ const matchValue_1 = promotedAmbientModule(sourceFile_2);
205
+ if (matchValue_1 == null) {
206
+ importSpecifier = PackageContext__ImportSpecifier_Z721C83C5(packageContext, fileName);
207
+ }
208
+ else {
209
+ const moduleDeclaration = matchValue_1;
210
+ importSpecifier = removeSurroundingQuotes(moduleDeclaration.name.text);
211
+ }
212
+ const fileModule = (types_2) => (new FSharpChoice$2(/* Choice2Of2 */ 1, [new GlueType(/* FileModule */ 30, [new GlueFileModule(PackageContext__FileModuleName_Z11793CAF(packageContext, package$_1, fileName), importSpecifier, false, types_2)])]));
213
+ if (fileName === package$_1.EntryFile) {
214
+ return new FSharpChoice$2(/* Choice1Of2 */ 0, [[types_1, isScript(sourceFile_2)]]);
215
+ }
216
+ else if (isScript(sourceFile_2)) {
217
+ const patternInput_1 = partition((_arg) => {
218
+ if (_arg.tag === 11) {
219
+ const info = _arg.fields[0];
220
+ if (info.Name.startsWith("\"")) {
221
+ return true;
222
+ }
223
+ else {
224
+ return info.Name.startsWith("\'");
225
+ }
226
+ }
227
+ else {
228
+ return false;
229
+ }
230
+ }, types_1);
231
+ const ambientModules = patternInput_1[0];
232
+ addRangeInPlace(patternInput_1[1], globals);
233
+ if (isEmpty(ambientModules)) {
234
+ return undefined;
235
+ }
236
+ else {
237
+ return fileModule(ambientModules);
238
+ }
239
+ }
240
+ else {
241
+ return fileModule(types_1);
242
+ }
243
+ }, sortBy((sourceFile_1) => normalizePath(sourceFile_1.fileName), filter((sourceFile) => {
244
+ const matchValue = PackageContext__TryFindPackage_Z721C83C5(packageContext, sourceFile.fileName);
245
+ if (matchValue == null) {
246
+ return false;
247
+ }
248
+ else {
249
+ return matchValue.Dir === package$_1.Dir;
250
+ }
251
+ }, sourceFiles), {
252
+ Compare: (x, y) => (comparePrimitives(x, y) | 0),
253
+ })));
254
+ const entryTypes = patternInput_2[0];
255
+ const entryIsGlobal = exists((_arg_2) => {
256
+ if (_arg_2.tag === 1) {
257
+ return false;
258
+ }
259
+ else {
260
+ return _arg_2.fields[0][1];
261
+ }
262
+ }, entryTypes);
263
+ const entryTypes_1 = collect((_arg_3) => {
264
+ if (_arg_3.tag === 1) {
265
+ return empty_1();
266
+ }
267
+ else {
268
+ return _arg_3.fields[0][0];
269
+ }
270
+ }, entryTypes);
271
+ const fileModules_1 = choose((_arg_4) => {
272
+ if (_arg_4.tag === 0) {
273
+ return undefined;
274
+ }
275
+ else {
276
+ return _arg_4.fields[0];
277
+ }
278
+ }, patternInput_2[1]);
279
+ patternInput_3 = [append(entryTypes_1, append((globals.length === 0) ? empty_1() : singleton(new GlueType(/* ModuleDeclaration */ 11, [new GlueModuleDeclaration(empty_1(), "global", false, false, true, false, ofSeq(globals))])), fileModules_1)), entryIsGlobal];
280
+ return singleton(new GlueType(/* FileModule */ 30, [new GlueFileModule(package$_2.ModuleName, package$_2.RuntimeName, patternInput_3[1], patternInput_3[0])]));
281
+ }, packageContext.Packages);
282
+ const Warnings = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
283
+ return {
284
+ GlueAST: glueAst,
11
285
  TypeMemory: ofSeq(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_TypeMemory"]()),
12
286
  Warnings: Warnings,
13
287
  };
14
288
  }
15
289
 
16
- //# sourceMappingURL=Read.js.map
@@ -1,7 +1,10 @@
1
- import { map, choose, partition } from "../../fable_modules/fable-library-js.4.14.0/List.js";
2
- import { toList } from "../../fable_modules/fable-library-js.4.14.0/Seq.js";
1
+
2
+ import { map, choose, partition } from "../../fable_modules/fable-library-js.5.17.2/List.js";
3
+ import { toList } from "../../fable_modules/fable-library-js.5.17.2/Seq.js";
3
4
  import { GlueType, GlueClassDeclaration, GlueConstructor } from "../GlueAST.js";
4
- import { readHeritageClauses, ModifierUtil_HasModifier_Z687DC302 } from "./Utils.js";
5
+ import { isExportAssignmentTarget, isExportedDeclaration, readHeritageClauses, getFullNameOrEmpty, ModifierUtil_HasModifier_Z687DC302 } from "./Utils.js";
6
+ import { singleton } from "../../fable_modules/fable-library-js.5.17.2/Set.js";
7
+ import { comparePrimitives } from "../../fable_modules/fable-library-js.5.17.2/Util.js";
5
8
 
6
9
  export function readClassDeclaration(reader, classDeclaration) {
7
10
  const name = classDeclaration.name;
@@ -19,18 +22,21 @@ export function readClassDeclaration(reader, classDeclaration) {
19
22
  return new GlueConstructor(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromSignature61B89E55"](constructor), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](constructor.parameters));
20
23
  }
21
24
  else {
22
- return void 0;
25
+ return undefined;
23
26
  }
24
27
  }, patternInput[0]);
25
28
  const members_2 = map((declaration) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](declaration), toList(patternInput[1]));
26
29
  const isDefaultExport = ModifierUtil_HasModifier_Z687DC302(classDeclaration.modifiers, 90);
27
- const classDeclaration_1 = new GlueType(12, [new GlueClassDeclaration(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](classDeclaration), name.getText(), constructors_1, members_2, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](classDeclaration.typeParameters), readHeritageClauses(reader, classDeclaration.heritageClauses))]);
30
+ const classDeclaration_1 = new GlueType(/* ClassDeclaration */ 12, [new GlueClassDeclaration(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](classDeclaration), getFullNameOrEmpty(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](), classDeclaration), name.getText(), constructors_1, members_2, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](classDeclaration.typeParameters), readHeritageClauses(reader, classDeclaration.heritageClauses), (isDefaultExport ? true : isExportedDeclaration(classDeclaration, singleton(name.getText(), {
31
+ Compare: (x, y) => (comparePrimitives(x, y) | 0),
32
+ }))) ? true : isExportAssignmentTarget(classDeclaration, singleton(name.getText(), {
33
+ Compare: (x_1, y_1) => (comparePrimitives(x_1, y_1) | 0),
34
+ })))]);
28
35
  if (isDefaultExport) {
29
- return new GlueType(24, [classDeclaration_1]);
36
+ return new GlueType(/* ExportDefault */ 24, [classDeclaration_1]);
30
37
  }
31
38
  else {
32
39
  return classDeclaration_1;
33
40
  }
34
41
  }
35
42
 
36
- //# sourceMappingURL=ClassDeclaration.js.map
@@ -1,65 +1,150 @@
1
- import { ModifierUtil_GetAccessor_Z9A9AE16, ModifierUtil_HasModifier_Z687DC302, ModifierUtil_GetAccessor_693AB805 } from "./Utils.js";
2
- import { GlueIndexSignature, GlueConstructSignature, GlueCallSignature, GlueSetAccessor, GlueGetAccessor, GlueMethod, GlueMethodSignature, GlueMember, GlueProperty } from "../GlueAST.js";
3
- import { map, defaultArg } from "../../fable_modules/fable-library-js.4.14.0/Option.js";
4
- import { exists } from "../../fable_modules/fable-library-js.4.14.0/Seq.js";
1
+
2
+ import { Operators_IsNull } from "../../fable_modules/fable-library-js.5.17.2/FSharp.Core.js";
3
+ import { Exception, defaultOf } from "../../fable_modules/fable-library-js.5.17.2/Util.js";
4
+ import { resolveAlias, readMemberTypeParameters, ModifierUtil_GetAccessor_Z9A9AE16, identifierText, ModifierUtil_HasModifier_Z687DC302, ModifierUtil_GetAccessor_693AB805 } from "./Utils.js";
5
+ import { GlueAccessor, GlueType, GluePrimitive, GlueIndexSignature, GlueConstructSignature, GlueCallSignature, GlueSetAccessor, GlueGetAccessor, GlueMethod, GlueMethodSignature, GlueMember, GlueProperty } from "../GlueAST.js";
6
+ import { defaultArg } from "../../fable_modules/fable-library-js.5.17.2/Option.js";
7
+ import { exists } from "../../fable_modules/fable-library-js.5.17.2/Seq.js";
8
+ import { item } from "../../fable_modules/fable-library-js.5.17.2/Array.js";
9
+ import { empty } from "../../fable_modules/fable-library-js.5.17.2/List.js";
5
10
  import { Report_readerError_Z19516DCE } from "./Report.js";
11
+ import { concat } from "../../fable_modules/fable-library-js.5.17.2/String.js";
6
12
  import { TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name } from "../TypeScript.Extensions.js";
7
13
 
14
+ /**
15
+ * The constraints of a method stay implicit in F#, only the defaults make an overload and
16
+ * `K extends keyof Map` keeps the map, `Map[K]` is resolved through it
17
+ */
8
18
  export function readDeclaration(reader, declaration) {
9
- let name_1, Name_1, Documentation_2, Type_1, IsOptional_1, Documentation_1, matchValue_1;
10
- const matchValue = declaration.kind | 0;
19
+ let name_1, matchValue_1, Name_1, Documentation_2, Type_1, IsOptional_1, Documentation_1, option_1, matchValue_2, matchValue_5, typeNode, declarations, target_2, matchValue_4;
20
+ const matchValue = declaration.kind;
11
21
  switch (matchValue) {
12
22
  case 171: {
13
23
  const propertySignature = declaration;
14
24
  const name = propertySignature.name;
15
- return new GlueMember(1, [new GlueProperty((name_1 = propertySignature.name, (name_1.text == null) ? (name_1.getText()) : name_1.text), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](propertySignature.type), false, propertySignature.questionToken != null, ModifierUtil_GetAccessor_693AB805(propertySignature.modifiers), false)]);
25
+ return new GlueMember(/* Property */ 1, [new GlueProperty((name_1 = propertySignature.name, !Operators_IsNull(name_1.text) ? name_1.text : ((name_1.pos < 0) ? ((matchValue_1 = name_1.escapedText, (matchValue_1 === defaultOf()) ? "computed" : matchValue_1)) : (name_1.getText()))), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](propertySignature.type), false, propertySignature.questionToken != null, ModifierUtil_GetAccessor_693AB805(propertySignature.modifiers), false)]);
16
26
  }
17
27
  case 172: {
18
28
  const propertyDeclaration = declaration;
19
29
  const name_4 = propertyDeclaration.name;
20
30
  const hasPrivateModifier = ModifierUtil_HasModifier_Z687DC302(propertyDeclaration.modifiers, 123);
21
31
  const isPrivateIdentifier = name_4.kind === 81;
22
- return new GlueMember(1, [(Name_1 = name_4.getText(), (Documentation_2 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_4), (Type_1 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](propertyDeclaration.type), (IsOptional_1 = (propertyDeclaration.questionToken != null), new GlueProperty(Name_1, Documentation_2, Type_1, ModifierUtil_HasModifier_Z687DC302(propertyDeclaration.modifiers, 126), IsOptional_1, ModifierUtil_GetAccessor_Z9A9AE16(propertyDeclaration.modifiers), hasPrivateModifier ? true : isPrivateIdentifier)))))]);
32
+ return new GlueMember(/* Property */ 1, [(Name_1 = identifierText(name_4), (Documentation_2 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_4), (Type_1 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](propertyDeclaration.type), (IsOptional_1 = (propertyDeclaration.questionToken != null), new GlueProperty(Name_1, Documentation_2, Type_1, ModifierUtil_HasModifier_Z687DC302(propertyDeclaration.modifiers, 126), IsOptional_1, ModifierUtil_GetAccessor_Z9A9AE16(propertyDeclaration.modifiers), hasPrivateModifier ? true : isPrivateIdentifier)))))]);
23
33
  }
24
34
  case 173: {
25
35
  const methodSignature = declaration;
26
36
  const name_3 = methodSignature.name;
27
- return new GlueMember(6, [(Documentation_1 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_3), new GlueMethodSignature(name_3.getText(), Documentation_1, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](methodSignature.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](methodSignature.type)))]);
37
+ return new GlueMember(/* MethodSignature */ 6, [(Documentation_1 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_3), new GlueMethodSignature(identifierText(name_3), Documentation_1, readMemberTypeParameters(reader, methodSignature.typeParameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](methodSignature.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](methodSignature.type)))]);
28
38
  }
29
39
  case 174: {
30
40
  const methodDeclaration = declaration;
31
41
  const name_2 = methodDeclaration.name;
32
- return new GlueMember(0, [new GlueMethod(name_2.getText(), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_2), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](methodDeclaration.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](methodDeclaration.type), methodDeclaration.questionToken != null, defaultArg(map((modifiers) => exists((modifier) => (modifier.kind === 126), modifiers), methodDeclaration.modifiers), false))]);
42
+ return new GlueMember(/* Method */ 0, [new GlueMethod(identifierText(name_2), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_2), readMemberTypeParameters(reader, methodDeclaration.typeParameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](methodDeclaration.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](methodDeclaration.type), methodDeclaration.questionToken != null, defaultArg((option_1 = methodDeclaration.modifiers, (option_1 != null) ? exists((modifier) => (modifier.kind === 126), option_1) : undefined), false))]);
33
43
  }
34
44
  case 177: {
35
45
  const getAccessorDeclaration = declaration;
36
46
  const name_5 = getAccessorDeclaration.name;
37
47
  const hasPrivateModifier_1 = ModifierUtil_HasModifier_Z687DC302(getAccessorDeclaration.modifiers, 123);
38
48
  const isPrivateIdentifier_1 = name_5.kind === 81;
39
- return new GlueMember(2, [new GlueGetAccessor(name_5.getText(), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_5), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](getAccessorDeclaration.type), ModifierUtil_HasModifier_Z687DC302(getAccessorDeclaration.modifiers, 126), hasPrivateModifier_1 ? true : isPrivateIdentifier_1)]);
49
+ return new GlueMember(/* GetAccessor */ 2, [new GlueGetAccessor(identifierText(name_5), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_5), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](getAccessorDeclaration.type), ModifierUtil_HasModifier_Z687DC302(getAccessorDeclaration.modifiers, 126), hasPrivateModifier_1 ? true : isPrivateIdentifier_1)]);
40
50
  }
41
51
  case 178: {
42
52
  const setAccessorDeclaration = declaration;
43
53
  const name_6 = setAccessorDeclaration.name;
44
54
  const hasPrivateModifier_2 = ModifierUtil_HasModifier_Z687DC302(setAccessorDeclaration.modifiers, 123);
45
55
  const isPrivateIdentifier_2 = name_6.kind === 81;
46
- return new GlueMember(3, [new GlueSetAccessor(name_6.getText(), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_6), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](setAccessorDeclaration.parameters[0].type), ModifierUtil_HasModifier_Z687DC302(setAccessorDeclaration.modifiers, 126), hasPrivateModifier_2 ? true : isPrivateIdentifier_2)]);
56
+ return new GlueMember(/* SetAccessor */ 3, [new GlueSetAccessor(identifierText(name_6), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_6), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](item(0, setAccessorDeclaration.parameters).type), ModifierUtil_HasModifier_Z687DC302(setAccessorDeclaration.modifiers, 126), hasPrivateModifier_2 ? true : isPrivateIdentifier_2)]);
47
57
  }
48
58
  case 179: {
49
59
  const callSignature = declaration;
50
- return new GlueMember(4, [new GlueCallSignature(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](callSignature.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](callSignature.type))]);
60
+ return new GlueMember(/* CallSignature */ 4, [new GlueCallSignature(readMemberTypeParameters(reader, callSignature.typeParameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](callSignature.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](callSignature.type))]);
51
61
  }
52
62
  case 180: {
53
63
  const constructSignature = declaration;
54
- return new GlueMember(7, [new GlueConstructSignature(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](constructSignature.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](constructSignature.type))]);
64
+ return new GlueMember(/* ConstructSignature */ 7, [new GlueConstructSignature(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](constructSignature.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](constructSignature.type))]);
55
65
  }
56
66
  case 181: {
57
67
  const indexSignature = declaration;
58
- return new GlueMember(5, [new GlueIndexSignature(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](indexSignature.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](indexSignature.type), (matchValue_1 = indexSignature.modifiers, (matchValue_1 == null) ? false : exists((modifier_1) => (modifier_1.kind === 148), matchValue_1)))]);
68
+ return new GlueMember(/* IndexSignature */ 5, [new GlueIndexSignature(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](indexSignature.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](indexSignature.type), (matchValue_2 = indexSignature.modifiers, (matchValue_2 == null) ? false : exists((modifier_1) => (modifier_1.kind === 148), matchValue_2)))]);
69
+ }
70
+ case 260: {
71
+ const variableDeclaration = declaration;
72
+ const name_7 = variableDeclaration.name;
73
+ let isConst;
74
+ const parent = variableDeclaration.parent;
75
+ isConst = (!Operators_IsNull(parent) && ((parent.flags & 2) !== 0));
76
+ return new GlueMember(/* Property */ 1, [new GlueProperty(identifierText(name_7), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_7), (matchValue_5 = variableDeclaration.type, (matchValue_5 == null) ? (new GlueType(/* Primitive */ 3, [GluePrimitive.Any])) : ((typeNode = matchValue_5, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](typeNode)))), false, false, isConst ? GlueAccessor.ReadOnly : GlueAccessor.ReadWrite, false)]);
77
+ }
78
+ case 262: {
79
+ const functionDeclaration = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadFunctionDeclarationZ72EBD329"](declaration);
80
+ if (functionDeclaration.tag === 6) {
81
+ const info = functionDeclaration.fields[0];
82
+ return new GlueMember(/* Method */ 0, [new GlueMethod(info.Name, info.Documentation, info.TypeParameters, info.Parameters, info.Type, false, false)]);
83
+ }
84
+ else {
85
+ throw new Exception("Expected a function declaration");
86
+ }
87
+ }
88
+ case 281: {
89
+ const exportSpecifier = declaration;
90
+ let target_1;
91
+ let option_6;
92
+ const option_3 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getExportSpecifierLocalTargetSymbol(exportSpecifier);
93
+ let binder;
94
+ const checker = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]();
95
+ binder = ((symbol) => resolveAlias(checker, symbol));
96
+ const option_4 = option_3;
97
+ option_6 = ((option_4 != null) ? binder(option_4) : undefined);
98
+ if (option_6 != null) {
99
+ const target = option_6;
100
+ const matchValue_3 = target.declarations;
101
+ let matchResult, declarations_1;
102
+ if (matchValue_3 != null) {
103
+ if ((declarations = matchValue_3, declarations.length > 0)) {
104
+ matchResult = 0;
105
+ declarations_1 = matchValue_3;
106
+ }
107
+ else {
108
+ matchResult = 1;
109
+ }
110
+ }
111
+ else {
112
+ matchResult = 1;
113
+ }
114
+ switch (matchResult) {
115
+ case 0: {
116
+ target_1 = item(0, declarations_1);
117
+ break;
118
+ }
119
+ default:
120
+ target_1 = undefined;
121
+ }
122
+ }
123
+ else {
124
+ target_1 = undefined;
125
+ }
126
+ let matchResult_1, target_3;
127
+ if (target_1 != null) {
128
+ if ((target_2 = target_1, (matchValue_4 = target_2.kind, (matchValue_4 === 171) ? true : ((matchValue_4 === 172) ? true : ((matchValue_4 === 173) ? true : ((matchValue_4 === 174) ? true : ((matchValue_4 === 260) ? true : (matchValue_4 === 262)))))))) {
129
+ matchResult_1 = 0;
130
+ target_3 = target_1;
131
+ }
132
+ else {
133
+ matchResult_1 = 1;
134
+ }
135
+ }
136
+ else {
137
+ matchResult_1 = 1;
138
+ }
139
+ switch (matchResult_1) {
140
+ case 0:
141
+ return reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](target_3);
142
+ default:
143
+ return new GlueMember(/* Property */ 1, [new GlueProperty(identifierText(exportSpecifier.name), empty(), new GlueType(/* Primitive */ 3, [GluePrimitive.Any]), false, false, GlueAccessor.ReadOnly, false)]);
144
+ }
59
145
  }
60
146
  default:
61
- throw new Error(Report_readerError_Z19516DCE("declaration", `Unsupported kind ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(declaration.kind)}`, declaration, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/Declaration.fs", 172));
147
+ throw new Exception(Report_readerError_Z19516DCE("declaration", concat("Unsupported kind ", TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(declaration.kind)), declaration, "/_//src/Glutinum.Converter/Reader/Declaration.fs", 270));
62
148
  }
63
149
  }
64
150
 
65
- //# sourceMappingURL=Declaration.js.map