@glutinum/cli 0.12.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.
- package/README.md +35 -3
- package/dist/Glutinum.Converter/Abbreviations.js +246 -0
- package/dist/Glutinum.Converter/FsharpAST.js +98 -34
- package/dist/Glutinum.Converter/Generate.js +55 -8
- package/dist/Glutinum.Converter/GlueAST.js +446 -30
- package/dist/Glutinum.Converter/Log.js +7 -8
- package/dist/Glutinum.Converter/Merge.js +683 -31
- package/dist/Glutinum.Converter/Packages.js +308 -0
- package/dist/Glutinum.Converter/Printer.js +332 -170
- package/dist/Glutinum.Converter/Read.js +279 -6
- package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +13 -7
- package/dist/Glutinum.Converter/Reader/Declaration.js +102 -17
- package/dist/Glutinum.Converter/Reader/Documentation.js +168 -73
- package/dist/Glutinum.Converter/Reader/EnumDeclaration.js +7 -51
- package/dist/Glutinum.Converter/Reader/ExportAssignment.js +64 -15
- package/dist/Glutinum.Converter/Reader/ExportDeclaration.js +165 -0
- package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js +30 -5
- package/dist/Glutinum.Converter/Reader/IndexedAccessType.js +122 -4
- package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js +83 -7
- package/dist/Glutinum.Converter/Reader/MappedTypeNode.js +8 -8
- package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js +11 -8
- package/dist/Glutinum.Converter/Reader/NamedTupleMember.js +3 -2
- package/dist/Glutinum.Converter/Reader/Node.js +24 -10
- package/dist/Glutinum.Converter/Reader/Parameters.js +110 -7
- package/dist/Glutinum.Converter/Reader/Report.js +31 -12
- package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js +4 -3
- package/dist/Glutinum.Converter/Reader/TypeNode.js +1527 -248
- package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js +75 -20
- package/dist/Glutinum.Converter/Reader/TypeParameters.js +8 -5
- package/dist/Glutinum.Converter/Reader/TypeQueryNode.js +184 -50
- package/dist/Glutinum.Converter/Reader/TypeScriptReader.js +32 -13
- package/dist/Glutinum.Converter/Reader/Types.js +180 -0
- package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +99 -43
- package/dist/Glutinum.Converter/Reader/Utils.js +1143 -55
- package/dist/Glutinum.Converter/Reader/VariableStatement.js +59 -14
- package/dist/Glutinum.Converter/Transform.js +8710 -1137
- package/dist/Glutinum.Converter/TypeScript.Extensions.js +3 -3
- package/dist/Glutinum.Converter/TypeScript.js +3 -3
- package/dist/Glutinum.Converter/Utils/Keywords.js +6 -6
- package/dist/Glutinum.Converter/Utils/List.js +3 -3
- package/dist/Glutinum.Converter/Utils/Naming.js +76 -14
- package/dist/Glutinum.Converter/Utils/String.js +7 -3
- package/dist/Program.js +230 -72
- package/package.json +4 -4
- package/src/Glutinum.Converter/js/bootstrap.js +109 -2
- package/src/Glutinum.Converter/js/host.js +144 -0
- package/src/Glutinum.Converter/js/npm.js +137 -0
- package/src/Glutinum.Converter/js/resolve.js +402 -0
- package/dist/Glutinum.Converter/FsharpAST.js.map +0 -1
- package/dist/Glutinum.Converter/Generate.js.map +0 -1
- package/dist/Glutinum.Converter/GlueAST.js.map +0 -1
- package/dist/Glutinum.Converter/Log.js.map +0 -1
- package/dist/Glutinum.Converter/Merge.js.map +0 -1
- package/dist/Glutinum.Converter/Printer.js.map +0 -1
- package/dist/Glutinum.Converter/Read.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/ClassDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Declaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Documentation.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/EnumDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/ExportAssignment.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/IndexedAccessType.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/MappedTypeNode.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/NamedTupleMember.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Node.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Parameters.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Report.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeNode.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeParameters.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeQueryNode.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeScriptReader.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/UnionTypeNode.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Utils.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/VariableStatement.js.map +0 -1
- package/dist/Glutinum.Converter/Transform.js.map +0 -1
- package/dist/Glutinum.Converter/TypeScript.Extensions.js.map +0 -1
- package/dist/Glutinum.Converter/TypeScript.js.map +0 -1
- package/dist/Glutinum.Converter/Utils/Keywords.js.map +0 -1
- package/dist/Glutinum.Converter/Utils/List.js.map +0 -1
- package/dist/Glutinum.Converter/Utils/Naming.js.map +0 -1
- package/dist/Glutinum.Converter/Utils/String.js.map +0 -1
- package/dist/Program.js.map +0 -1
- package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +0 -57
- package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +0 -105
- package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js.map +0 -1
- package/dist/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +0 -20
- package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs +0 -766
- package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +0 -218
- package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js.map +0 -1
- package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +0 -31
- package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +0 -20
- package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AssemblyInfo.fs +0 -19
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs +0 -207
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs.js +0 -127
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOption.fs +0 -81
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs +0 -183
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs.js +0 -37
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionOp.fs +0 -24
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResult.fs +0 -439
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs +0 -217
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOp.fs +0 -24
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs +0 -75
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js +0 -26
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs +0 -238
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionOp.fs +0 -24
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidation.fs +0 -190
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs +0 -194
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationOp.fs +0 -35
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/FsToolkit.ErrorHandling.fableproj +0 -51
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs +0 -218
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs.js +0 -358
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Option.fs +0 -331
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs +0 -186
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionOp.fs +0 -21
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs +0 -644
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs.js +0 -45
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs +0 -155
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs.js +0 -23
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOp.fs +0 -45
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs +0 -201
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs.js +0 -65
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs +0 -146
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionOp.fs +0 -57
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs +0 -19
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js +0 -31
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs +0 -22
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Validation.fs +0 -172
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs +0 -148
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationOp.fs +0 -35
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValueOption.fs +0 -151
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValueOptionCE.fs +0 -165
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Debug/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -3
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Debug/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -3
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.0/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -3
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
- package/dist/fable_modules/fable-library-js.4.14.0/Array.d.ts +0 -123
- package/dist/fable_modules/fable-library-js.4.14.0/Array.js +0 -1242
- package/dist/fable_modules/fable-library-js.4.14.0/Async.d.ts +0 -32
- package/dist/fable_modules/fable-library-js.4.14.0/Async.js +0 -158
- package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.d.ts +0 -59
- package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.js +0 -183
- package/dist/fable_modules/fable-library-js.4.14.0/BigInt.d.ts +0 -115
- package/dist/fable_modules/fable-library-js.4.14.0/BigInt.js +0 -282
- package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.d.ts +0 -27
- package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.js +0 -138
- package/dist/fable_modules/fable-library-js.4.14.0/Boolean.d.ts +0 -3
- package/dist/fable_modules/fable-library-js.4.14.0/Boolean.js +0 -21
- package/dist/fable_modules/fable-library-js.4.14.0/CHANGELOG.md +0 -37
- package/dist/fable_modules/fable-library-js.4.14.0/Char.d.ts +0 -65
- package/dist/fable_modules/fable-library-js.4.14.0/Char.js +0 -169
- package/dist/fable_modules/fable-library-js.4.14.0/Choice.d.ts +0 -121
- package/dist/fable_modules/fable-library-js.4.14.0/Choice.js +0 -184
- package/dist/fable_modules/fable-library-js.4.14.0/Date.d.ts +0 -70
- package/dist/fable_modules/fable-library-js.4.14.0/Date.js +0 -749
- package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.d.ts +0 -63
- package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.js +0 -268
- package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.d.ts +0 -18
- package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.js +0 -124
- package/dist/fable_modules/fable-library-js.4.14.0/Decimal.d.ts +0 -45
- package/dist/fable_modules/fable-library-js.4.14.0/Decimal.js +0 -212
- package/dist/fable_modules/fable-library-js.4.14.0/Double.d.ts +0 -11
- package/dist/fable_modules/fable-library-js.4.14.0/Double.js +0 -46
- package/dist/fable_modules/fable-library-js.4.14.0/Encoding.d.ts +0 -12
- package/dist/fable_modules/fable-library-js.4.14.0/Encoding.js +0 -173
- package/dist/fable_modules/fable-library-js.4.14.0/Event.d.ts +0 -31
- package/dist/fable_modules/fable-library-js.4.14.0/Event.js +0 -93
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.d.ts +0 -7
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.js +0 -27
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.d.ts +0 -12
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.js +0 -27
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.d.ts +0 -17
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.js +0 -69
- package/dist/fable_modules/fable-library-js.4.14.0/Global.d.ts +0 -24
- package/dist/fable_modules/fable-library-js.4.14.0/Global.js +0 -8
- package/dist/fable_modules/fable-library-js.4.14.0/Guid.d.ts +0 -10
- package/dist/fable_modules/fable-library-js.4.14.0/Guid.js +0 -142
- package/dist/fable_modules/fable-library-js.4.14.0/Int32.d.ts +0 -28
- package/dist/fable_modules/fable-library-js.4.14.0/Int32.js +0 -135
- package/dist/fable_modules/fable-library-js.4.14.0/List.d.ts +0 -143
- package/dist/fable_modules/fable-library-js.4.14.0/List.js +0 -1273
- package/dist/fable_modules/fable-library-js.4.14.0/Long.d.ts +0 -3
- package/dist/fable_modules/fable-library-js.4.14.0/Long.js +0 -46
- package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.d.ts +0 -25
- package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.js +0 -93
- package/dist/fable_modules/fable-library-js.4.14.0/Map.d.ts +0 -178
- package/dist/fable_modules/fable-library-js.4.14.0/Map.js +0 -1396
- package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.d.ts +0 -10
- package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.js +0 -112
- package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.d.ts +0 -52
- package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.js +0 -327
- package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.d.ts +0 -39
- package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.js +0 -233
- package/dist/fable_modules/fable-library-js.4.14.0/Native.d.ts +0 -2
- package/dist/fable_modules/fable-library-js.4.14.0/Native.js +0 -8
- package/dist/fable_modules/fable-library-js.4.14.0/Numeric.d.ts +0 -19
- package/dist/fable_modules/fable-library-js.4.14.0/Numeric.js +0 -71
- package/dist/fable_modules/fable-library-js.4.14.0/Observable.d.ts +0 -32
- package/dist/fable_modules/fable-library-js.4.14.0/Observable.js +0 -113
- package/dist/fable_modules/fable-library-js.4.14.0/Option.d.ts +0 -28
- package/dist/fable_modules/fable-library-js.4.14.0/Option.js +0 -96
- package/dist/fable_modules/fable-library-js.4.14.0/README.md +0 -3
- package/dist/fable_modules/fable-library-js.4.14.0/Random.d.ts +0 -37
- package/dist/fable_modules/fable-library-js.4.14.0/Random.js +0 -170
- package/dist/fable_modules/fable-library-js.4.14.0/Range.d.ts +0 -12
- package/dist/fable_modules/fable-library-js.4.14.0/Range.js +0 -45
- package/dist/fable_modules/fable-library-js.4.14.0/Reflection.d.ts +0 -119
- package/dist/fable_modules/fable-library-js.4.14.0/Reflection.js +0 -461
- package/dist/fable_modules/fable-library-js.4.14.0/RegExp.d.ts +0 -10
- package/dist/fable_modules/fable-library-js.4.14.0/RegExp.js +0 -132
- package/dist/fable_modules/fable-library-js.4.14.0/Result.d.ts +0 -37
- package/dist/fable_modules/fable-library-js.4.14.0/Result.js +0 -165
- package/dist/fable_modules/fable-library-js.4.14.0/Seq.d.ts +0 -165
- package/dist/fable_modules/fable-library-js.4.14.0/Seq.js +0 -1379
- package/dist/fable_modules/fable-library-js.4.14.0/Seq2.d.ts +0 -18
- package/dist/fable_modules/fable-library-js.4.14.0/Seq2.js +0 -111
- package/dist/fable_modules/fable-library-js.4.14.0/Set.d.ts +0 -190
- package/dist/fable_modules/fable-library-js.4.14.0/Set.js +0 -1789
- package/dist/fable_modules/fable-library-js.4.14.0/String.d.ts +0 -50
- package/dist/fable_modules/fable-library-js.4.14.0/String.js +0 -543
- package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.d.ts +0 -79
- package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.js +0 -317
- package/dist/fable_modules/fable-library-js.4.14.0/System.Text.d.ts +0 -38
- package/dist/fable_modules/fable-library-js.4.14.0/System.Text.js +0 -162
- package/dist/fable_modules/fable-library-js.4.14.0/SystemException.d.ts +0 -5
- package/dist/fable_modules/fable-library-js.4.14.0/SystemException.js +0 -5
- package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.d.ts +0 -15
- package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.js +0 -122
- package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.d.ts +0 -34
- package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.js +0 -177
- package/dist/fable_modules/fable-library-js.4.14.0/Timer.d.ts +0 -19
- package/dist/fable_modules/fable-library-js.4.14.0/Timer.js +0 -67
- package/dist/fable_modules/fable-library-js.4.14.0/Types.d.ts +0 -58
- package/dist/fable_modules/fable-library-js.4.14.0/Types.js +0 -208
- package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.d.ts +0 -2
- package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.js +0 -4
- package/dist/fable_modules/fable-library-js.4.14.0/Uri.d.ts +0 -29
- package/dist/fable_modules/fable-library-js.4.14.0/Uri.js +0 -142
- package/dist/fable_modules/fable-library-js.4.14.0/Util.d.ts +0 -207
- package/dist/fable_modules/fable-library-js.4.14.0/Util.js +0 -770
- package/dist/fable_modules/fable-library-js.4.14.0/big.d.ts +0 -338
- package/dist/fable_modules/fable-library-js.4.14.0/lib/big.d.ts +0 -5
- package/dist/fable_modules/fable-library-js.4.14.0/lib/big.js +0 -826
- package/dist/fable_modules/fable-library-js.4.14.0/package.json +0 -24
- package/dist/fable_modules/project_cracked.json +0 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
|
|
2
|
+
import { toString, Union, Record } from "../fable_modules/fable-library-js.5.17.2/Types.js";
|
|
3
|
+
import { enum_type, option_type, tuple_type, bool_type, float64_type, int32_type, union_type, list_type, record_type, string_type } from "../fable_modules/fable-library-js.5.17.2/Reflection.js";
|
|
4
|
+
import { GlueMember_$reflection } from "./GlueAST.js";
|
|
5
|
+
import { int32ToString } from "../fable_modules/fable-library-js.5.17.2/Util.js";
|
|
6
|
+
import { empty, forAll } from "../fable_modules/fable-library-js.5.17.2/List.js";
|
|
5
7
|
|
|
6
8
|
export class FSharpCommentParam extends Record {
|
|
7
9
|
constructor(Name, Content) {
|
|
@@ -51,6 +53,7 @@ export class FSharpLiteral extends Union {
|
|
|
51
53
|
cases() {
|
|
52
54
|
return ["String", "Int", "Float", "Bool", "Null"];
|
|
53
55
|
}
|
|
56
|
+
static Null = new FSharpLiteral(4, []);
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
export function FSharpLiteral_$reflection() {
|
|
@@ -78,6 +81,9 @@ export class FSharpEnumType extends Union {
|
|
|
78
81
|
cases() {
|
|
79
82
|
return ["String", "Numeric", "Unknown"];
|
|
80
83
|
}
|
|
84
|
+
static String$ = new FSharpEnumType(0, []);
|
|
85
|
+
static Numeric = new FSharpEnumType(1, []);
|
|
86
|
+
static Unknown = new FSharpEnumType(2, []);
|
|
81
87
|
}
|
|
82
88
|
|
|
83
89
|
export function FSharpEnumType_$reflection() {
|
|
@@ -115,12 +121,12 @@ export class FSharpUnionCase extends Union {
|
|
|
115
121
|
this.fields = fields;
|
|
116
122
|
}
|
|
117
123
|
cases() {
|
|
118
|
-
return ["Named", "Typed"];
|
|
124
|
+
return ["Named", "Typed", "Field", "NamedFields"];
|
|
119
125
|
}
|
|
120
126
|
}
|
|
121
127
|
|
|
122
128
|
export function FSharpUnionCase_$reflection() {
|
|
123
|
-
return union_type("Glutinum.Converter.FSharpAST.FSharpUnionCase", [], FSharpUnionCase, () => [[["Item", FSharpUnionCaseNamed_$reflection()]], [["Item", FSharpType_$reflection()]]]);
|
|
129
|
+
return union_type("Glutinum.Converter.FSharpAST.FSharpUnionCase", [], FSharpUnionCase, () => [[["Item", FSharpUnionCaseNamed_$reflection()]], [["Item", FSharpType_$reflection()]], [["name", string_type], ["typ", FSharpType_$reflection()]], [["info", FSharpUnionCaseNamed_$reflection()], ["fields", list_type(tuple_type(string_type, FSharpType_$reflection()))]]]);
|
|
124
130
|
}
|
|
125
131
|
|
|
126
132
|
export class FSharpUnionType extends Union {
|
|
@@ -132,37 +138,59 @@ export class FSharpUnionType extends Union {
|
|
|
132
138
|
cases() {
|
|
133
139
|
return ["String", "Numeric", "Unknown"];
|
|
134
140
|
}
|
|
141
|
+
static String$ = new FSharpUnionType(0, []);
|
|
142
|
+
static Numeric = new FSharpUnionType(1, []);
|
|
143
|
+
static Unknown = new FSharpUnionType(2, []);
|
|
135
144
|
}
|
|
136
145
|
|
|
137
146
|
export function FSharpUnionType_$reflection() {
|
|
138
147
|
return union_type("Glutinum.Converter.FSharpAST.FSharpUnionType", [], FSharpUnionType, () => [[], [], []]);
|
|
139
148
|
}
|
|
140
149
|
|
|
150
|
+
/**
|
|
151
|
+
* `static member inline A: Mixed = Mixed.String "a"`
|
|
152
|
+
*/
|
|
153
|
+
export class FSharpUnionConstant extends Record {
|
|
154
|
+
constructor(Name, Case, Value) {
|
|
155
|
+
super();
|
|
156
|
+
this.Name = Name;
|
|
157
|
+
this.Case = Case;
|
|
158
|
+
this.Value = Value;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export function FSharpUnionConstant_$reflection() {
|
|
163
|
+
return record_type("Glutinum.Converter.FSharpAST.FSharpUnionConstant", [], FSharpUnionConstant, () => [["Name", string_type], ["Case", string_type], ["Value", string_type]]);
|
|
164
|
+
}
|
|
165
|
+
|
|
141
166
|
export class FSharpUnion extends Record {
|
|
142
|
-
constructor(Attributes, Name, Cases, IsOptional) {
|
|
167
|
+
constructor(Attributes, Name, Cases, IsOptional, TypeParameters, Constants) {
|
|
143
168
|
super();
|
|
144
169
|
this.Attributes = Attributes;
|
|
145
170
|
this.Name = Name;
|
|
146
171
|
this.Cases = Cases;
|
|
147
172
|
this.IsOptional = IsOptional;
|
|
173
|
+
this.TypeParameters = TypeParameters;
|
|
174
|
+
this.Constants = Constants;
|
|
148
175
|
}
|
|
149
176
|
}
|
|
150
177
|
|
|
151
178
|
export function FSharpUnion_$reflection() {
|
|
152
|
-
return record_type("Glutinum.Converter.FSharpAST.FSharpUnion", [], FSharpUnion, () => [["Attributes", list_type(FSharpAttribute_$reflection())], ["Name", string_type], ["Cases", list_type(FSharpUnionCase_$reflection())], ["IsOptional", bool_type]]);
|
|
179
|
+
return record_type("Glutinum.Converter.FSharpAST.FSharpUnion", [], FSharpUnion, () => [["Attributes", list_type(FSharpAttribute_$reflection())], ["Name", string_type], ["Cases", list_type(FSharpUnionCase_$reflection())], ["IsOptional", bool_type], ["TypeParameters", list_type(FSharpTypeParameter_$reflection())], ["Constants", list_type(FSharpUnionConstant_$reflection())]]);
|
|
153
180
|
}
|
|
154
181
|
|
|
155
182
|
export class FSharpModule extends Record {
|
|
156
|
-
constructor(Name, IsRecursive, Types) {
|
|
183
|
+
constructor(Name, IsRecursive, ImportSpecifier, Types) {
|
|
157
184
|
super();
|
|
158
185
|
this.Name = Name;
|
|
159
186
|
this.IsRecursive = IsRecursive;
|
|
187
|
+
this.ImportSpecifier = ImportSpecifier;
|
|
160
188
|
this.Types = Types;
|
|
161
189
|
}
|
|
162
190
|
}
|
|
163
191
|
|
|
164
192
|
export function FSharpModule_$reflection() {
|
|
165
|
-
return record_type("Glutinum.Converter.FSharpAST.FSharpModule", [], FSharpModule, () => [["Name", string_type], ["IsRecursive", bool_type], ["Types", list_type(FSharpType_$reflection())]]);
|
|
193
|
+
return record_type("Glutinum.Converter.FSharpAST.FSharpModule", [], FSharpModule, () => [["Name", string_type], ["IsRecursive", bool_type], ["ImportSpecifier", option_type(string_type)], ["Types", list_type(FSharpType_$reflection())]]);
|
|
166
194
|
}
|
|
167
195
|
|
|
168
196
|
export class FSharpAccessor extends Union {
|
|
@@ -174,6 +202,9 @@ export class FSharpAccessor extends Union {
|
|
|
174
202
|
cases() {
|
|
175
203
|
return ["ReadOnly", "WriteOnly", "ReadWrite"];
|
|
176
204
|
}
|
|
205
|
+
static ReadOnly = new FSharpAccessor(0, []);
|
|
206
|
+
static WriteOnly = new FSharpAccessor(1, []);
|
|
207
|
+
static ReadWrite = new FSharpAccessor(2, []);
|
|
177
208
|
}
|
|
178
209
|
|
|
179
210
|
export function FSharpAccessor_$reflection() {
|
|
@@ -189,6 +220,9 @@ export class FSharpAccessibility extends Union {
|
|
|
189
220
|
cases() {
|
|
190
221
|
return ["Public", "Private", "Protected"];
|
|
191
222
|
}
|
|
223
|
+
static Public = new FSharpAccessibility(0, []);
|
|
224
|
+
static Private = new FSharpAccessibility(1, []);
|
|
225
|
+
static Protected = new FSharpAccessibility(2, []);
|
|
192
226
|
}
|
|
193
227
|
|
|
194
228
|
export function FSharpAccessibility_$reflection() {
|
|
@@ -202,26 +236,38 @@ export class FSharpAttribute extends Union {
|
|
|
202
236
|
this.fields = fields;
|
|
203
237
|
}
|
|
204
238
|
cases() {
|
|
205
|
-
return ["Text", "EmitSelfInvoke", "EmitSelf", "Import", "ImportAll", "ImportDefault", "Erase", "AbstractClass", "AllowNullLiteral", "Obsolete", "StringEnum", "CompiledName", "RequireQualifiedAccess", "EmitConstructor", "EmitMacroConstructor", "EmitMacroInvoke", "EmitIndexer", "Global", "ParamObject", "ParamArray", "Interface"];
|
|
239
|
+
return ["Text", "EmitSelfInvoke", "EmitSelf", "Import", "ImportAll", "ImportDefault", "Erase", "EraseWithCaseRules", "TypeScriptTaggedUnion", "AbstractClass", "AllowNullLiteral", "Obsolete", "StringEnum", "CompiledName", "CompiledValue", "RequireQualifiedAccess", "EmitConstructor", "EmitMacroConstructor", "EmitMacroInvoke", "EmitMacroProperty", "EmitIndexer", "Global", "ParamObject", "ParamArray", "Interface"];
|
|
206
240
|
}
|
|
241
|
+
static EmitSelfInvoke = new FSharpAttribute(1, []);
|
|
242
|
+
static EmitSelf = new FSharpAttribute(2, []);
|
|
243
|
+
static Erase = new FSharpAttribute(6, []);
|
|
244
|
+
static AbstractClass = new FSharpAttribute(9, []);
|
|
245
|
+
static AllowNullLiteral = new FSharpAttribute(10, []);
|
|
246
|
+
static RequireQualifiedAccess = new FSharpAttribute(15, []);
|
|
247
|
+
static EmitConstructor = new FSharpAttribute(16, []);
|
|
248
|
+
static EmitIndexer = new FSharpAttribute(20, []);
|
|
249
|
+
static ParamObject = new FSharpAttribute(22, []);
|
|
250
|
+
static ParamArray = new FSharpAttribute(23, []);
|
|
251
|
+
static Interface = new FSharpAttribute(24, []);
|
|
207
252
|
}
|
|
208
253
|
|
|
209
254
|
export function FSharpAttribute_$reflection() {
|
|
210
|
-
return union_type("Glutinum.Converter.FSharpAST.FSharpAttribute", [], FSharpAttribute, () => [[["Item", string_type]], [], [], [["selector", string_type], ["from", string_type]], [["moduleName", string_type]], [["moduleName", string_type]], [], [], [], [["Item", option_type(string_type)]], [["Item", enum_type("Fable.Core.CaseRules", int32_type, [["None", 0], ["LowerFirst", 1], ["SnakeCase", 2], ["SnakeCaseAllCaps", 3], ["KebabCase", 4]])]], [["Item", string_type]], [], [], [["className", string_type]], [["methodName", string_type]], [], [], [], [], []]);
|
|
255
|
+
return union_type("Glutinum.Converter.FSharpAST.FSharpAttribute", [], FSharpAttribute, () => [[["Item", string_type]], [], [], [["selector", string_type], ["from", string_type]], [["moduleName", string_type]], [["moduleName", string_type]], [], [["Item", enum_type("Fable.Core.CaseRules", int32_type, [["None", 0], ["LowerFirst", 1], ["SnakeCase", 2], ["SnakeCaseAllCaps", 3], ["KebabCase", 4], ["LowerAll", 5]])]], [["tagName", string_type], ["caseRules", enum_type("Fable.Core.CaseRules", int32_type, [["None", 0], ["LowerFirst", 1], ["SnakeCase", 2], ["SnakeCaseAllCaps", 3], ["KebabCase", 4], ["LowerAll", 5]])]], [], [], [["Item", option_type(string_type)]], [["Item", enum_type("Fable.Core.CaseRules", int32_type, [["None", 0], ["LowerFirst", 1], ["SnakeCase", 2], ["SnakeCaseAllCaps", 3], ["KebabCase", 4], ["LowerAll", 5]])]], [["Item", string_type]], [["Item", FSharpLiteral_$reflection()]], [], [], [["className", string_type]], [["methodName", string_type]], [["propertyName", string_type]], [], [["name", option_type(string_type)]], [], [], []]);
|
|
211
256
|
}
|
|
212
257
|
|
|
213
258
|
export class FSharpParameter extends Record {
|
|
214
|
-
constructor(Attributes, Name, IsOptional, Type) {
|
|
259
|
+
constructor(Attributes, Name, IsOptional, Type, OriginalGlueMember) {
|
|
215
260
|
super();
|
|
216
261
|
this.Attributes = Attributes;
|
|
217
262
|
this.Name = Name;
|
|
218
263
|
this.IsOptional = IsOptional;
|
|
219
264
|
this.Type = Type;
|
|
265
|
+
this.OriginalGlueMember = OriginalGlueMember;
|
|
220
266
|
}
|
|
221
267
|
}
|
|
222
268
|
|
|
223
269
|
export function FSharpParameter_$reflection() {
|
|
224
|
-
return record_type("Glutinum.Converter.FSharpAST.FSharpParameter", [], FSharpParameter, () => [["Attributes", list_type(FSharpAttribute_$reflection())], ["Name", string_type], ["IsOptional", bool_type], ["Type", FSharpType_$reflection()]]);
|
|
270
|
+
return record_type("Glutinum.Converter.FSharpAST.FSharpParameter", [], FSharpParameter, () => [["Attributes", list_type(FSharpAttribute_$reflection())], ["Name", string_type], ["IsOptional", bool_type], ["Type", FSharpType_$reflection()], ["OriginalGlueMember", option_type(GlueMember_$reflection())]]);
|
|
225
271
|
}
|
|
226
272
|
|
|
227
273
|
export class FSharpMemberInfoBody extends Union {
|
|
@@ -233,6 +279,8 @@ export class FSharpMemberInfoBody extends Union {
|
|
|
233
279
|
cases() {
|
|
234
280
|
return ["NativeOnly", "JavaScriptStaticProperty"];
|
|
235
281
|
}
|
|
282
|
+
static NativeOnly = new FSharpMemberInfoBody(0, []);
|
|
283
|
+
static JavaScriptStaticProperty = new FSharpMemberInfoBody(1, []);
|
|
236
284
|
}
|
|
237
285
|
|
|
238
286
|
export function FSharpMemberInfoBody_$reflection() {
|
|
@@ -262,7 +310,7 @@ export function FSharpMemberInfo_$reflection() {
|
|
|
262
310
|
}
|
|
263
311
|
|
|
264
312
|
export class FSharpStaticMemberInfo extends Record {
|
|
265
|
-
constructor(Attributes, Name, OriginalName, TypeParameters, Parameters, Type, IsOptional, Accessor, Accessibility) {
|
|
313
|
+
constructor(Attributes, Name, OriginalName, TypeParameters, Parameters, Type, IsOptional, Accessor, Accessibility, XmlDoc) {
|
|
266
314
|
super();
|
|
267
315
|
this.Attributes = Attributes;
|
|
268
316
|
this.Name = Name;
|
|
@@ -273,11 +321,12 @@ export class FSharpStaticMemberInfo extends Record {
|
|
|
273
321
|
this.IsOptional = IsOptional;
|
|
274
322
|
this.Accessor = Accessor;
|
|
275
323
|
this.Accessibility = Accessibility;
|
|
324
|
+
this.XmlDoc = XmlDoc;
|
|
276
325
|
}
|
|
277
326
|
}
|
|
278
327
|
|
|
279
328
|
export function FSharpStaticMemberInfo_$reflection() {
|
|
280
|
-
return record_type("Glutinum.Converter.FSharpAST.FSharpStaticMemberInfo", [], FSharpStaticMemberInfo, () => [["Attributes", list_type(FSharpAttribute_$reflection())], ["Name", string_type], ["OriginalName", string_type], ["TypeParameters", list_type(FSharpTypeParameter_$reflection())], ["Parameters", list_type(FSharpParameter_$reflection())], ["Type", FSharpType_$reflection()], ["IsOptional", bool_type], ["Accessor", option_type(FSharpAccessor_$reflection())], ["Accessibility", FSharpAccessibility_$reflection()]]);
|
|
329
|
+
return record_type("Glutinum.Converter.FSharpAST.FSharpStaticMemberInfo", [], FSharpStaticMemberInfo, () => [["Attributes", list_type(FSharpAttribute_$reflection())], ["Name", string_type], ["OriginalName", string_type], ["TypeParameters", list_type(FSharpTypeParameter_$reflection())], ["Parameters", list_type(FSharpParameter_$reflection())], ["Type", FSharpType_$reflection()], ["IsOptional", bool_type], ["Accessor", option_type(FSharpAccessor_$reflection())], ["Accessibility", FSharpAccessibility_$reflection()], ["XmlDoc", list_type(FSharpXmlDoc_$reflection())]]);
|
|
281
330
|
}
|
|
282
331
|
|
|
283
332
|
export class FSharpMember extends Union {
|
|
@@ -296,10 +345,11 @@ export function FSharpMember_$reflection() {
|
|
|
296
345
|
}
|
|
297
346
|
|
|
298
347
|
export class FSharpInterface extends Record {
|
|
299
|
-
constructor(Attributes, Name, OriginalName, TypeParameters, Members, Inheritance) {
|
|
348
|
+
constructor(Attributes, Name, XmlDoc, OriginalName, TypeParameters, Members, Inheritance) {
|
|
300
349
|
super();
|
|
301
350
|
this.Attributes = Attributes;
|
|
302
351
|
this.Name = Name;
|
|
352
|
+
this.XmlDoc = XmlDoc;
|
|
303
353
|
this.OriginalName = OriginalName;
|
|
304
354
|
this.TypeParameters = TypeParameters;
|
|
305
355
|
this.Members = Members;
|
|
@@ -308,19 +358,21 @@ export class FSharpInterface extends Record {
|
|
|
308
358
|
}
|
|
309
359
|
|
|
310
360
|
export function FSharpInterface_$reflection() {
|
|
311
|
-
return record_type("Glutinum.Converter.FSharpAST.FSharpInterface", [], FSharpInterface, () => [["Attributes", list_type(FSharpAttribute_$reflection())], ["Name", string_type], ["OriginalName", string_type], ["TypeParameters", list_type(FSharpTypeParameter_$reflection())], ["Members", list_type(FSharpMember_$reflection())], ["Inheritance", list_type(FSharpType_$reflection())]]);
|
|
361
|
+
return record_type("Glutinum.Converter.FSharpAST.FSharpInterface", [], FSharpInterface, () => [["Attributes", list_type(FSharpAttribute_$reflection())], ["Name", string_type], ["XmlDoc", list_type(FSharpXmlDoc_$reflection())], ["OriginalName", string_type], ["TypeParameters", list_type(FSharpTypeParameter_$reflection())], ["Members", list_type(FSharpMember_$reflection())], ["Inheritance", list_type(FSharpType_$reflection())]]);
|
|
312
362
|
}
|
|
313
363
|
|
|
314
364
|
export class FSharpExplicitField extends Record {
|
|
315
|
-
constructor(Name, Type) {
|
|
365
|
+
constructor(Name, XmlDoc, Type, Accessor) {
|
|
316
366
|
super();
|
|
317
367
|
this.Name = Name;
|
|
368
|
+
this.XmlDoc = XmlDoc;
|
|
318
369
|
this.Type = Type;
|
|
370
|
+
this.Accessor = Accessor;
|
|
319
371
|
}
|
|
320
372
|
}
|
|
321
373
|
|
|
322
374
|
export function FSharpExplicitField_$reflection() {
|
|
323
|
-
return record_type("Glutinum.Converter.FSharpAST.FSharpExplicitField", [], FSharpExplicitField, () => [["Name", string_type], ["Type", FSharpType_$reflection()]]);
|
|
375
|
+
return record_type("Glutinum.Converter.FSharpAST.FSharpExplicitField", [], FSharpExplicitField, () => [["Name", string_type], ["XmlDoc", list_type(FSharpXmlDoc_$reflection())], ["Type", FSharpType_$reflection()], ["Accessor", option_type(FSharpAccessor_$reflection())]]);
|
|
324
376
|
}
|
|
325
377
|
|
|
326
378
|
export class FSharpConstructor extends Record {
|
|
@@ -337,9 +389,10 @@ export function FSharpConstructor_$reflection() {
|
|
|
337
389
|
}
|
|
338
390
|
|
|
339
391
|
export class FSharpClass extends Record {
|
|
340
|
-
constructor(Attributes, Name, TypeParameters, PrimaryConstructor, SecondaryConstructors, ExplicitFields) {
|
|
392
|
+
constructor(Attributes, XmlDoc, Name, TypeParameters, PrimaryConstructor, SecondaryConstructors, ExplicitFields) {
|
|
341
393
|
super();
|
|
342
394
|
this.Attributes = Attributes;
|
|
395
|
+
this.XmlDoc = XmlDoc;
|
|
343
396
|
this.Name = Name;
|
|
344
397
|
this.TypeParameters = TypeParameters;
|
|
345
398
|
this.PrimaryConstructor = PrimaryConstructor;
|
|
@@ -349,7 +402,7 @@ export class FSharpClass extends Record {
|
|
|
349
402
|
}
|
|
350
403
|
|
|
351
404
|
export function FSharpClass_$reflection() {
|
|
352
|
-
return record_type("Glutinum.Converter.FSharpAST.FSharpClass", [], FSharpClass, () => [["Attributes", list_type(FSharpAttribute_$reflection())], ["Name", string_type], ["TypeParameters", list_type(FSharpTypeParameter_$reflection())], ["PrimaryConstructor", FSharpConstructor_$reflection()], ["SecondaryConstructors", list_type(FSharpConstructor_$reflection())], ["ExplicitFields", list_type(FSharpExplicitField_$reflection())]]);
|
|
405
|
+
return record_type("Glutinum.Converter.FSharpAST.FSharpClass", [], FSharpClass, () => [["Attributes", list_type(FSharpAttribute_$reflection())], ["XmlDoc", list_type(FSharpXmlDoc_$reflection())], ["Name", string_type], ["TypeParameters", list_type(FSharpTypeParameter_$reflection())], ["PrimaryConstructor", FSharpConstructor_$reflection()], ["SecondaryConstructors", list_type(FSharpConstructor_$reflection())], ["ExplicitFields", list_type(FSharpExplicitField_$reflection())]]);
|
|
353
406
|
}
|
|
354
407
|
|
|
355
408
|
export class FSharpMapped extends Record {
|
|
@@ -371,12 +424,20 @@ export class FSharpPrimitive extends Union {
|
|
|
371
424
|
this.fields = fields;
|
|
372
425
|
}
|
|
373
426
|
cases() {
|
|
374
|
-
return ["String", "Int", "Float", "Bool", "Unit", "Number", "Null"];
|
|
427
|
+
return ["String", "Int", "Float", "Bool", "Unit", "Number", "Null", "BigInt"];
|
|
375
428
|
}
|
|
429
|
+
static String$ = new FSharpPrimitive(0, []);
|
|
430
|
+
static Int = new FSharpPrimitive(1, []);
|
|
431
|
+
static Float = new FSharpPrimitive(2, []);
|
|
432
|
+
static Bool = new FSharpPrimitive(3, []);
|
|
433
|
+
static Unit = new FSharpPrimitive(4, []);
|
|
434
|
+
static Number$ = new FSharpPrimitive(5, []);
|
|
435
|
+
static Null = new FSharpPrimitive(6, []);
|
|
436
|
+
static BigInt$ = new FSharpPrimitive(7, []);
|
|
376
437
|
}
|
|
377
438
|
|
|
378
439
|
export function FSharpPrimitive_$reflection() {
|
|
379
|
-
return union_type("Glutinum.Converter.FSharpAST.FSharpPrimitive", [], FSharpPrimitive, () => [[], [], [], [], [], [], []]);
|
|
440
|
+
return union_type("Glutinum.Converter.FSharpAST.FSharpPrimitive", [], FSharpPrimitive, () => [[], [], [], [], [], [], [], []]);
|
|
380
441
|
}
|
|
381
442
|
|
|
382
443
|
export class FSharpTypeParameterInfo extends Record {
|
|
@@ -423,17 +484,18 @@ export function FSharpTypeAlias_$reflection() {
|
|
|
423
484
|
}
|
|
424
485
|
|
|
425
486
|
export class FSharpTypeReference extends Record {
|
|
426
|
-
constructor(Name, FullName, TypeArguments, Type) {
|
|
487
|
+
constructor(Name, FullName, ModulePath, TypeArguments, Type) {
|
|
427
488
|
super();
|
|
428
489
|
this.Name = Name;
|
|
429
490
|
this.FullName = FullName;
|
|
491
|
+
this.ModulePath = ModulePath;
|
|
430
492
|
this.TypeArguments = TypeArguments;
|
|
431
493
|
this.Type = Type;
|
|
432
494
|
}
|
|
433
495
|
}
|
|
434
496
|
|
|
435
497
|
export function FSharpTypeReference_$reflection() {
|
|
436
|
-
return record_type("Glutinum.Converter.FSharpAST.FSharpTypeReference", [], FSharpTypeReference, () => [["Name", string_type], ["FullName", string_type], ["TypeArguments", list_type(FSharpType_$reflection())], ["Type", FSharpType_$reflection()]]);
|
|
498
|
+
return record_type("Glutinum.Converter.FSharpAST.FSharpTypeReference", [], FSharpTypeReference, () => [["Name", string_type], ["FullName", string_type], ["ModulePath", list_type(string_type)], ["TypeArguments", list_type(FSharpType_$reflection())], ["Type", FSharpType_$reflection()]]);
|
|
437
499
|
}
|
|
438
500
|
|
|
439
501
|
export class FSharpFunctionType extends Record {
|
|
@@ -490,8 +552,9 @@ export function FSharpJSApi_$reflection() {
|
|
|
490
552
|
}
|
|
491
553
|
|
|
492
554
|
export class FSharpDelegate extends Record {
|
|
493
|
-
constructor(Name, TypeParameters, Parameters, ReturnType) {
|
|
555
|
+
constructor(XmlDoc, Name, TypeParameters, Parameters, ReturnType) {
|
|
494
556
|
super();
|
|
557
|
+
this.XmlDoc = XmlDoc;
|
|
495
558
|
this.Name = Name;
|
|
496
559
|
this.TypeParameters = TypeParameters;
|
|
497
560
|
this.Parameters = Parameters;
|
|
@@ -500,7 +563,7 @@ export class FSharpDelegate extends Record {
|
|
|
500
563
|
}
|
|
501
564
|
|
|
502
565
|
export function FSharpDelegate_$reflection() {
|
|
503
|
-
return record_type("Glutinum.Converter.FSharpAST.FSharpDelegate", [], FSharpDelegate, () => [["Name", string_type], ["TypeParameters", list_type(FSharpTypeParameter_$reflection())], ["Parameters", list_type(FSharpParameter_$reflection())], ["ReturnType", FSharpType_$reflection()]]);
|
|
566
|
+
return record_type("Glutinum.Converter.FSharpAST.FSharpDelegate", [], FSharpDelegate, () => [["XmlDoc", list_type(FSharpXmlDoc_$reflection())], ["Name", string_type], ["TypeParameters", list_type(FSharpTypeParameter_$reflection())], ["Parameters", list_type(FSharpParameter_$reflection())], ["ReturnType", FSharpType_$reflection()]]);
|
|
504
567
|
}
|
|
505
568
|
|
|
506
569
|
export class FSharpType extends Union {
|
|
@@ -512,6 +575,8 @@ export class FSharpType extends Union {
|
|
|
512
575
|
cases() {
|
|
513
576
|
return ["Enum", "Union", "SingleErasedCaseUnion", "Option", "Module", "Interface", "Unsupported", "Mapped", "Primitive", "TypeAlias", "Discard", "TypeReference", "Tuple", "TypeParameter", "ResizeArray", "ThisType", "Function", "Class", "Object", "JSApi", "Delegate"];
|
|
514
577
|
}
|
|
578
|
+
static Discard = new FSharpType(10, []);
|
|
579
|
+
static Object$ = new FSharpType(18, []);
|
|
515
580
|
}
|
|
516
581
|
|
|
517
582
|
export function FSharpType_$reflection() {
|
|
@@ -569,13 +634,13 @@ export function FSharpEnum__get_Type(this$) {
|
|
|
569
634
|
return false;
|
|
570
635
|
}
|
|
571
636
|
}, this$.Cases)) {
|
|
572
|
-
return
|
|
637
|
+
return FSharpEnumType.Numeric;
|
|
573
638
|
}
|
|
574
639
|
else if (isString) {
|
|
575
|
-
return
|
|
640
|
+
return FSharpEnumType.String$;
|
|
576
641
|
}
|
|
577
642
|
else {
|
|
578
|
-
return
|
|
643
|
+
return FSharpEnumType.Unknown;
|
|
579
644
|
}
|
|
580
645
|
}
|
|
581
646
|
|
|
@@ -591,15 +656,14 @@ export function FSharpAccessibility__get_Text(this$) {
|
|
|
591
656
|
}
|
|
592
657
|
|
|
593
658
|
export function FSharpConstructor_get_EmptyPublic() {
|
|
594
|
-
return new FSharpConstructor(empty(), empty(),
|
|
659
|
+
return new FSharpConstructor(empty(), empty(), FSharpAccessibility.Public);
|
|
595
660
|
}
|
|
596
661
|
|
|
597
662
|
export function FSharpConstructor_get_EmptyPrivate() {
|
|
598
|
-
return new FSharpConstructor(empty(), empty(),
|
|
663
|
+
return new FSharpConstructor(empty(), empty(), FSharpAccessibility.Private);
|
|
599
664
|
}
|
|
600
665
|
|
|
601
666
|
export function FSharpTypeParameterInfo_Create_Z6CFD3565(name, constraint_, default_) {
|
|
602
667
|
return new FSharpTypeParameterInfo(name, constraint_, default_);
|
|
603
668
|
}
|
|
604
669
|
|
|
605
|
-
//# sourceMappingURL=FsharpAST.js.map
|
|
@@ -1,17 +1,23 @@
|
|
|
1
|
+
|
|
1
2
|
import bootstrap from "../../src/Glutinum.Converter/js/bootstrap.js";
|
|
2
3
|
import * as fs from "fs";
|
|
3
|
-
import {
|
|
4
|
+
import { disposeSafe, getEnumerator, Exception } from "../fable_modules/fable-library-js.5.17.2/Util.js";
|
|
5
|
+
import { concat } from "../fable_modules/fable-library-js.5.17.2/String.js";
|
|
6
|
+
import { toString } from "../fable_modules/fable-library-js.5.17.2/Types.js";
|
|
4
7
|
import { printFile, Printer_$ctor } from "./Printer.js";
|
|
5
8
|
import { readSourceFile } from "./Read.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
+
import { error as error_1, warn } from "./Log.js";
|
|
10
|
+
import { applyWith } from "./Transform.js";
|
|
11
|
+
import { defaultArg } from "../fable_modules/fable-library-js.5.17.2/Option.js";
|
|
12
|
+
import { generateWith, defaultOptions } from "./Packages.js";
|
|
13
|
+
import { createNodeHost } from "../../src/Glutinum.Converter/js/host.js";
|
|
14
|
+
import * as path from "path";
|
|
9
15
|
|
|
10
16
|
export const createProgramForCLI = bootstrap;
|
|
11
17
|
|
|
12
18
|
export function generateBindingFile(filePath) {
|
|
13
19
|
if (!fs.existsSync(filePath)) {
|
|
14
|
-
throw new
|
|
20
|
+
throw new Exception(concat("File does not exist: ", filePath));
|
|
15
21
|
}
|
|
16
22
|
const program = createProgramForCLI(filePath, toString(fs.readFileSync(filePath)));
|
|
17
23
|
const checker = program.getTypeChecker();
|
|
@@ -27,7 +33,7 @@ export function generateBindingFile(filePath) {
|
|
|
27
33
|
finally {
|
|
28
34
|
disposeSafe(enumerator);
|
|
29
35
|
}
|
|
30
|
-
const transformResult =
|
|
36
|
+
const transformResult = applyWith(defaultArg(readerResult.ImportSpecifier, "REPLACE_ME_WITH_MODULE_NAME"), readerResult.TypeMemory, readerResult.GlueAST);
|
|
31
37
|
let enumerator_1 = getEnumerator(transformResult.Warnings);
|
|
32
38
|
try {
|
|
33
39
|
while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
|
|
@@ -40,7 +46,7 @@ export function generateBindingFile(filePath) {
|
|
|
40
46
|
let enumerator_2 = getEnumerator(transformResult.Errors);
|
|
41
47
|
try {
|
|
42
48
|
while (enumerator_2["System.Collections.IEnumerator.MoveNext"]()) {
|
|
43
|
-
|
|
49
|
+
error_1(enumerator_2["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
44
50
|
}
|
|
45
51
|
}
|
|
46
52
|
finally {
|
|
@@ -50,4 +56,45 @@ export function generateBindingFile(filePath) {
|
|
|
50
56
|
return toString(printer);
|
|
51
57
|
}
|
|
52
58
|
|
|
53
|
-
|
|
59
|
+
/**
|
|
60
|
+
* Generate a single binding file for the packages, and the packages they depend on.
|
|
61
|
+
* An empty list generates every package installed in the nearest <c>node_modules</c>.
|
|
62
|
+
*/
|
|
63
|
+
export function generatePackagesWith(host, inputs) {
|
|
64
|
+
return generatePackagesWithOptions(defaultOptions, host, inputs);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function generatePackagesWithOptions(options, host, inputs) {
|
|
68
|
+
const result = generateWith(options, host, inputs);
|
|
69
|
+
const enumerator = getEnumerator(result.Warnings);
|
|
70
|
+
try {
|
|
71
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
72
|
+
warn(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
finally {
|
|
76
|
+
disposeSafe(enumerator);
|
|
77
|
+
}
|
|
78
|
+
const enumerator_1 = getEnumerator(result.Errors);
|
|
79
|
+
try {
|
|
80
|
+
while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
|
|
81
|
+
error_1(enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
finally {
|
|
85
|
+
disposeSafe(enumerator_1);
|
|
86
|
+
}
|
|
87
|
+
return result.FSharpCode;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The packages installed on the disk, from the current directory
|
|
92
|
+
*/
|
|
93
|
+
export function generatePackages(inputs) {
|
|
94
|
+
return generatePackagesFromDisk(defaultOptions, inputs);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function generatePackagesFromDisk(options, inputs) {
|
|
98
|
+
return generatePackagesWithOptions(options, createNodeHost(fs, path, process.cwd()), inputs);
|
|
99
|
+
}
|
|
100
|
+
|