@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
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
|
|
2
|
+
import { toString, Union, Record } from "../fable_modules/fable-library-js.5.17.2/Types.js";
|
|
3
|
+
import { float64_type, int32_type, bool_type, union_type, list_type, record_type, option_type, string_type } from "../fable_modules/fable-library-js.5.17.2/Reflection.js";
|
|
4
|
+
import { append, singleton, map, collect, empty } from "../fable_modules/fable-library-js.5.17.2/List.js";
|
|
5
|
+
import { stringHash, int32ToString } from "../fable_modules/fable-library-js.5.17.2/Util.js";
|
|
6
|
+
import { join, concat } from "../fable_modules/fable-library-js.5.17.2/String.js";
|
|
7
|
+
import { tryFind } from "../fable_modules/fable-library-js.5.17.2/Map.js";
|
|
8
|
+
import { List_distinctBy } from "../fable_modules/fable-library-js.5.17.2/Seq2.js";
|
|
6
9
|
|
|
7
10
|
export class GlueCommentParam extends Record {
|
|
8
11
|
constructor(Name, Content) {
|
|
@@ -71,10 +74,11 @@ export function GlueTypeParameter_$reflection() {
|
|
|
71
74
|
}
|
|
72
75
|
|
|
73
76
|
export class GlueMethod extends Record {
|
|
74
|
-
constructor(Name, Documentation, Parameters, Type, IsOptional, IsStatic) {
|
|
77
|
+
constructor(Name, Documentation, TypeParameters, Parameters, Type, IsOptional, IsStatic) {
|
|
75
78
|
super();
|
|
76
79
|
this.Name = Name;
|
|
77
80
|
this.Documentation = Documentation;
|
|
81
|
+
this.TypeParameters = TypeParameters;
|
|
78
82
|
this.Parameters = Parameters;
|
|
79
83
|
this.Type = Type;
|
|
80
84
|
this.IsOptional = IsOptional;
|
|
@@ -83,19 +87,20 @@ export class GlueMethod extends Record {
|
|
|
83
87
|
}
|
|
84
88
|
|
|
85
89
|
export function GlueMethod_$reflection() {
|
|
86
|
-
return record_type("Glutinum.Converter.GlueAST.GlueMethod", [], GlueMethod, () => [["Name", string_type], ["Documentation", list_type(GlueComment_$reflection())], ["Parameters", list_type(GlueParameter_$reflection())], ["Type", GlueType_$reflection()], ["IsOptional", bool_type], ["IsStatic", bool_type]]);
|
|
90
|
+
return record_type("Glutinum.Converter.GlueAST.GlueMethod", [], GlueMethod, () => [["Name", string_type], ["Documentation", list_type(GlueComment_$reflection())], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["Parameters", list_type(GlueParameter_$reflection())], ["Type", GlueType_$reflection()], ["IsOptional", bool_type], ["IsStatic", bool_type]]);
|
|
87
91
|
}
|
|
88
92
|
|
|
89
93
|
export class GlueCallSignature extends Record {
|
|
90
|
-
constructor(Parameters, Type) {
|
|
94
|
+
constructor(TypeParameters, Parameters, Type) {
|
|
91
95
|
super();
|
|
96
|
+
this.TypeParameters = TypeParameters;
|
|
92
97
|
this.Parameters = Parameters;
|
|
93
98
|
this.Type = Type;
|
|
94
99
|
}
|
|
95
100
|
}
|
|
96
101
|
|
|
97
102
|
export function GlueCallSignature_$reflection() {
|
|
98
|
-
return record_type("Glutinum.Converter.GlueAST.GlueCallSignature", [], GlueCallSignature, () => [["Parameters", list_type(GlueParameter_$reflection())], ["Type", GlueType_$reflection()]]);
|
|
103
|
+
return record_type("Glutinum.Converter.GlueAST.GlueCallSignature", [], GlueCallSignature, () => [["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["Parameters", list_type(GlueParameter_$reflection())], ["Type", GlueType_$reflection()]]);
|
|
99
104
|
}
|
|
100
105
|
|
|
101
106
|
export class GlueAccessor extends Union {
|
|
@@ -107,6 +112,9 @@ export class GlueAccessor extends Union {
|
|
|
107
112
|
cases() {
|
|
108
113
|
return ["ReadOnly", "WriteOnly", "ReadWrite"];
|
|
109
114
|
}
|
|
115
|
+
static ReadOnly = new GlueAccessor(0, []);
|
|
116
|
+
static WriteOnly = new GlueAccessor(1, []);
|
|
117
|
+
static ReadWrite = new GlueAccessor(2, []);
|
|
110
118
|
}
|
|
111
119
|
|
|
112
120
|
export function GlueAccessor_$reflection() {
|
|
@@ -174,17 +182,18 @@ export function GlueIndexSignature_$reflection() {
|
|
|
174
182
|
}
|
|
175
183
|
|
|
176
184
|
export class GlueMethodSignature extends Record {
|
|
177
|
-
constructor(Name, Documentation, Parameters, Type) {
|
|
185
|
+
constructor(Name, Documentation, TypeParameters, Parameters, Type) {
|
|
178
186
|
super();
|
|
179
187
|
this.Name = Name;
|
|
180
188
|
this.Documentation = Documentation;
|
|
189
|
+
this.TypeParameters = TypeParameters;
|
|
181
190
|
this.Parameters = Parameters;
|
|
182
191
|
this.Type = Type;
|
|
183
192
|
}
|
|
184
193
|
}
|
|
185
194
|
|
|
186
195
|
export function GlueMethodSignature_$reflection() {
|
|
187
|
-
return record_type("Glutinum.Converter.GlueAST.GlueMethodSignature", [], GlueMethodSignature, () => [["Name", string_type], ["Documentation", list_type(GlueComment_$reflection())], ["Parameters", list_type(GlueParameter_$reflection())], ["Type", GlueType_$reflection()]]);
|
|
196
|
+
return record_type("Glutinum.Converter.GlueAST.GlueMethodSignature", [], GlueMethodSignature, () => [["Name", string_type], ["Documentation", list_type(GlueComment_$reflection())], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["Parameters", list_type(GlueParameter_$reflection())], ["Type", GlueType_$reflection()]]);
|
|
188
197
|
}
|
|
189
198
|
|
|
190
199
|
export class GlueConstructSignature extends Record {
|
|
@@ -215,8 +224,9 @@ export function GlueMember_$reflection() {
|
|
|
215
224
|
}
|
|
216
225
|
|
|
217
226
|
export class GlueInterface extends Record {
|
|
218
|
-
constructor(FullName, Name, Members, TypeParameters, HeritageClauses) {
|
|
227
|
+
constructor(Documentation, FullName, Name, Members, TypeParameters, HeritageClauses) {
|
|
219
228
|
super();
|
|
229
|
+
this.Documentation = Documentation;
|
|
220
230
|
this.FullName = FullName;
|
|
221
231
|
this.Name = Name;
|
|
222
232
|
this.Members = Members;
|
|
@@ -226,7 +236,7 @@ export class GlueInterface extends Record {
|
|
|
226
236
|
}
|
|
227
237
|
|
|
228
238
|
export function GlueInterface_$reflection() {
|
|
229
|
-
return record_type("Glutinum.Converter.GlueAST.GlueInterface", [], GlueInterface, () => [["FullName", string_type], ["Name", string_type], ["Members", list_type(GlueMember_$reflection())], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["HeritageClauses", list_type(GlueType_$reflection())]]);
|
|
239
|
+
return record_type("Glutinum.Converter.GlueAST.GlueInterface", [], GlueInterface, () => [["Documentation", list_type(GlueComment_$reflection())], ["FullName", string_type], ["Name", string_type], ["Members", list_type(GlueMember_$reflection())], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["HeritageClauses", list_type(GlueType_$reflection())]]);
|
|
230
240
|
}
|
|
231
241
|
|
|
232
242
|
export class GlueTypeLiteral extends Record {
|
|
@@ -260,12 +270,25 @@ export class GluePrimitive extends Union {
|
|
|
260
270
|
this.fields = fields;
|
|
261
271
|
}
|
|
262
272
|
cases() {
|
|
263
|
-
return ["String", "Int", "Float", "Bool", "Unit", "Number", "Any", "Null", "Undefined", "Object", "Symbol", "Never"];
|
|
273
|
+
return ["String", "Int", "Float", "Bool", "Unit", "Number", "Any", "Null", "Undefined", "Object", "Symbol", "Never", "BigInt"];
|
|
264
274
|
}
|
|
275
|
+
static String$ = new GluePrimitive(0, []);
|
|
276
|
+
static Int = new GluePrimitive(1, []);
|
|
277
|
+
static Float = new GluePrimitive(2, []);
|
|
278
|
+
static Bool = new GluePrimitive(3, []);
|
|
279
|
+
static Unit = new GluePrimitive(4, []);
|
|
280
|
+
static Number$ = new GluePrimitive(5, []);
|
|
281
|
+
static Any = new GluePrimitive(6, []);
|
|
282
|
+
static Null = new GluePrimitive(7, []);
|
|
283
|
+
static Undefined = new GluePrimitive(8, []);
|
|
284
|
+
static Object$ = new GluePrimitive(9, []);
|
|
285
|
+
static Symbol$ = new GluePrimitive(10, []);
|
|
286
|
+
static Never = new GluePrimitive(11, []);
|
|
287
|
+
static BigInt$ = new GluePrimitive(12, []);
|
|
265
288
|
}
|
|
266
289
|
|
|
267
290
|
export function GluePrimitive_$reflection() {
|
|
268
|
-
return union_type("Glutinum.Converter.GlueAST.GluePrimitive", [], GluePrimitive, () => [[], [], [], [], [], [], [], [], [], [], [], []]);
|
|
291
|
+
return union_type("Glutinum.Converter.GlueAST.GluePrimitive", [], GluePrimitive, () => [[], [], [], [], [], [], [], [], [], [], [], [], []]);
|
|
269
292
|
}
|
|
270
293
|
|
|
271
294
|
export class GlueLiteral extends Union {
|
|
@@ -277,6 +300,7 @@ export class GlueLiteral extends Union {
|
|
|
277
300
|
cases() {
|
|
278
301
|
return ["String", "Int", "Float", "Bool", "Null"];
|
|
279
302
|
}
|
|
303
|
+
static Null = new GlueLiteral(4, []);
|
|
280
304
|
}
|
|
281
305
|
|
|
282
306
|
export function GlueLiteral_$reflection() {
|
|
@@ -308,9 +332,10 @@ export function GlueEnum_$reflection() {
|
|
|
308
332
|
}
|
|
309
333
|
|
|
310
334
|
export class GlueTypeAliasDeclaration extends Record {
|
|
311
|
-
constructor(Documentation, Name, Type, TypeParameters) {
|
|
335
|
+
constructor(Documentation, FullName, Name, Type, TypeParameters) {
|
|
312
336
|
super();
|
|
313
337
|
this.Documentation = Documentation;
|
|
338
|
+
this.FullName = FullName;
|
|
314
339
|
this.Name = Name;
|
|
315
340
|
this.Type = Type;
|
|
316
341
|
this.TypeParameters = TypeParameters;
|
|
@@ -318,7 +343,7 @@ export class GlueTypeAliasDeclaration extends Record {
|
|
|
318
343
|
}
|
|
319
344
|
|
|
320
345
|
export function GlueTypeAliasDeclaration_$reflection() {
|
|
321
|
-
return record_type("Glutinum.Converter.GlueAST.GlueTypeAliasDeclaration", [], GlueTypeAliasDeclaration, () => [["Documentation", list_type(GlueComment_$reflection())], ["Name", string_type], ["Type", GlueType_$reflection()], ["TypeParameters", list_type(GlueTypeParameter_$reflection())]]);
|
|
346
|
+
return record_type("Glutinum.Converter.GlueAST.GlueTypeAliasDeclaration", [], GlueTypeAliasDeclaration, () => [["Documentation", list_type(GlueComment_$reflection())], ["FullName", string_type], ["Name", string_type], ["Type", GlueType_$reflection()], ["TypeParameters", list_type(GlueTypeParameter_$reflection())]]);
|
|
322
347
|
}
|
|
323
348
|
|
|
324
349
|
export class GlueFunctionDeclaration extends Record {
|
|
@@ -338,18 +363,20 @@ export function GlueFunctionDeclaration_$reflection() {
|
|
|
338
363
|
}
|
|
339
364
|
|
|
340
365
|
export class GlueModuleDeclaration extends Record {
|
|
341
|
-
constructor(Name, IsTopLevel, IsNamespace, IsRecursive, Types) {
|
|
366
|
+
constructor(Documentation, Name, IsTopLevel, IsNamespace, IsGlobal, IsRecursive, Types) {
|
|
342
367
|
super();
|
|
368
|
+
this.Documentation = Documentation;
|
|
343
369
|
this.Name = Name;
|
|
344
370
|
this.IsTopLevel = IsTopLevel;
|
|
345
371
|
this.IsNamespace = IsNamespace;
|
|
372
|
+
this.IsGlobal = IsGlobal;
|
|
346
373
|
this.IsRecursive = IsRecursive;
|
|
347
374
|
this.Types = Types;
|
|
348
375
|
}
|
|
349
376
|
}
|
|
350
377
|
|
|
351
378
|
export function GlueModuleDeclaration_$reflection() {
|
|
352
|
-
return record_type("Glutinum.Converter.GlueAST.GlueModuleDeclaration", [], GlueModuleDeclaration, () => [["Name", string_type], ["IsTopLevel", bool_type], ["IsNamespace", bool_type], ["IsRecursive", bool_type], ["Types", list_type(GlueType_$reflection())]]);
|
|
379
|
+
return record_type("Glutinum.Converter.GlueAST.GlueModuleDeclaration", [], GlueModuleDeclaration, () => [["Documentation", list_type(GlueComment_$reflection())], ["Name", string_type], ["IsTopLevel", bool_type], ["IsNamespace", bool_type], ["IsGlobal", bool_type], ["IsRecursive", bool_type], ["Types", list_type(GlueType_$reflection())]]);
|
|
353
380
|
}
|
|
354
381
|
|
|
355
382
|
export class GlueConstructor extends Record {
|
|
@@ -365,33 +392,36 @@ export function GlueConstructor_$reflection() {
|
|
|
365
392
|
}
|
|
366
393
|
|
|
367
394
|
export class GlueClassDeclaration extends Record {
|
|
368
|
-
constructor(Documentation, Name, Constructors, Members, TypeParameters, HeritageClauses) {
|
|
395
|
+
constructor(Documentation, FullName, Name, Constructors, Members, TypeParameters, HeritageClauses, IsExported) {
|
|
369
396
|
super();
|
|
370
397
|
this.Documentation = Documentation;
|
|
398
|
+
this.FullName = FullName;
|
|
371
399
|
this.Name = Name;
|
|
372
400
|
this.Constructors = Constructors;
|
|
373
401
|
this.Members = Members;
|
|
374
402
|
this.TypeParameters = TypeParameters;
|
|
375
403
|
this.HeritageClauses = HeritageClauses;
|
|
404
|
+
this.IsExported = IsExported;
|
|
376
405
|
}
|
|
377
406
|
}
|
|
378
407
|
|
|
379
408
|
export function GlueClassDeclaration_$reflection() {
|
|
380
|
-
return record_type("Glutinum.Converter.GlueAST.GlueClassDeclaration", [], GlueClassDeclaration, () => [["Documentation", list_type(GlueComment_$reflection())], ["Name", string_type], ["Constructors", list_type(GlueConstructor_$reflection())], ["Members", list_type(GlueMember_$reflection())], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["HeritageClauses", list_type(GlueType_$reflection())]]);
|
|
409
|
+
return record_type("Glutinum.Converter.GlueAST.GlueClassDeclaration", [], GlueClassDeclaration, () => [["Documentation", list_type(GlueComment_$reflection())], ["FullName", string_type], ["Name", string_type], ["Constructors", list_type(GlueConstructor_$reflection())], ["Members", list_type(GlueMember_$reflection())], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["HeritageClauses", list_type(GlueType_$reflection())], ["IsExported", bool_type]]);
|
|
381
410
|
}
|
|
382
411
|
|
|
383
412
|
export class GlueTypeReference extends Record {
|
|
384
|
-
constructor(Name, FullName, TypeArguments, IsStandardLibrary) {
|
|
413
|
+
constructor(Name, FullName, ModulePath, TypeArguments, IsStandardLibrary) {
|
|
385
414
|
super();
|
|
386
415
|
this.Name = Name;
|
|
387
416
|
this.FullName = FullName;
|
|
417
|
+
this.ModulePath = ModulePath;
|
|
388
418
|
this.TypeArguments = TypeArguments;
|
|
389
419
|
this.IsStandardLibrary = IsStandardLibrary;
|
|
390
420
|
}
|
|
391
421
|
}
|
|
392
422
|
|
|
393
423
|
export function GlueTypeReference_$reflection() {
|
|
394
|
-
return record_type("Glutinum.Converter.GlueAST.GlueTypeReference", [], GlueTypeReference, () => [["Name", string_type], ["FullName", string_type], ["TypeArguments", list_type(GlueType_$reflection())], ["IsStandardLibrary", bool_type]]);
|
|
424
|
+
return record_type("Glutinum.Converter.GlueAST.GlueTypeReference", [], GlueTypeReference, () => [["Name", string_type], ["FullName", string_type], ["ModulePath", list_type(string_type)], ["TypeArguments", list_type(GlueType_$reflection())], ["IsStandardLibrary", bool_type]]);
|
|
395
425
|
}
|
|
396
426
|
|
|
397
427
|
export class GlueTypeUnion extends Union {
|
|
@@ -425,17 +455,18 @@ export function ExcludedMember_$reflection() {
|
|
|
425
455
|
}
|
|
426
456
|
|
|
427
457
|
export class GlueFunctionType extends Record {
|
|
428
|
-
constructor(Documentation, Type, TypeParameters, Parameters) {
|
|
458
|
+
constructor(Documentation, Type, TypeParameters, OwnTypeParameterNames, Parameters) {
|
|
429
459
|
super();
|
|
430
460
|
this.Documentation = Documentation;
|
|
431
461
|
this.Type = Type;
|
|
432
462
|
this.TypeParameters = TypeParameters;
|
|
463
|
+
this.OwnTypeParameterNames = OwnTypeParameterNames;
|
|
433
464
|
this.Parameters = Parameters;
|
|
434
465
|
}
|
|
435
466
|
}
|
|
436
467
|
|
|
437
468
|
export function GlueFunctionType_$reflection() {
|
|
438
|
-
return record_type("Glutinum.Converter.GlueAST.GlueFunctionType", [], GlueFunctionType, () => [["Documentation", list_type(GlueComment_$reflection())], ["Type", GlueType_$reflection()], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["Parameters", list_type(GlueParameter_$reflection())]]);
|
|
469
|
+
return record_type("Glutinum.Converter.GlueAST.GlueFunctionType", [], GlueFunctionType, () => [["Documentation", list_type(GlueComment_$reflection())], ["Type", GlueType_$reflection()], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["OwnTypeParameterNames", list_type(string_type)], ["Parameters", list_type(GlueParameter_$reflection())]]);
|
|
439
470
|
}
|
|
440
471
|
|
|
441
472
|
export class NamedTupleType extends Record {
|
|
@@ -535,31 +566,94 @@ export class GlueType extends Union {
|
|
|
535
566
|
this.fields = fields;
|
|
536
567
|
}
|
|
537
568
|
cases() {
|
|
538
|
-
return ["Discard", "Interface", "Variable", "Primitive", "Enum", "TypeAliasDeclaration", "FunctionDeclaration", "Union", "Literal", "KeyOf", "IndexedAccessType", "ModuleDeclaration", "ClassDeclaration", "TypeReference", "Array", "FunctionType", "TypeParameter", "ThisType", "TupleType", "NamedTupleType", "IntersectionType", "TypeLiteral", "OptionalType", "Unknown", "ExportDefault", "TemplateLiteral", "UtilityType", "MappedType", "ConstructorType", "ReadOnly"];
|
|
569
|
+
return ["Discard", "Interface", "Variable", "Primitive", "Enum", "TypeAliasDeclaration", "FunctionDeclaration", "Union", "Literal", "KeyOf", "IndexedAccessType", "ModuleDeclaration", "ClassDeclaration", "TypeReference", "Array", "FunctionType", "TypeParameter", "ThisType", "TupleType", "NamedTupleType", "IntersectionType", "TypeLiteral", "OptionalType", "Unknown", "ExportDefault", "TemplateLiteral", "UtilityType", "MappedType", "ConstructorType", "ReadOnly", "FileModule", "ReExport", "ConditionalType"];
|
|
539
570
|
}
|
|
571
|
+
static Discard = new GlueType(0, []);
|
|
572
|
+
static Unknown = new GlueType(23, []);
|
|
573
|
+
static TemplateLiteral = new GlueType(25, []);
|
|
540
574
|
}
|
|
541
575
|
|
|
542
576
|
export function GlueType_$reflection() {
|
|
543
|
-
return union_type("Glutinum.Converter.GlueAST.GlueType", [], GlueType, () => [[], [["Item", GlueInterface_$reflection()]], [["Item", GlueVariable_$reflection()]], [["Item", GluePrimitive_$reflection()]], [["Item", GlueEnum_$reflection()]], [["Item", GlueTypeAliasDeclaration_$reflection()]], [["Item", GlueFunctionDeclaration_$reflection()]], [["Item", GlueTypeUnion_$reflection()]], [["Item", GlueLiteral_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueIndexedAccessType_$reflection()]], [["Item", GlueModuleDeclaration_$reflection()]], [["Item", GlueClassDeclaration_$reflection()]], [["Item", GlueTypeReference_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueFunctionType_$reflection()]], [["Item", string_type]], [["Item", GlueThisType_$reflection()]], [["Item", list_type(GlueType_$reflection())]], [["Item", NamedTupleType_$reflection()]], [["Item", list_type(GlueMember_$reflection())]], [["Item", GlueTypeLiteral_$reflection()]], [["Item", GlueType_$reflection()]], [], [["Item", GlueType_$reflection()]], [], [["Item", GlueUtilityType_$reflection()]], [["Item", GlueMappedType_$reflection()]], [], [["Item", GlueType_$reflection()]]]);
|
|
577
|
+
return union_type("Glutinum.Converter.GlueAST.GlueType", [], GlueType, () => [[], [["Item", GlueInterface_$reflection()]], [["Item", GlueVariable_$reflection()]], [["Item", GluePrimitive_$reflection()]], [["Item", GlueEnum_$reflection()]], [["Item", GlueTypeAliasDeclaration_$reflection()]], [["Item", GlueFunctionDeclaration_$reflection()]], [["Item", GlueTypeUnion_$reflection()]], [["Item", GlueLiteral_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueIndexedAccessType_$reflection()]], [["Item", GlueModuleDeclaration_$reflection()]], [["Item", GlueClassDeclaration_$reflection()]], [["Item", GlueTypeReference_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueFunctionType_$reflection()]], [["Item", string_type]], [["Item", GlueThisType_$reflection()]], [["Item", list_type(GlueType_$reflection())]], [["Item", NamedTupleType_$reflection()]], [["Item", list_type(GlueMember_$reflection())]], [["Item", GlueTypeLiteral_$reflection()]], [["Item", GlueType_$reflection()]], [], [["Item", GlueType_$reflection()]], [], [["Item", GlueUtilityType_$reflection()]], [["Item", GlueMappedType_$reflection()]], [["Item", GlueConstructSignature_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueFileModule_$reflection()]], [["Item", GlueReExport_$reflection()]], [["Item", GlueConditionalType_$reflection()]]]);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
export class GlueFileModule extends Record {
|
|
581
|
+
constructor(Name, ImportSpecifier, IsGlobal, Types) {
|
|
582
|
+
super();
|
|
583
|
+
this.Name = Name;
|
|
584
|
+
this.ImportSpecifier = ImportSpecifier;
|
|
585
|
+
this.IsGlobal = IsGlobal;
|
|
586
|
+
this.Types = Types;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
export function GlueFileModule_$reflection() {
|
|
591
|
+
return record_type("Glutinum.Converter.GlueAST.GlueFileModule", [], GlueFileModule, () => [["Name", string_type], ["ImportSpecifier", string_type], ["IsGlobal", bool_type], ["Types", list_type(GlueType_$reflection())]]);
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export class GlueConditionalType extends Record {
|
|
595
|
+
constructor(CheckType, ExtendsType, TrueType, FalseType) {
|
|
596
|
+
super();
|
|
597
|
+
this.CheckType = CheckType;
|
|
598
|
+
this.ExtendsType = ExtendsType;
|
|
599
|
+
this.TrueType = TrueType;
|
|
600
|
+
this.FalseType = FalseType;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
export function GlueConditionalType_$reflection() {
|
|
605
|
+
return record_type("Glutinum.Converter.GlueAST.GlueConditionalType", [], GlueConditionalType, () => [["CheckType", GlueType_$reflection()], ["ExtendsType", GlueType_$reflection()], ["TrueType", GlueType_$reflection()], ["FalseType", GlueType_$reflection()]]);
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
export class GlueReExport extends Record {
|
|
609
|
+
constructor(Name, Declaration, ModulePath) {
|
|
610
|
+
super();
|
|
611
|
+
this.Name = Name;
|
|
612
|
+
this.Declaration = Declaration;
|
|
613
|
+
this.ModulePath = ModulePath;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export function GlueReExport_$reflection() {
|
|
618
|
+
return record_type("Glutinum.Converter.GlueAST.GlueReExport", [], GlueReExport, () => [["Name", string_type], ["Declaration", GlueType_$reflection()], ["ModulePath", list_type(string_type)]]);
|
|
544
619
|
}
|
|
545
620
|
|
|
546
621
|
export function GlueMember__TryGetAccessor(this$) {
|
|
547
622
|
switch (this$.tag) {
|
|
548
623
|
case 2:
|
|
549
|
-
return
|
|
624
|
+
return GlueAccessor.ReadOnly;
|
|
550
625
|
case 3:
|
|
551
|
-
return
|
|
626
|
+
return GlueAccessor.WriteOnly;
|
|
552
627
|
case 0:
|
|
553
628
|
case 4:
|
|
554
629
|
case 5:
|
|
555
630
|
case 6:
|
|
556
631
|
case 7:
|
|
557
|
-
return
|
|
632
|
+
return undefined;
|
|
558
633
|
default:
|
|
559
634
|
return this$.fields[0].Accessor;
|
|
560
635
|
}
|
|
561
636
|
}
|
|
562
637
|
|
|
638
|
+
export function GlueMember__get_Documentation(this$) {
|
|
639
|
+
switch (this$.tag) {
|
|
640
|
+
case 1:
|
|
641
|
+
return this$.fields[0].Documentation;
|
|
642
|
+
case 2:
|
|
643
|
+
return this$.fields[0].Documentation;
|
|
644
|
+
case 3:
|
|
645
|
+
return this$.fields[0].Documentation;
|
|
646
|
+
case 6:
|
|
647
|
+
return this$.fields[0].Documentation;
|
|
648
|
+
case 4:
|
|
649
|
+
case 5:
|
|
650
|
+
case 7:
|
|
651
|
+
return empty();
|
|
652
|
+
default:
|
|
653
|
+
return this$.fields[0].Documentation;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
|
|
563
657
|
export function GlueMember__get_TypeParameters(this$) {
|
|
564
658
|
switch (this$.tag) {
|
|
565
659
|
case 1:
|
|
@@ -645,6 +739,8 @@ export function GlueType__get_Name(this$) {
|
|
|
645
739
|
return "obj";
|
|
646
740
|
case 10:
|
|
647
741
|
return "obj";
|
|
742
|
+
case 12:
|
|
743
|
+
return "bigint";
|
|
648
744
|
case 11:
|
|
649
745
|
return "obj";
|
|
650
746
|
default:
|
|
@@ -672,11 +768,11 @@ export function GlueType__get_Name(this$) {
|
|
|
672
768
|
case 13:
|
|
673
769
|
return this$.fields[0].Name;
|
|
674
770
|
case 14:
|
|
675
|
-
return
|
|
771
|
+
return concat("ResizeArray<", GlueType__get_Name(this$.fields[0]), ">");
|
|
676
772
|
case 29: {
|
|
677
773
|
const info_11 = this$.fields[0];
|
|
678
774
|
if (info_11.tag === 14) {
|
|
679
|
-
return
|
|
775
|
+
return concat("ReadonlyArray<", GlueType__get_Name(info_11.fields[0]), ">");
|
|
680
776
|
}
|
|
681
777
|
else {
|
|
682
778
|
return GlueType__get_Name(info_11);
|
|
@@ -696,8 +792,12 @@ export function GlueType__get_Name(this$) {
|
|
|
696
792
|
case 0:
|
|
697
793
|
case 24:
|
|
698
794
|
case 28:
|
|
795
|
+
case 30:
|
|
796
|
+
case 32:
|
|
699
797
|
case 23:
|
|
700
798
|
return "obj";
|
|
799
|
+
case 31:
|
|
800
|
+
return this$.fields[0].Name;
|
|
701
801
|
case 26: {
|
|
702
802
|
const utilityType = this$.fields[0];
|
|
703
803
|
switch (utilityType.tag) {
|
|
@@ -723,7 +823,7 @@ export function GlueType__get_TypeParameters(this$) {
|
|
|
723
823
|
case 12:
|
|
724
824
|
return this$.fields[0].TypeParameters;
|
|
725
825
|
case 13:
|
|
726
|
-
return map((t) => (new GlueTypeParameter(GlueType__get_Name(t),
|
|
826
|
+
return map((t) => (new GlueTypeParameter(GlueType__get_Name(t), undefined, undefined)), this$.fields[0].TypeArguments);
|
|
727
827
|
case 6:
|
|
728
828
|
return this$.fields[0].TypeParameters;
|
|
729
829
|
case 2:
|
|
@@ -763,6 +863,9 @@ export function GlueType__get_TypeParameters(this$) {
|
|
|
763
863
|
case 11:
|
|
764
864
|
case 16:
|
|
765
865
|
case 21:
|
|
866
|
+
case 30:
|
|
867
|
+
case 31:
|
|
868
|
+
case 32:
|
|
766
869
|
case 28:
|
|
767
870
|
return empty();
|
|
768
871
|
default:
|
|
@@ -770,4 +873,200 @@ export function GlueType__get_TypeParameters(this$) {
|
|
|
770
873
|
}
|
|
771
874
|
}
|
|
772
875
|
|
|
773
|
-
|
|
876
|
+
export function GlueSubstitution_mentionedTypeParameters(glueType_mut) {
|
|
877
|
+
GlueSubstitution_mentionedTypeParameters:
|
|
878
|
+
while (true) {
|
|
879
|
+
const glueType = glueType_mut;
|
|
880
|
+
let matchResult, glueType_2;
|
|
881
|
+
switch (glueType.tag) {
|
|
882
|
+
case 16: {
|
|
883
|
+
matchResult = 0;
|
|
884
|
+
break;
|
|
885
|
+
}
|
|
886
|
+
case 13: {
|
|
887
|
+
matchResult = 1;
|
|
888
|
+
break;
|
|
889
|
+
}
|
|
890
|
+
case 14: {
|
|
891
|
+
matchResult = 2;
|
|
892
|
+
glueType_2 = glueType.fields[0];
|
|
893
|
+
break;
|
|
894
|
+
}
|
|
895
|
+
case 29: {
|
|
896
|
+
matchResult = 2;
|
|
897
|
+
glueType_2 = glueType.fields[0];
|
|
898
|
+
break;
|
|
899
|
+
}
|
|
900
|
+
case 22: {
|
|
901
|
+
matchResult = 2;
|
|
902
|
+
glueType_2 = glueType.fields[0];
|
|
903
|
+
break;
|
|
904
|
+
}
|
|
905
|
+
case 9: {
|
|
906
|
+
matchResult = 2;
|
|
907
|
+
glueType_2 = glueType.fields[0];
|
|
908
|
+
break;
|
|
909
|
+
}
|
|
910
|
+
case 7: {
|
|
911
|
+
matchResult = 3;
|
|
912
|
+
break;
|
|
913
|
+
}
|
|
914
|
+
case 18: {
|
|
915
|
+
matchResult = 4;
|
|
916
|
+
break;
|
|
917
|
+
}
|
|
918
|
+
case 19: {
|
|
919
|
+
matchResult = 5;
|
|
920
|
+
break;
|
|
921
|
+
}
|
|
922
|
+
case 10: {
|
|
923
|
+
matchResult = 6;
|
|
924
|
+
break;
|
|
925
|
+
}
|
|
926
|
+
case 15: {
|
|
927
|
+
matchResult = 7;
|
|
928
|
+
break;
|
|
929
|
+
}
|
|
930
|
+
default:
|
|
931
|
+
matchResult = 8;
|
|
932
|
+
}
|
|
933
|
+
switch (matchResult) {
|
|
934
|
+
case 0:
|
|
935
|
+
return singleton(glueType.fields[0]);
|
|
936
|
+
case 1:
|
|
937
|
+
return collect(GlueSubstitution_mentionedTypeParameters, glueType.fields[0].TypeArguments);
|
|
938
|
+
case 2: {
|
|
939
|
+
glueType_mut = glueType_2;
|
|
940
|
+
continue GlueSubstitution_mentionedTypeParameters;
|
|
941
|
+
}
|
|
942
|
+
case 3:
|
|
943
|
+
return collect(GlueSubstitution_mentionedTypeParameters, glueType.fields[0].fields[0]);
|
|
944
|
+
case 4:
|
|
945
|
+
return collect(GlueSubstitution_mentionedTypeParameters, glueType.fields[0]);
|
|
946
|
+
case 5: {
|
|
947
|
+
glueType_mut = glueType.fields[0].Type;
|
|
948
|
+
continue GlueSubstitution_mentionedTypeParameters;
|
|
949
|
+
}
|
|
950
|
+
case 6: {
|
|
951
|
+
const indexedAccess = glueType.fields[0];
|
|
952
|
+
return append(GlueSubstitution_mentionedTypeParameters(indexedAccess.ObjectType), GlueSubstitution_mentionedTypeParameters(indexedAccess.IndexType));
|
|
953
|
+
}
|
|
954
|
+
case 7: {
|
|
955
|
+
const functionType = glueType.fields[0];
|
|
956
|
+
return append(GlueSubstitution_mentionedTypeParameters(functionType.Type), collect((parameter) => GlueSubstitution_mentionedTypeParameters(parameter.Type), functionType.Parameters));
|
|
957
|
+
}
|
|
958
|
+
default:
|
|
959
|
+
return empty();
|
|
960
|
+
}
|
|
961
|
+
break;
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
export function GlueSubstitution_substitute(substitutions, glueType) {
|
|
966
|
+
let Parameters, ObjectType;
|
|
967
|
+
const substitute = (glueType_1) => GlueSubstitution_substitute(substitutions, glueType_1);
|
|
968
|
+
switch (glueType.tag) {
|
|
969
|
+
case 16: {
|
|
970
|
+
const matchValue = tryFind(glueType.fields[0], substitutions);
|
|
971
|
+
if (matchValue == null) {
|
|
972
|
+
return glueType;
|
|
973
|
+
}
|
|
974
|
+
else {
|
|
975
|
+
return matchValue;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
case 13: {
|
|
979
|
+
const typeReference = glueType.fields[0];
|
|
980
|
+
return new GlueType(/* TypeReference */ 13, [new GlueTypeReference(typeReference.Name, typeReference.FullName, typeReference.ModulePath, map(substitute, typeReference.TypeArguments), typeReference.IsStandardLibrary)]);
|
|
981
|
+
}
|
|
982
|
+
case 7:
|
|
983
|
+
return new GlueType(/* Union */ 7, [new GlueTypeUnion(map(substitute, glueType.fields[0].fields[0]))]);
|
|
984
|
+
case 14:
|
|
985
|
+
return new GlueType(/* Array */ 14, [substitute(glueType.fields[0])]);
|
|
986
|
+
case 29:
|
|
987
|
+
return new GlueType(/* ReadOnly */ 29, [substitute(glueType.fields[0])]);
|
|
988
|
+
case 22:
|
|
989
|
+
return new GlueType(/* OptionalType */ 22, [substitute(glueType.fields[0])]);
|
|
990
|
+
case 18:
|
|
991
|
+
return new GlueType(/* TupleType */ 18, [map(substitute, glueType.fields[0])]);
|
|
992
|
+
case 19: {
|
|
993
|
+
const namedTuple = glueType.fields[0];
|
|
994
|
+
return new GlueType(/* NamedTupleType */ 19, [new NamedTupleType(namedTuple.Name, substitute(namedTuple.Type))]);
|
|
995
|
+
}
|
|
996
|
+
case 15: {
|
|
997
|
+
const functionType = glueType.fields[0];
|
|
998
|
+
return new GlueType(/* FunctionType */ 15, [(Parameters = map((parameter) => GlueSubstitution_substituteParameter(substitutions, parameter), functionType.Parameters), new GlueFunctionType(functionType.Documentation, substitute(functionType.Type), List_distinctBy((_arg) => _arg.Name, collect((typeParameter) => {
|
|
999
|
+
const matchValue_1 = tryFind(typeParameter.Name, substitutions);
|
|
1000
|
+
if (matchValue_1 != null) {
|
|
1001
|
+
return map((name_1) => (new GlueTypeParameter(name_1, undefined, undefined)), GlueSubstitution_mentionedTypeParameters(matchValue_1));
|
|
1002
|
+
}
|
|
1003
|
+
else {
|
|
1004
|
+
return singleton(typeParameter);
|
|
1005
|
+
}
|
|
1006
|
+
}, functionType.TypeParameters), {
|
|
1007
|
+
Equals: (x, y) => (x === y),
|
|
1008
|
+
GetHashCode: (x) => (stringHash(x) | 0),
|
|
1009
|
+
}), functionType.OwnTypeParameterNames, Parameters))]);
|
|
1010
|
+
}
|
|
1011
|
+
case 32: {
|
|
1012
|
+
const conditionalType = glueType.fields[0];
|
|
1013
|
+
return new GlueType(/* ConditionalType */ 32, [new GlueConditionalType(substitute(conditionalType.CheckType), substitute(conditionalType.ExtendsType), substitute(conditionalType.TrueType), substitute(conditionalType.FalseType))]);
|
|
1014
|
+
}
|
|
1015
|
+
case 9:
|
|
1016
|
+
return new GlueType(/* KeyOf */ 9, [substitute(glueType.fields[0])]);
|
|
1017
|
+
case 10: {
|
|
1018
|
+
const indexedAccess = glueType.fields[0];
|
|
1019
|
+
return new GlueType(/* IndexedAccessType */ 10, [(ObjectType = substitute(indexedAccess.ObjectType), new GlueIndexedAccessType(substitute(indexedAccess.IndexType), ObjectType))]);
|
|
1020
|
+
}
|
|
1021
|
+
case 20:
|
|
1022
|
+
return new GlueType(/* IntersectionType */ 20, [map((glueMember) => GlueSubstitution_substituteMember(substitutions, glueMember), glueType.fields[0])]);
|
|
1023
|
+
case 21:
|
|
1024
|
+
return new GlueType(/* TypeLiteral */ 21, [new GlueTypeLiteral(map((glueMember_1) => GlueSubstitution_substituteMember(substitutions, glueMember_1), glueType.fields[0].Members))]);
|
|
1025
|
+
default:
|
|
1026
|
+
return glueType;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
export function GlueSubstitution_substituteParameter(substitutions, parameter) {
|
|
1031
|
+
return new GlueParameter(parameter.Name, parameter.IsOptional, parameter.IsSpread, GlueSubstitution_substitute(substitutions, parameter.Type));
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
export function GlueSubstitution_substituteMember(substitutions, glueMember) {
|
|
1035
|
+
const substitute = (glueType) => GlueSubstitution_substitute(substitutions, glueType);
|
|
1036
|
+
const parameters = (list) => map((parameter) => GlueSubstitution_substituteParameter(substitutions, parameter), list);
|
|
1037
|
+
switch (glueMember.tag) {
|
|
1038
|
+
case 0: {
|
|
1039
|
+
const info_1 = glueMember.fields[0];
|
|
1040
|
+
return new GlueMember(/* Method */ 0, [new GlueMethod(info_1.Name, info_1.Documentation, info_1.TypeParameters, parameters(info_1.Parameters), substitute(info_1.Type), info_1.IsOptional, info_1.IsStatic)]);
|
|
1041
|
+
}
|
|
1042
|
+
case 6: {
|
|
1043
|
+
const info_2 = glueMember.fields[0];
|
|
1044
|
+
return new GlueMember(/* MethodSignature */ 6, [new GlueMethodSignature(info_2.Name, info_2.Documentation, info_2.TypeParameters, parameters(info_2.Parameters), substitute(info_2.Type))]);
|
|
1045
|
+
}
|
|
1046
|
+
case 2: {
|
|
1047
|
+
const info_3 = glueMember.fields[0];
|
|
1048
|
+
return new GlueMember(/* GetAccessor */ 2, [new GlueGetAccessor(info_3.Name, info_3.Documentation, substitute(info_3.Type), info_3.IsStatic, info_3.IsPrivate)]);
|
|
1049
|
+
}
|
|
1050
|
+
case 3: {
|
|
1051
|
+
const info_4 = glueMember.fields[0];
|
|
1052
|
+
return new GlueMember(/* SetAccessor */ 3, [new GlueSetAccessor(info_4.Name, info_4.Documentation, substitute(info_4.ArgumentType), info_4.IsStatic, info_4.IsPrivate)]);
|
|
1053
|
+
}
|
|
1054
|
+
case 4: {
|
|
1055
|
+
const info_5 = glueMember.fields[0];
|
|
1056
|
+
return new GlueMember(/* CallSignature */ 4, [new GlueCallSignature(info_5.TypeParameters, parameters(info_5.Parameters), substitute(info_5.Type))]);
|
|
1057
|
+
}
|
|
1058
|
+
case 5: {
|
|
1059
|
+
const info_6 = glueMember.fields[0];
|
|
1060
|
+
return new GlueMember(/* IndexSignature */ 5, [new GlueIndexSignature(parameters(info_6.Parameters), substitute(info_6.Type), info_6.IsReadOnly)]);
|
|
1061
|
+
}
|
|
1062
|
+
case 7: {
|
|
1063
|
+
const info_7 = glueMember.fields[0];
|
|
1064
|
+
return new GlueMember(/* ConstructSignature */ 7, [new GlueConstructSignature(parameters(info_7.Parameters), substitute(info_7.Type))]);
|
|
1065
|
+
}
|
|
1066
|
+
default: {
|
|
1067
|
+
const info = glueMember.fields[0];
|
|
1068
|
+
return new GlueMember(/* Property */ 1, [new GlueProperty(info.Name, info.Documentation, substitute(info.Type), info.IsStatic, info.IsOptional, info.Accessor, info.IsPrivate)]);
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
+
|
|
1
2
|
import chalk from "chalk";
|
|
2
|
-
import { some } from "../fable_modules/fable-library-js.4.14.0/Option.js";
|
|
3
3
|
|
|
4
4
|
export function success(text) {
|
|
5
|
-
console.error(
|
|
5
|
+
console.error(chalk.greenBright(text));
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export function log(text) {
|
|
9
|
-
console.error(
|
|
9
|
+
console.error(text);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export function info(text) {
|
|
13
|
-
console.error(
|
|
13
|
+
console.error(chalk.blueBright(text));
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export function warn(text) {
|
|
17
|
-
console.error(
|
|
17
|
+
console.error(chalk.yellowBright(text));
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export function error(text) {
|
|
21
|
-
console.error(
|
|
21
|
+
console.error(chalk.redBright(text));
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export function debug(text) {
|
|
25
|
-
console.error(
|
|
25
|
+
console.error(chalk.gray(text));
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
//# sourceMappingURL=Log.js.map
|