@glutinum/cli 0.13.0 → 0.14.1
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 +19 -1
- package/dist/Glutinum.Converter/Abbreviations.js +246 -0
- package/dist/Glutinum.Converter/FsharpAST.js +87 -28
- package/dist/Glutinum.Converter/Generate.js +55 -8
- package/dist/Glutinum.Converter/GlueAST.js +333 -34
- 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 +323 -186
- 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 -9
- 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 +1524 -253
- 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 +8292 -1119
- 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 +61 -12
- package/dist/Glutinum.Converter/Utils/String.js +7 -3
- package/dist/Program.js +230 -72
- package/dist/fable_modules/Fable.Promise.3.2.1/AsyncIterable.fs +89 -0
- package/dist/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.3.2.1}/AsyncIterable.fs.js +29 -29
- package/dist/fable_modules/Fable.Promise.3.2.1/Fable.Promise.fableproj +25 -0
- package/dist/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.3.2.1}/Promise.fs +842 -766
- package/dist/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.3.2.1}/Promise.fs.js +26 -12
- package/dist/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.3.2.1}/PromiseImpl.fs +31 -31
- package/dist/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.3.2.1}/PromiseImpl.fs.js +5 -5
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Array.fs +235 -0
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Array.fs.js +384 -0
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AssemblyInfo.fs +4 -4
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Async.fs +89 -9
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Async.fs.js +13 -12
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncOption.fs +50 -4
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncOptionCE.fs +30 -39
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncOptionCE.fs.js +10 -10
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResult.fs +52 -8
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultCE.fs +26 -42
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultCE.fs.js +3 -3
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultOption.fs +17 -5
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/AsyncResultOption.fs.js +26 -0
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultOptionCE.fs +31 -33
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultOptionCE.fs.js +3 -3
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncValidation.fs +1 -6
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncValidationCE.fs +10 -18
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncValidationCE.fs.js +3 -3
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/FsToolkit.ErrorHandling.fableproj +69 -0
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/List.fs +68 -10
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/List.fs.js +47 -41
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Nullness.fs +81 -0
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Option.fs +133 -2
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/OptionCE.fs +139 -0
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/OptionCE.fs.js +48 -0
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/OptionOp.fs +3 -3
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncResult.fs +88 -0
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncResult.fs.js +30 -0
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncResultCE.fs +200 -0
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncResultCE.fs.js +18 -0
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncValidation.fs +34 -0
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncValidationCE.fs +244 -0
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncValidationCE.fs.js +18 -0
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Result.fs +87 -0
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Result.fs.js +8 -8
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultCE.fs +8 -23
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultCE.fs.js +5 -5
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOption.fs +1 -1
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOption.fs.js +10 -10
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOptionCE.fs +7 -18
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOptionCE.fs.js +3 -3
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Seq.fs +503 -0
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Seq.fs.js +295 -0
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Validation.fs +0 -5
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ValidationCE.fs +7 -13
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ValidationCE.fs.js +3 -3
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ValueOption.fs +1 -4
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ValueTaskValueOption.fs +102 -0
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ValueTaskValueOptionCE.fs +587 -0
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ValueTaskValueOptionOp.fs +10 -0
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/obj/Debug/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +3 -3
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/obj/Release/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.fs +3 -0
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.1 → FsToolkit.ErrorHandling.5.2.0/obj/Release/net9.0}/FsToolkit.ErrorHandling.AssemblyInfo.fs +4 -4
- package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/obj/Release/netstandard2.0/FsToolkit.ErrorHandling.AssemblyInfo.fs +4 -4
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/obj/Release/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +20 -0
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Array.js +192 -86
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Async.js +58 -53
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/AsyncBuilder.js +29 -8
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/BigInt.js +71 -46
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/BitConverter.js +2 -2
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Boolean.js +4 -3
- package/dist/fable_modules/fable-library-js.5.17.2/CHANGELOG.md +348 -0
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Char.js +64 -31
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Choice.js +2 -2
- package/dist/fable_modules/fable-library-js.5.17.2/CollectionUtil.js +182 -0
- package/dist/fable_modules/fable-library-js.5.17.2/ConditionalWeakTable.js +21 -0
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Date.js +197 -112
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/DateOffset.js +46 -62
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/DateOnly.js +6 -6
- package/dist/fable_modules/fable-library-js.5.17.2/DateOnlyTemporal.js +146 -0
- package/dist/fable_modules/fable-library-js.5.17.2/DateTimeFormat.js +523 -0
- package/dist/fable_modules/fable-library-js.5.17.2/DateTimeOffsetTemporal.js +283 -0
- package/dist/fable_modules/fable-library-js.5.17.2/DateTimeTemporal.js +243 -0
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Decimal.js +39 -13
- package/dist/fable_modules/fable-library-js.5.17.2/Directory.js +11 -0
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Double.js +10 -3
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Encoding.js +20 -8
- package/dist/fable_modules/fable-library-js.5.17.2/Environment.js +3 -0
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Event.js +10 -1
- package/dist/fable_modules/fable-library-js.5.17.2/FSharp.Collections.js +45 -0
- package/dist/fable_modules/fable-library-js.5.17.2/FSharp.Core.js +156 -0
- package/dist/fable_modules/fable-library-js.5.17.2/File.js +27 -0
- package/dist/fable_modules/fable-library-js.5.17.2/Global.js +29 -0
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Guid.js +33 -12
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Int32.js +17 -17
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/List.js +170 -106
- package/dist/fable_modules/fable-library-js.5.17.2/Long.js +38 -0
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/MailboxProcessor.js +13 -6
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Map.js +65 -61
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/MapUtil.js +22 -4
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/MutableMap.js +28 -16
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/MutableSet.js +7 -7
- package/dist/fable_modules/fable-library-js.5.17.2/Native.js +14 -0
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Numeric.js +44 -3
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Observable.js +5 -3
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Option.js +11 -20
- package/dist/fable_modules/fable-library-js.5.17.2/Path.js +31 -0
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Random.js +22 -20
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Range.js +12 -12
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Reflection.js +50 -22
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/RegExp.js +68 -30
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Result.js +6 -6
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Seq.js +229 -104
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Seq2.js +1 -1
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Set.js +153 -113
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/String.js +238 -50
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/System.Collections.Generic.js +30 -14
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/System.Text.js +69 -31
- package/dist/fable_modules/fable-library-js.5.17.2/System.js +289 -0
- package/dist/fable_modules/fable-library-js.5.17.2/Task.js +27 -0
- package/dist/fable_modules/fable-library-js.5.17.2/TaskBuilder.js +72 -0
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/TimeOnly.js +6 -6
- package/dist/fable_modules/fable-library-js.5.17.2/TimeOnlyTemporal.js +142 -0
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/TimeSpan.js +18 -15
- package/dist/fable_modules/fable-library-js.5.17.2/TimeSpanTemporal.js +259 -0
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Types.js +14 -24
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Uri.js +44 -21
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Util.js +49 -12
- package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/lib/big.js +14 -11
- package/dist/fable_modules/fable-library-js.5.17.2/package.json +24 -0
- package/dist/fable_modules/fable-library-js.5.17.2/quotation.js +682 -0
- 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.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.js.map +0 -1
- package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs.js.map +0 -1
- 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.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs.js.map +0 -1
- 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.js.map +0 -1
- 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/Result.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs.js.map +0 -1
- 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.js.map +0 -1
- 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/ValidationCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValueOptionCE.fs +0 -165
- 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/Async.d.ts +0 -32
- 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/BigInt.d.ts +0 -115
- 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/Boolean.d.ts +0 -3
- 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/Choice.d.ts +0 -121
- 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/DateOffset.d.ts +0 -63
- 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/Decimal.d.ts +0 -45
- 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/Encoding.d.ts +0 -12
- 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/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.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/Int32.d.ts +0 -28
- 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/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/Map.d.ts +0 -178
- 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/MutableMap.d.ts +0 -52
- 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/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/Observable.d.ts +0 -32
- 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/Random.d.ts +0 -37
- 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/Reflection.d.ts +0 -119
- 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/Result.d.ts +0 -37
- 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/Seq2.d.ts +0 -18
- 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/String.d.ts +0 -50
- 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.Text.d.ts +0 -38
- 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/TimeSpan.d.ts +0 -34
- 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/Types.d.ts +0 -58
- 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/Uri.d.ts +0 -29
- 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/lib/big.d.ts +0 -5
- package/dist/fable_modules/fable-library-js.4.14.0/package.json +0 -24
- package/dist/fable_modules/project_cracked.json +0 -1
- /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncOptionOp.fs +0 -0
- /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultOp.fs +0 -0
- /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultOptionOp.fs +0 -0
- /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncValidationOp.fs +0 -0
- /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOp.fs +0 -0
- /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOptionOp.fs +0 -0
- /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ValidationOp.fs +0 -0
- /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/obj/Debug/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -0
- /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/obj/Release/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -0
- /package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/FSharp.Core.CompilerServices.js +0 -0
- /package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/README.md +0 -0
- /package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Timer.js +0 -0
- /package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Unicode.13.0.0.js +0 -0
- /package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/big.d.ts +0 -0
package/README.md
CHANGED
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
This is a compiler from `.d.ts` to F# bindings for [Fable](https://fable.io/).
|
|
4
4
|
|
|
5
|
+
The documentation is at [glutinum.net](https://glutinum.net/), the web application at [glutinum.net/app](https://glutinum.net/app/).
|
|
6
|
+
|
|
5
7
|
## Getting Started
|
|
6
8
|
|
|
7
9
|
Glutinum is delivered both as a CLI tool and web interface.
|
|
8
10
|
|
|
9
11
|
### Web Interface
|
|
10
12
|
|
|
11
|
-
The web interface is available [here](https://glutinum.net/).
|
|
13
|
+
The web interface is available [here](https://glutinum.net/app/).
|
|
12
14
|
|
|
13
15
|
It is a simple and easy-to-use tool, allowing you to convert `.d.ts` files to F# bindings directly from your browser without installing anything.
|
|
14
16
|
|
|
@@ -48,6 +50,22 @@ npx @glutinum/cli ./node_modules/my-lib/index.d.ts > ./Glutinum.MyLib.fs
|
|
|
48
50
|
npx glue ./node_modules/my-lib/index.d.ts > ./Glutinum.MyLib.fs
|
|
49
51
|
```
|
|
50
52
|
|
|
53
|
+
## Published bindings
|
|
54
|
+
|
|
55
|
+
The bindings of the runtimes are generated from this repository and published on NuGet:
|
|
56
|
+
|
|
57
|
+
| Package | Generated from | Usage |
|
|
58
|
+
| --- | --- | --- |
|
|
59
|
+
| [Glutinum.Web](bindings/Glutinum.Web/README.md) | `@types/web` | `open type Glutinum.Web.Exports` |
|
|
60
|
+
| [Glutinum.Node](bindings/Glutinum.Node/README.md) | `@types/node` | `open Glutinum.Node.Exports` |
|
|
61
|
+
| Glutinum.Types | the `lib.es*.d.ts` files of `typescript` | `open Glutinum.Types.TypeScript` |
|
|
62
|
+
|
|
63
|
+
`Glutinum.Types` holds the ES library types Fable.Core does not define, `ReadonlyArray`, `ArrayLike`, `Iterator` or `PromiseLike`. The list is `esLibraryTypes` in `src/Glutinum.Build/Commands/Bindings.fs`; `Array`, `Date`, `Promise`, `Map` and the typed arrays stay on Fable.Core.
|
|
64
|
+
|
|
65
|
+
A binding generated for a package using the DOM or the Node types references them instead of generating them again, the header of the file tells which one to add. `--no-externals` generates them inline.
|
|
66
|
+
|
|
67
|
+
`./build.sh bindings` regenerates them from the versions pinned in `bindings/package.json`, `./build.sh test bindings` runs them in Node and Chromium.
|
|
68
|
+
|
|
51
69
|
## Contributing
|
|
52
70
|
|
|
53
71
|
Glutinum.CLI use `./build.sh` or `./build.bat` as a build script.
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
|
|
2
|
+
import { join } from "../fable_modules/fable-library-js.5.17.2/String.js";
|
|
3
|
+
import { filter, iterate, map as map_1, empty as empty_1, isEmpty, tryFind, truncate, length, singleton, append } from "../fable_modules/fable-library-js.5.17.2/List.js";
|
|
4
|
+
import { defaultOf, equals, disposeSafe, getEnumerator, int32ToString } from "../fable_modules/fable-library-js.5.17.2/Util.js";
|
|
5
|
+
import { tryGetValue, getItemFromDict, addToSet } from "../fable_modules/fable-library-js.5.17.2/MapUtil.js";
|
|
6
|
+
import { empty, singleton as singleton_1, append as append_1, map, delay, toList } from "../fable_modules/fable-library-js.5.17.2/Seq.js";
|
|
7
|
+
import { rangeDouble } from "../fable_modules/fable-library-js.5.17.2/Range.js";
|
|
8
|
+
import { FSharpModule, FSharpTypeAlias, FSharpFunctionType, FSharpParameter, FSharpUnion, FSharpUnionCase, FSharpMapped, FSharpTypeParameter, FSharpTypeReference, FSharpType } from "./FsharpAST.js";
|
|
9
|
+
import { FSharpRef } from "../fable_modules/fable-library-js.5.17.2/Types.js";
|
|
10
|
+
|
|
11
|
+
function key(path, name, arity) {
|
|
12
|
+
return (join(".", append(path, singleton(name))) + "`") + int32ToString(arity);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function collect(path, types, acc, declared) {
|
|
16
|
+
const enumerator = getEnumerator(types);
|
|
17
|
+
try {
|
|
18
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
19
|
+
const typ = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
20
|
+
switch (typ.tag) {
|
|
21
|
+
case 9: {
|
|
22
|
+
const aliasInfo = typ.fields[0];
|
|
23
|
+
const aliasKey = key(path, aliasInfo.Name, length(aliasInfo.TypeParameters));
|
|
24
|
+
acc.set(aliasKey, [path, aliasInfo]);
|
|
25
|
+
addToSet(aliasKey, declared);
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
case 4: {
|
|
29
|
+
const moduleInfo = typ.fields[0];
|
|
30
|
+
collect(append(path, singleton(moduleInfo.Name)), moduleInfo.Types, acc, declared);
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
case 5: {
|
|
34
|
+
const info = typ.fields[0];
|
|
35
|
+
addToSet(key(path, info.Name, length(info.TypeParameters)), declared);
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
case 17: {
|
|
39
|
+
const info_1 = typ.fields[0];
|
|
40
|
+
addToSet(key(path, info_1.Name, length(info_1.TypeParameters)), declared);
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
case 20: {
|
|
44
|
+
const info_2 = typ.fields[0];
|
|
45
|
+
addToSet(key(path, info_2.Name, length(info_2.TypeParameters)), declared);
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
case 1: {
|
|
49
|
+
const info_3 = typ.fields[0];
|
|
50
|
+
addToSet(key(path, info_3.Name, length(info_3.TypeParameters)), declared);
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
case 0: {
|
|
54
|
+
addToSet(key(path, typ.fields[0].Name, 0), declared);
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
case 2: {
|
|
58
|
+
addToSet(key(path, typ.fields[0].Name, 1), declared);
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
default:
|
|
62
|
+
undefined;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
finally {
|
|
67
|
+
disposeSafe(enumerator);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function ancestors(path) {
|
|
72
|
+
return toList(delay(() => map((count) => truncate(count, path), rangeDouble(length(path), -1, 0))));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function resolve(aliases, declared, path, modulePath, name, arity) {
|
|
76
|
+
let key_1;
|
|
77
|
+
const option_1 = tryFind((item) => declared.has(item), toList(delay(() => append_1(!isEmpty(modulePath) ? singleton_1(key(modulePath, name, arity)) : empty(), delay(() => map((ancestor) => key(append(ancestor, modulePath), name, arity), ancestors(path)))))));
|
|
78
|
+
if (option_1 != null) {
|
|
79
|
+
if ((key_1 = option_1, aliases.has(key_1))) {
|
|
80
|
+
return option_1;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
return undefined;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
return undefined;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function apply(types) {
|
|
92
|
+
const aliases = new Map([]);
|
|
93
|
+
const declared = new Set([]);
|
|
94
|
+
collect(empty_1(), types, aliases, declared);
|
|
95
|
+
const onStack = new Set([]);
|
|
96
|
+
const visited = new Set([]);
|
|
97
|
+
const rewritten = new Map([]);
|
|
98
|
+
const visit = (aliasKey) => {
|
|
99
|
+
if (addToSet(aliasKey, visited)) {
|
|
100
|
+
const patternInput = getItemFromDict(aliases, aliasKey);
|
|
101
|
+
const path = patternInput[0];
|
|
102
|
+
const aliasInfo = patternInput[1];
|
|
103
|
+
addToSet(aliasKey, onStack);
|
|
104
|
+
const cut = (typ) => {
|
|
105
|
+
let target_1, target_4;
|
|
106
|
+
switch (typ.tag) {
|
|
107
|
+
case 11: {
|
|
108
|
+
const typeReference = typ.fields[0];
|
|
109
|
+
const target = resolve(aliases, declared, path, typeReference.ModulePath, typeReference.Name, length(typeReference.TypeArguments));
|
|
110
|
+
let matchResult, target_2, target_3;
|
|
111
|
+
if (target != null) {
|
|
112
|
+
if ((target_1 = target, onStack.has(target_1))) {
|
|
113
|
+
matchResult = 0;
|
|
114
|
+
target_2 = target;
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
matchResult = 1;
|
|
118
|
+
target_3 = target;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
matchResult = 1;
|
|
123
|
+
target_3 = target;
|
|
124
|
+
}
|
|
125
|
+
switch (matchResult) {
|
|
126
|
+
case 0:
|
|
127
|
+
return FSharpType.Object$;
|
|
128
|
+
default: {
|
|
129
|
+
const option_1 = target_3;
|
|
130
|
+
if (option_1 != null) {
|
|
131
|
+
visit(option_1);
|
|
132
|
+
}
|
|
133
|
+
return new FSharpType(/* TypeReference */ 11, [new FSharpTypeReference(typeReference.Name, typeReference.FullName, typeReference.ModulePath, map_1(cut, typeReference.TypeArguments), typeReference.Type)]);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
case 7: {
|
|
138
|
+
const mappedInfo = typ.fields[0];
|
|
139
|
+
const arguments$ = map_1((_arg) => {
|
|
140
|
+
if (_arg.tag === 0) {
|
|
141
|
+
return new FSharpTypeParameter(/* FSharpType */ 0, [cut(_arg.fields[0])]);
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
return _arg;
|
|
145
|
+
}
|
|
146
|
+
}, mappedInfo.TypeParameters);
|
|
147
|
+
const matchValue = resolve(aliases, declared, path, empty_1(), mappedInfo.Name, length(arguments$));
|
|
148
|
+
let matchResult_1, target_5, target_6;
|
|
149
|
+
if (matchValue != null) {
|
|
150
|
+
if ((target_4 = matchValue, onStack.has(target_4))) {
|
|
151
|
+
matchResult_1 = 0;
|
|
152
|
+
target_5 = matchValue;
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
matchResult_1 = 1;
|
|
156
|
+
target_6 = matchValue;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
matchResult_1 = 1;
|
|
161
|
+
target_6 = matchValue;
|
|
162
|
+
}
|
|
163
|
+
switch (matchResult_1) {
|
|
164
|
+
case 0:
|
|
165
|
+
return FSharpType.Object$;
|
|
166
|
+
default: {
|
|
167
|
+
const option_3 = target_6;
|
|
168
|
+
if (option_3 != null) {
|
|
169
|
+
visit(option_3);
|
|
170
|
+
}
|
|
171
|
+
return new FSharpType(/* Mapped */ 7, [new FSharpMapped(mappedInfo.Name, arguments$)]);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
case 1: {
|
|
176
|
+
const unionInfo = typ.fields[0];
|
|
177
|
+
return new FSharpType(/* Union */ 1, [new FSharpUnion(unionInfo.Attributes, unionInfo.Name, map_1((_arg_1) => {
|
|
178
|
+
switch (_arg_1.tag) {
|
|
179
|
+
case 1:
|
|
180
|
+
return new FSharpUnionCase(/* Typed */ 1, [cut(_arg_1.fields[0])]);
|
|
181
|
+
case 2:
|
|
182
|
+
return new FSharpUnionCase(/* Field */ 2, [_arg_1.fields[0], cut(_arg_1.fields[1])]);
|
|
183
|
+
default:
|
|
184
|
+
return _arg_1;
|
|
185
|
+
}
|
|
186
|
+
}, unionInfo.Cases), unionInfo.IsOptional, unionInfo.TypeParameters, unionInfo.Constants)]);
|
|
187
|
+
}
|
|
188
|
+
case 3:
|
|
189
|
+
return new FSharpType(/* Option */ 3, [cut(typ.fields[0])]);
|
|
190
|
+
case 14:
|
|
191
|
+
return new FSharpType(/* ResizeArray */ 14, [cut(typ.fields[0])]);
|
|
192
|
+
case 12:
|
|
193
|
+
return new FSharpType(/* Tuple */ 12, [map_1(cut, typ.fields[0])]);
|
|
194
|
+
case 16: {
|
|
195
|
+
const functionInfo = typ.fields[0];
|
|
196
|
+
return new FSharpType(/* Function */ 16, [new FSharpFunctionType(map_1((parameter) => (new FSharpParameter(parameter.Attributes, parameter.Name, parameter.IsOptional, cut(parameter.Type), parameter.OriginalGlueMember)), functionInfo.Parameters), cut(functionInfo.ReturnType))]);
|
|
197
|
+
}
|
|
198
|
+
default:
|
|
199
|
+
return typ;
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
const cutType = cut(aliasInfo.Type);
|
|
203
|
+
if (!equals(cutType, aliasInfo.Type)) {
|
|
204
|
+
rewritten.set(aliasKey, new FSharpTypeAlias(aliasInfo.Attributes, aliasInfo.Name, aliasInfo.XmlDoc, cutType, aliasInfo.TypeParameters));
|
|
205
|
+
}
|
|
206
|
+
onStack.delete(aliasKey);
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
const keys = toList(aliases.keys());
|
|
210
|
+
iterate(visit, filter((k) => {
|
|
211
|
+
let matchValue_1;
|
|
212
|
+
return !((matchValue_1 = getItemFromDict(aliases, k)[1].Type, (matchValue_1.tag === 7) ? true : (matchValue_1.tag === 11)));
|
|
213
|
+
}, keys));
|
|
214
|
+
iterate(visit, keys);
|
|
215
|
+
if (rewritten.size === 0) {
|
|
216
|
+
return types;
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
const rewrite = (path_1, types_2) => map_1((typ_6) => {
|
|
220
|
+
switch (typ_6.tag) {
|
|
221
|
+
case 9: {
|
|
222
|
+
const aliasInfo_2 = typ_6.fields[0];
|
|
223
|
+
let matchValue_2;
|
|
224
|
+
let outArg = defaultOf();
|
|
225
|
+
matchValue_2 = [tryGetValue(rewritten, key(path_1, aliasInfo_2.Name, length(aliasInfo_2.TypeParameters)), new FSharpRef(() => outArg, (v) => {
|
|
226
|
+
outArg = v;
|
|
227
|
+
})), outArg];
|
|
228
|
+
if (matchValue_2[0]) {
|
|
229
|
+
return new FSharpType(/* TypeAlias */ 9, [matchValue_2[1]]);
|
|
230
|
+
}
|
|
231
|
+
else {
|
|
232
|
+
return typ_6;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
case 4: {
|
|
236
|
+
const moduleInfo = typ_6.fields[0];
|
|
237
|
+
return new FSharpType(/* Module */ 4, [new FSharpModule(moduleInfo.Name, moduleInfo.IsRecursive, moduleInfo.ImportSpecifier, rewrite(append(path_1, singleton(moduleInfo.Name)), moduleInfo.Types))]);
|
|
238
|
+
}
|
|
239
|
+
default:
|
|
240
|
+
return typ_6;
|
|
241
|
+
}
|
|
242
|
+
}, types_2);
|
|
243
|
+
return rewrite(empty_1(), types);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
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";
|
|
3
4
|
import { GlueMember_$reflection } from "./GlueAST.js";
|
|
4
|
-
import { int32ToString } from "../fable_modules/fable-library-js.
|
|
5
|
-
import { empty, forAll } from "../fable_modules/fable-library-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";
|
|
6
7
|
|
|
7
8
|
export class FSharpCommentParam extends Record {
|
|
8
9
|
constructor(Name, Content) {
|
|
@@ -52,6 +53,7 @@ export class FSharpLiteral extends Union {
|
|
|
52
53
|
cases() {
|
|
53
54
|
return ["String", "Int", "Float", "Bool", "Null"];
|
|
54
55
|
}
|
|
56
|
+
static Null = new FSharpLiteral(4, []);
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
export function FSharpLiteral_$reflection() {
|
|
@@ -79,6 +81,9 @@ export class FSharpEnumType extends Union {
|
|
|
79
81
|
cases() {
|
|
80
82
|
return ["String", "Numeric", "Unknown"];
|
|
81
83
|
}
|
|
84
|
+
static String$ = new FSharpEnumType(0, []);
|
|
85
|
+
static Numeric = new FSharpEnumType(1, []);
|
|
86
|
+
static Unknown = new FSharpEnumType(2, []);
|
|
82
87
|
}
|
|
83
88
|
|
|
84
89
|
export function FSharpEnumType_$reflection() {
|
|
@@ -116,12 +121,12 @@ export class FSharpUnionCase extends Union {
|
|
|
116
121
|
this.fields = fields;
|
|
117
122
|
}
|
|
118
123
|
cases() {
|
|
119
|
-
return ["Named", "Typed"];
|
|
124
|
+
return ["Named", "Typed", "Field", "NamedFields"];
|
|
120
125
|
}
|
|
121
126
|
}
|
|
122
127
|
|
|
123
128
|
export function FSharpUnionCase_$reflection() {
|
|
124
|
-
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()))]]]);
|
|
125
130
|
}
|
|
126
131
|
|
|
127
132
|
export class FSharpUnionType extends Union {
|
|
@@ -133,37 +138,59 @@ export class FSharpUnionType extends Union {
|
|
|
133
138
|
cases() {
|
|
134
139
|
return ["String", "Numeric", "Unknown"];
|
|
135
140
|
}
|
|
141
|
+
static String$ = new FSharpUnionType(0, []);
|
|
142
|
+
static Numeric = new FSharpUnionType(1, []);
|
|
143
|
+
static Unknown = new FSharpUnionType(2, []);
|
|
136
144
|
}
|
|
137
145
|
|
|
138
146
|
export function FSharpUnionType_$reflection() {
|
|
139
147
|
return union_type("Glutinum.Converter.FSharpAST.FSharpUnionType", [], FSharpUnionType, () => [[], [], []]);
|
|
140
148
|
}
|
|
141
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
|
+
|
|
142
166
|
export class FSharpUnion extends Record {
|
|
143
|
-
constructor(Attributes, Name, Cases, IsOptional) {
|
|
167
|
+
constructor(Attributes, Name, Cases, IsOptional, TypeParameters, Constants) {
|
|
144
168
|
super();
|
|
145
169
|
this.Attributes = Attributes;
|
|
146
170
|
this.Name = Name;
|
|
147
171
|
this.Cases = Cases;
|
|
148
172
|
this.IsOptional = IsOptional;
|
|
173
|
+
this.TypeParameters = TypeParameters;
|
|
174
|
+
this.Constants = Constants;
|
|
149
175
|
}
|
|
150
176
|
}
|
|
151
177
|
|
|
152
178
|
export function FSharpUnion_$reflection() {
|
|
153
|
-
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())]]);
|
|
154
180
|
}
|
|
155
181
|
|
|
156
182
|
export class FSharpModule extends Record {
|
|
157
|
-
constructor(Name, IsRecursive, Types) {
|
|
183
|
+
constructor(Name, IsRecursive, ImportSpecifier, Types) {
|
|
158
184
|
super();
|
|
159
185
|
this.Name = Name;
|
|
160
186
|
this.IsRecursive = IsRecursive;
|
|
187
|
+
this.ImportSpecifier = ImportSpecifier;
|
|
161
188
|
this.Types = Types;
|
|
162
189
|
}
|
|
163
190
|
}
|
|
164
191
|
|
|
165
192
|
export function FSharpModule_$reflection() {
|
|
166
|
-
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())]]);
|
|
167
194
|
}
|
|
168
195
|
|
|
169
196
|
export class FSharpAccessor extends Union {
|
|
@@ -175,6 +202,9 @@ export class FSharpAccessor extends Union {
|
|
|
175
202
|
cases() {
|
|
176
203
|
return ["ReadOnly", "WriteOnly", "ReadWrite"];
|
|
177
204
|
}
|
|
205
|
+
static ReadOnly = new FSharpAccessor(0, []);
|
|
206
|
+
static WriteOnly = new FSharpAccessor(1, []);
|
|
207
|
+
static ReadWrite = new FSharpAccessor(2, []);
|
|
178
208
|
}
|
|
179
209
|
|
|
180
210
|
export function FSharpAccessor_$reflection() {
|
|
@@ -190,6 +220,9 @@ export class FSharpAccessibility extends Union {
|
|
|
190
220
|
cases() {
|
|
191
221
|
return ["Public", "Private", "Protected"];
|
|
192
222
|
}
|
|
223
|
+
static Public = new FSharpAccessibility(0, []);
|
|
224
|
+
static Private = new FSharpAccessibility(1, []);
|
|
225
|
+
static Protected = new FSharpAccessibility(2, []);
|
|
193
226
|
}
|
|
194
227
|
|
|
195
228
|
export function FSharpAccessibility_$reflection() {
|
|
@@ -203,12 +236,23 @@ export class FSharpAttribute extends Union {
|
|
|
203
236
|
this.fields = fields;
|
|
204
237
|
}
|
|
205
238
|
cases() {
|
|
206
|
-
return ["Text", "EmitSelfInvoke", "EmitSelf", "Import", "ImportAll", "ImportDefault", "Erase", "AbstractClass", "AllowNullLiteral", "Obsolete", "StringEnum", "CompiledName", "RequireQualifiedAccess", "EmitConstructor", "EmitMacroConstructor", "EmitMacroInvoke", "EmitMacroProperty", "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"];
|
|
207
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, []);
|
|
208
252
|
}
|
|
209
253
|
|
|
210
254
|
export function FSharpAttribute_$reflection() {
|
|
211
|
-
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]], [["propertyName", 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)]], [], [], []]);
|
|
212
256
|
}
|
|
213
257
|
|
|
214
258
|
export class FSharpParameter extends Record {
|
|
@@ -235,6 +279,8 @@ export class FSharpMemberInfoBody extends Union {
|
|
|
235
279
|
cases() {
|
|
236
280
|
return ["NativeOnly", "JavaScriptStaticProperty"];
|
|
237
281
|
}
|
|
282
|
+
static NativeOnly = new FSharpMemberInfoBody(0, []);
|
|
283
|
+
static JavaScriptStaticProperty = new FSharpMemberInfoBody(1, []);
|
|
238
284
|
}
|
|
239
285
|
|
|
240
286
|
export function FSharpMemberInfoBody_$reflection() {
|
|
@@ -316,16 +362,17 @@ export function FSharpInterface_$reflection() {
|
|
|
316
362
|
}
|
|
317
363
|
|
|
318
364
|
export class FSharpExplicitField extends Record {
|
|
319
|
-
constructor(Name, Type, Accessor) {
|
|
365
|
+
constructor(Name, XmlDoc, Type, Accessor) {
|
|
320
366
|
super();
|
|
321
367
|
this.Name = Name;
|
|
368
|
+
this.XmlDoc = XmlDoc;
|
|
322
369
|
this.Type = Type;
|
|
323
370
|
this.Accessor = Accessor;
|
|
324
371
|
}
|
|
325
372
|
}
|
|
326
373
|
|
|
327
374
|
export function FSharpExplicitField_$reflection() {
|
|
328
|
-
return record_type("Glutinum.Converter.FSharpAST.FSharpExplicitField", [], FSharpExplicitField, () => [["Name", string_type], ["Type", FSharpType_$reflection()], ["Accessor", option_type(FSharpAccessor_$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())]]);
|
|
329
376
|
}
|
|
330
377
|
|
|
331
378
|
export class FSharpConstructor extends Record {
|
|
@@ -342,9 +389,10 @@ export function FSharpConstructor_$reflection() {
|
|
|
342
389
|
}
|
|
343
390
|
|
|
344
391
|
export class FSharpClass extends Record {
|
|
345
|
-
constructor(Attributes, Name, TypeParameters, PrimaryConstructor, SecondaryConstructors, ExplicitFields) {
|
|
392
|
+
constructor(Attributes, XmlDoc, Name, TypeParameters, PrimaryConstructor, SecondaryConstructors, ExplicitFields) {
|
|
346
393
|
super();
|
|
347
394
|
this.Attributes = Attributes;
|
|
395
|
+
this.XmlDoc = XmlDoc;
|
|
348
396
|
this.Name = Name;
|
|
349
397
|
this.TypeParameters = TypeParameters;
|
|
350
398
|
this.PrimaryConstructor = PrimaryConstructor;
|
|
@@ -354,7 +402,7 @@ export class FSharpClass extends Record {
|
|
|
354
402
|
}
|
|
355
403
|
|
|
356
404
|
export function FSharpClass_$reflection() {
|
|
357
|
-
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())]]);
|
|
358
406
|
}
|
|
359
407
|
|
|
360
408
|
export class FSharpMapped extends Record {
|
|
@@ -376,12 +424,20 @@ export class FSharpPrimitive extends Union {
|
|
|
376
424
|
this.fields = fields;
|
|
377
425
|
}
|
|
378
426
|
cases() {
|
|
379
|
-
return ["String", "Int", "Float", "Bool", "Unit", "Number", "Null"];
|
|
427
|
+
return ["String", "Int", "Float", "Bool", "Unit", "Number", "Null", "BigInt"];
|
|
380
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, []);
|
|
381
437
|
}
|
|
382
438
|
|
|
383
439
|
export function FSharpPrimitive_$reflection() {
|
|
384
|
-
return union_type("Glutinum.Converter.FSharpAST.FSharpPrimitive", [], FSharpPrimitive, () => [[], [], [], [], [], [], []]);
|
|
440
|
+
return union_type("Glutinum.Converter.FSharpAST.FSharpPrimitive", [], FSharpPrimitive, () => [[], [], [], [], [], [], [], []]);
|
|
385
441
|
}
|
|
386
442
|
|
|
387
443
|
export class FSharpTypeParameterInfo extends Record {
|
|
@@ -428,17 +484,18 @@ export function FSharpTypeAlias_$reflection() {
|
|
|
428
484
|
}
|
|
429
485
|
|
|
430
486
|
export class FSharpTypeReference extends Record {
|
|
431
|
-
constructor(Name, FullName, TypeArguments, Type) {
|
|
487
|
+
constructor(Name, FullName, ModulePath, TypeArguments, Type) {
|
|
432
488
|
super();
|
|
433
489
|
this.Name = Name;
|
|
434
490
|
this.FullName = FullName;
|
|
491
|
+
this.ModulePath = ModulePath;
|
|
435
492
|
this.TypeArguments = TypeArguments;
|
|
436
493
|
this.Type = Type;
|
|
437
494
|
}
|
|
438
495
|
}
|
|
439
496
|
|
|
440
497
|
export function FSharpTypeReference_$reflection() {
|
|
441
|
-
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()]]);
|
|
442
499
|
}
|
|
443
500
|
|
|
444
501
|
export class FSharpFunctionType extends Record {
|
|
@@ -495,8 +552,9 @@ export function FSharpJSApi_$reflection() {
|
|
|
495
552
|
}
|
|
496
553
|
|
|
497
554
|
export class FSharpDelegate extends Record {
|
|
498
|
-
constructor(Name, TypeParameters, Parameters, ReturnType) {
|
|
555
|
+
constructor(XmlDoc, Name, TypeParameters, Parameters, ReturnType) {
|
|
499
556
|
super();
|
|
557
|
+
this.XmlDoc = XmlDoc;
|
|
500
558
|
this.Name = Name;
|
|
501
559
|
this.TypeParameters = TypeParameters;
|
|
502
560
|
this.Parameters = Parameters;
|
|
@@ -505,7 +563,7 @@ export class FSharpDelegate extends Record {
|
|
|
505
563
|
}
|
|
506
564
|
|
|
507
565
|
export function FSharpDelegate_$reflection() {
|
|
508
|
-
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()]]);
|
|
509
567
|
}
|
|
510
568
|
|
|
511
569
|
export class FSharpType extends Union {
|
|
@@ -517,6 +575,8 @@ export class FSharpType extends Union {
|
|
|
517
575
|
cases() {
|
|
518
576
|
return ["Enum", "Union", "SingleErasedCaseUnion", "Option", "Module", "Interface", "Unsupported", "Mapped", "Primitive", "TypeAlias", "Discard", "TypeReference", "Tuple", "TypeParameter", "ResizeArray", "ThisType", "Function", "Class", "Object", "JSApi", "Delegate"];
|
|
519
577
|
}
|
|
578
|
+
static Discard = new FSharpType(10, []);
|
|
579
|
+
static Object$ = new FSharpType(18, []);
|
|
520
580
|
}
|
|
521
581
|
|
|
522
582
|
export function FSharpType_$reflection() {
|
|
@@ -574,13 +634,13 @@ export function FSharpEnum__get_Type(this$) {
|
|
|
574
634
|
return false;
|
|
575
635
|
}
|
|
576
636
|
}, this$.Cases)) {
|
|
577
|
-
return
|
|
637
|
+
return FSharpEnumType.Numeric;
|
|
578
638
|
}
|
|
579
639
|
else if (isString) {
|
|
580
|
-
return
|
|
640
|
+
return FSharpEnumType.String$;
|
|
581
641
|
}
|
|
582
642
|
else {
|
|
583
|
-
return
|
|
643
|
+
return FSharpEnumType.Unknown;
|
|
584
644
|
}
|
|
585
645
|
}
|
|
586
646
|
|
|
@@ -596,15 +656,14 @@ export function FSharpAccessibility__get_Text(this$) {
|
|
|
596
656
|
}
|
|
597
657
|
|
|
598
658
|
export function FSharpConstructor_get_EmptyPublic() {
|
|
599
|
-
return new FSharpConstructor(empty(), empty(),
|
|
659
|
+
return new FSharpConstructor(empty(), empty(), FSharpAccessibility.Public);
|
|
600
660
|
}
|
|
601
661
|
|
|
602
662
|
export function FSharpConstructor_get_EmptyPrivate() {
|
|
603
|
-
return new FSharpConstructor(empty(), empty(),
|
|
663
|
+
return new FSharpConstructor(empty(), empty(), FSharpAccessibility.Private);
|
|
604
664
|
}
|
|
605
665
|
|
|
606
666
|
export function FSharpTypeParameterInfo_Create_Z6CFD3565(name, constraint_, default_) {
|
|
607
667
|
return new FSharpTypeParameterInfo(name, constraint_, default_);
|
|
608
668
|
}
|
|
609
669
|
|
|
610
|
-
//# sourceMappingURL=FsharpAST.js.map
|