@glutinum/cli 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -3
- package/dist/Glutinum.Converter/Abbreviations.js +246 -0
- package/dist/Glutinum.Converter/FsharpAST.js +98 -34
- package/dist/Glutinum.Converter/Generate.js +55 -8
- package/dist/Glutinum.Converter/GlueAST.js +446 -30
- package/dist/Glutinum.Converter/Log.js +7 -8
- package/dist/Glutinum.Converter/Merge.js +683 -31
- package/dist/Glutinum.Converter/Packages.js +308 -0
- package/dist/Glutinum.Converter/Printer.js +332 -170
- package/dist/Glutinum.Converter/Read.js +279 -6
- package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +13 -7
- package/dist/Glutinum.Converter/Reader/Declaration.js +102 -17
- package/dist/Glutinum.Converter/Reader/Documentation.js +168 -73
- package/dist/Glutinum.Converter/Reader/EnumDeclaration.js +7 -51
- package/dist/Glutinum.Converter/Reader/ExportAssignment.js +64 -15
- package/dist/Glutinum.Converter/Reader/ExportDeclaration.js +165 -0
- package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js +30 -5
- package/dist/Glutinum.Converter/Reader/IndexedAccessType.js +122 -4
- package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js +83 -7
- package/dist/Glutinum.Converter/Reader/MappedTypeNode.js +8 -8
- package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js +11 -8
- package/dist/Glutinum.Converter/Reader/NamedTupleMember.js +3 -2
- package/dist/Glutinum.Converter/Reader/Node.js +24 -10
- package/dist/Glutinum.Converter/Reader/Parameters.js +110 -7
- package/dist/Glutinum.Converter/Reader/Report.js +31 -12
- package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js +4 -3
- package/dist/Glutinum.Converter/Reader/TypeNode.js +1527 -248
- package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js +75 -20
- package/dist/Glutinum.Converter/Reader/TypeParameters.js +8 -5
- package/dist/Glutinum.Converter/Reader/TypeQueryNode.js +184 -50
- package/dist/Glutinum.Converter/Reader/TypeScriptReader.js +32 -13
- package/dist/Glutinum.Converter/Reader/Types.js +180 -0
- package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +99 -43
- package/dist/Glutinum.Converter/Reader/Utils.js +1143 -55
- package/dist/Glutinum.Converter/Reader/VariableStatement.js +59 -14
- package/dist/Glutinum.Converter/Transform.js +8710 -1137
- package/dist/Glutinum.Converter/TypeScript.Extensions.js +3 -3
- package/dist/Glutinum.Converter/TypeScript.js +3 -3
- package/dist/Glutinum.Converter/Utils/Keywords.js +6 -6
- package/dist/Glutinum.Converter/Utils/List.js +3 -3
- package/dist/Glutinum.Converter/Utils/Naming.js +76 -14
- package/dist/Glutinum.Converter/Utils/String.js +7 -3
- package/dist/Program.js +230 -72
- package/package.json +4 -4
- package/src/Glutinum.Converter/js/bootstrap.js +109 -2
- package/src/Glutinum.Converter/js/host.js +144 -0
- package/src/Glutinum.Converter/js/npm.js +137 -0
- package/src/Glutinum.Converter/js/resolve.js +402 -0
- package/dist/Glutinum.Converter/FsharpAST.js.map +0 -1
- package/dist/Glutinum.Converter/Generate.js.map +0 -1
- package/dist/Glutinum.Converter/GlueAST.js.map +0 -1
- package/dist/Glutinum.Converter/Log.js.map +0 -1
- package/dist/Glutinum.Converter/Merge.js.map +0 -1
- package/dist/Glutinum.Converter/Printer.js.map +0 -1
- package/dist/Glutinum.Converter/Read.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/ClassDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Declaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Documentation.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/EnumDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/ExportAssignment.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/IndexedAccessType.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/MappedTypeNode.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/NamedTupleMember.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Node.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Parameters.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Report.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeNode.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeParameters.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeQueryNode.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/TypeScriptReader.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/UnionTypeNode.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Utils.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/VariableStatement.js.map +0 -1
- package/dist/Glutinum.Converter/Transform.js.map +0 -1
- package/dist/Glutinum.Converter/TypeScript.Extensions.js.map +0 -1
- package/dist/Glutinum.Converter/TypeScript.js.map +0 -1
- package/dist/Glutinum.Converter/Utils/Keywords.js.map +0 -1
- package/dist/Glutinum.Converter/Utils/List.js.map +0 -1
- package/dist/Glutinum.Converter/Utils/Naming.js.map +0 -1
- package/dist/Glutinum.Converter/Utils/String.js.map +0 -1
- package/dist/Program.js.map +0 -1
- package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +0 -57
- package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +0 -105
- package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js.map +0 -1
- package/dist/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +0 -20
- package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs +0 -766
- package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +0 -218
- package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js.map +0 -1
- package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +0 -31
- package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +0 -20
- package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AssemblyInfo.fs +0 -19
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs +0 -207
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs.js +0 -127
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOption.fs +0 -81
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs +0 -183
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs.js +0 -37
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionOp.fs +0 -24
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResult.fs +0 -439
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs +0 -217
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOp.fs +0 -24
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs +0 -75
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js +0 -26
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs +0 -238
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionOp.fs +0 -24
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidation.fs +0 -190
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs +0 -194
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationOp.fs +0 -35
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/FsToolkit.ErrorHandling.fableproj +0 -51
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs +0 -218
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs.js +0 -358
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Option.fs +0 -331
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs +0 -186
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionOp.fs +0 -21
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs +0 -644
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs.js +0 -45
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs +0 -155
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs.js +0 -23
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOp.fs +0 -45
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs +0 -201
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs.js +0 -65
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs +0 -146
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionOp.fs +0 -57
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs +0 -19
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js +0 -31
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs +0 -22
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Validation.fs +0 -172
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs +0 -148
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs.js +0 -18
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs.js.map +0 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationOp.fs +0 -35
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValueOption.fs +0 -151
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValueOptionCE.fs +0 -165
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Debug/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -3
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Debug/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -3
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.0/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -3
- package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
- package/dist/fable_modules/fable-library-js.4.14.0/Array.d.ts +0 -123
- package/dist/fable_modules/fable-library-js.4.14.0/Array.js +0 -1242
- package/dist/fable_modules/fable-library-js.4.14.0/Async.d.ts +0 -32
- package/dist/fable_modules/fable-library-js.4.14.0/Async.js +0 -158
- package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.d.ts +0 -59
- package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.js +0 -183
- package/dist/fable_modules/fable-library-js.4.14.0/BigInt.d.ts +0 -115
- package/dist/fable_modules/fable-library-js.4.14.0/BigInt.js +0 -282
- package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.d.ts +0 -27
- package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.js +0 -138
- package/dist/fable_modules/fable-library-js.4.14.0/Boolean.d.ts +0 -3
- package/dist/fable_modules/fable-library-js.4.14.0/Boolean.js +0 -21
- package/dist/fable_modules/fable-library-js.4.14.0/CHANGELOG.md +0 -37
- package/dist/fable_modules/fable-library-js.4.14.0/Char.d.ts +0 -65
- package/dist/fable_modules/fable-library-js.4.14.0/Char.js +0 -169
- package/dist/fable_modules/fable-library-js.4.14.0/Choice.d.ts +0 -121
- package/dist/fable_modules/fable-library-js.4.14.0/Choice.js +0 -184
- package/dist/fable_modules/fable-library-js.4.14.0/Date.d.ts +0 -70
- package/dist/fable_modules/fable-library-js.4.14.0/Date.js +0 -749
- package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.d.ts +0 -63
- package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.js +0 -268
- package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.d.ts +0 -18
- package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.js +0 -124
- package/dist/fable_modules/fable-library-js.4.14.0/Decimal.d.ts +0 -45
- package/dist/fable_modules/fable-library-js.4.14.0/Decimal.js +0 -212
- package/dist/fable_modules/fable-library-js.4.14.0/Double.d.ts +0 -11
- package/dist/fable_modules/fable-library-js.4.14.0/Double.js +0 -46
- package/dist/fable_modules/fable-library-js.4.14.0/Encoding.d.ts +0 -12
- package/dist/fable_modules/fable-library-js.4.14.0/Encoding.js +0 -173
- package/dist/fable_modules/fable-library-js.4.14.0/Event.d.ts +0 -31
- package/dist/fable_modules/fable-library-js.4.14.0/Event.js +0 -93
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.d.ts +0 -7
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.js +0 -27
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.d.ts +0 -12
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.js +0 -27
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.d.ts +0 -17
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.js +0 -69
- package/dist/fable_modules/fable-library-js.4.14.0/Global.d.ts +0 -24
- package/dist/fable_modules/fable-library-js.4.14.0/Global.js +0 -8
- package/dist/fable_modules/fable-library-js.4.14.0/Guid.d.ts +0 -10
- package/dist/fable_modules/fable-library-js.4.14.0/Guid.js +0 -142
- package/dist/fable_modules/fable-library-js.4.14.0/Int32.d.ts +0 -28
- package/dist/fable_modules/fable-library-js.4.14.0/Int32.js +0 -135
- package/dist/fable_modules/fable-library-js.4.14.0/List.d.ts +0 -143
- package/dist/fable_modules/fable-library-js.4.14.0/List.js +0 -1273
- package/dist/fable_modules/fable-library-js.4.14.0/Long.d.ts +0 -3
- package/dist/fable_modules/fable-library-js.4.14.0/Long.js +0 -46
- package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.d.ts +0 -25
- package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.js +0 -93
- package/dist/fable_modules/fable-library-js.4.14.0/Map.d.ts +0 -178
- package/dist/fable_modules/fable-library-js.4.14.0/Map.js +0 -1396
- package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.d.ts +0 -10
- package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.js +0 -112
- package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.d.ts +0 -52
- package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.js +0 -327
- package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.d.ts +0 -39
- package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.js +0 -233
- package/dist/fable_modules/fable-library-js.4.14.0/Native.d.ts +0 -2
- package/dist/fable_modules/fable-library-js.4.14.0/Native.js +0 -8
- package/dist/fable_modules/fable-library-js.4.14.0/Numeric.d.ts +0 -19
- package/dist/fable_modules/fable-library-js.4.14.0/Numeric.js +0 -71
- package/dist/fable_modules/fable-library-js.4.14.0/Observable.d.ts +0 -32
- package/dist/fable_modules/fable-library-js.4.14.0/Observable.js +0 -113
- package/dist/fable_modules/fable-library-js.4.14.0/Option.d.ts +0 -28
- package/dist/fable_modules/fable-library-js.4.14.0/Option.js +0 -96
- package/dist/fable_modules/fable-library-js.4.14.0/README.md +0 -3
- package/dist/fable_modules/fable-library-js.4.14.0/Random.d.ts +0 -37
- package/dist/fable_modules/fable-library-js.4.14.0/Random.js +0 -170
- package/dist/fable_modules/fable-library-js.4.14.0/Range.d.ts +0 -12
- package/dist/fable_modules/fable-library-js.4.14.0/Range.js +0 -45
- package/dist/fable_modules/fable-library-js.4.14.0/Reflection.d.ts +0 -119
- package/dist/fable_modules/fable-library-js.4.14.0/Reflection.js +0 -461
- package/dist/fable_modules/fable-library-js.4.14.0/RegExp.d.ts +0 -10
- package/dist/fable_modules/fable-library-js.4.14.0/RegExp.js +0 -132
- package/dist/fable_modules/fable-library-js.4.14.0/Result.d.ts +0 -37
- package/dist/fable_modules/fable-library-js.4.14.0/Result.js +0 -165
- package/dist/fable_modules/fable-library-js.4.14.0/Seq.d.ts +0 -165
- package/dist/fable_modules/fable-library-js.4.14.0/Seq.js +0 -1379
- package/dist/fable_modules/fable-library-js.4.14.0/Seq2.d.ts +0 -18
- package/dist/fable_modules/fable-library-js.4.14.0/Seq2.js +0 -111
- package/dist/fable_modules/fable-library-js.4.14.0/Set.d.ts +0 -190
- package/dist/fable_modules/fable-library-js.4.14.0/Set.js +0 -1789
- package/dist/fable_modules/fable-library-js.4.14.0/String.d.ts +0 -50
- package/dist/fable_modules/fable-library-js.4.14.0/String.js +0 -543
- package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.d.ts +0 -79
- package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.js +0 -317
- package/dist/fable_modules/fable-library-js.4.14.0/System.Text.d.ts +0 -38
- package/dist/fable_modules/fable-library-js.4.14.0/System.Text.js +0 -162
- package/dist/fable_modules/fable-library-js.4.14.0/SystemException.d.ts +0 -5
- package/dist/fable_modules/fable-library-js.4.14.0/SystemException.js +0 -5
- package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.d.ts +0 -15
- package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.js +0 -122
- package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.d.ts +0 -34
- package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.js +0 -177
- package/dist/fable_modules/fable-library-js.4.14.0/Timer.d.ts +0 -19
- package/dist/fable_modules/fable-library-js.4.14.0/Timer.js +0 -67
- package/dist/fable_modules/fable-library-js.4.14.0/Types.d.ts +0 -58
- package/dist/fable_modules/fable-library-js.4.14.0/Types.js +0 -208
- package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.d.ts +0 -2
- package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.js +0 -4
- package/dist/fable_modules/fable-library-js.4.14.0/Uri.d.ts +0 -29
- package/dist/fable_modules/fable-library-js.4.14.0/Uri.js +0 -142
- package/dist/fable_modules/fable-library-js.4.14.0/Util.d.ts +0 -207
- package/dist/fable_modules/fable-library-js.4.14.0/Util.js +0 -770
- package/dist/fable_modules/fable-library-js.4.14.0/big.d.ts +0 -338
- package/dist/fable_modules/fable-library-js.4.14.0/lib/big.d.ts +0 -5
- package/dist/fable_modules/fable-library-js.4.14.0/lib/big.js +0 -826
- package/dist/fable_modules/fable-library-js.4.14.0/package.json +0 -24
- package/dist/fable_modules/project_cracked.json +0 -1
|
@@ -1,52 +1,107 @@
|
|
|
1
|
+
|
|
2
|
+
import { GlueTypeUnion, GlueType, GluePrimitive } from "../GlueAST.js";
|
|
3
|
+
import { ofArray } from "../../fable_modules/fable-library-js.5.17.2/List.js";
|
|
4
|
+
import { structuralHash, equals, Exception } from "../../fable_modules/fable-library-js.5.17.2/Util.js";
|
|
1
5
|
import { Report_readerError_Z19516DCE } from "./Report.js";
|
|
2
|
-
import {
|
|
6
|
+
import { defaultArg } from "../../fable_modules/fable-library-js.5.17.2/Option.js";
|
|
7
|
+
import { tryFind } from "../../fable_modules/fable-library-js.5.17.2/Seq.js";
|
|
8
|
+
import { contains, item as item_2 } from "../../fable_modules/fable-library-js.5.17.2/Array.js";
|
|
3
9
|
import { readTypeQueryNode } from "./TypeQueryNode.js";
|
|
10
|
+
import { concat } from "../../fable_modules/fable-library-js.5.17.2/String.js";
|
|
4
11
|
import { TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name } from "../TypeScript.Extensions.js";
|
|
5
12
|
|
|
13
|
+
function removeParenthesizedType(node_mut) {
|
|
14
|
+
removeParenthesizedType:
|
|
15
|
+
while (true) {
|
|
16
|
+
const node = node_mut;
|
|
17
|
+
if (node.kind === 196) {
|
|
18
|
+
node_mut = node.type;
|
|
19
|
+
continue removeParenthesizedType;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
return node;
|
|
23
|
+
}
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const declarationsInProgress = [];
|
|
29
|
+
|
|
6
30
|
export function readTypeOperatorNode(reader, node) {
|
|
7
|
-
|
|
31
|
+
let declarations;
|
|
32
|
+
const matchValue = node.operator;
|
|
8
33
|
switch (matchValue) {
|
|
9
34
|
case 143: {
|
|
10
|
-
const
|
|
35
|
+
const operandNode = removeParenthesizedType(node.type);
|
|
36
|
+
const matchValue_1 = operandNode.kind;
|
|
11
37
|
switch (matchValue_1) {
|
|
38
|
+
case 133:
|
|
39
|
+
return new GlueType(/* Union */ 7, [new GlueTypeUnion(ofArray([new GlueType(/* Primitive */ 3, [GluePrimitive.String$]), new GlueType(/* Primitive */ 3, [GluePrimitive.Number$]), new GlueType(/* Primitive */ 3, [GluePrimitive.Symbol$])]))]);
|
|
12
40
|
case 183: {
|
|
13
|
-
const typeReferenceNode =
|
|
41
|
+
const typeReferenceNode = operandNode;
|
|
14
42
|
const symbolOpt = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getSymbolAtLocation(typeReferenceNode.typeName);
|
|
15
43
|
if (symbolOpt != null) {
|
|
16
44
|
const symbol = symbolOpt;
|
|
17
45
|
const matchValue_2 = symbol.declarations;
|
|
18
46
|
if (matchValue_2 == null) {
|
|
19
|
-
throw new
|
|
47
|
+
throw new Exception(Report_readerError_Z19516DCE("type operator (keyof)", "Missing declarations", node, "/_//src/Glutinum.Converter/Reader/TypeOperatorNode.fs", 65));
|
|
20
48
|
}
|
|
21
|
-
else {
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
49
|
+
else if ((declarations = matchValue_2, declarations.length > 0)) {
|
|
50
|
+
const declarations_1 = matchValue_2;
|
|
51
|
+
const declaration_1 = defaultArg(tryFind((declaration) => (declaration.kind === 263), declarations_1), item_2(0, declarations_1));
|
|
52
|
+
if (declaration_1.kind === 168) {
|
|
53
|
+
return new GlueType(/* KeyOf */ 9, [new GlueType(/* TypeParameter */ 16, [symbol.name])]);
|
|
54
|
+
}
|
|
55
|
+
else if (contains(declaration_1, declarationsInProgress, {
|
|
56
|
+
Equals: equals,
|
|
57
|
+
GetHashCode: (x) => (structuralHash(x) | 0),
|
|
58
|
+
})) {
|
|
59
|
+
return new GlueType(/* KeyOf */ 9, [GlueType.Discard]);
|
|
25
60
|
}
|
|
26
61
|
else {
|
|
27
|
-
|
|
62
|
+
void (declarationsInProgress.push(declaration_1));
|
|
63
|
+
try {
|
|
64
|
+
return new GlueType(/* KeyOf */ 9, [reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](declaration_1)]);
|
|
65
|
+
}
|
|
66
|
+
finally {
|
|
67
|
+
declarationsInProgress.splice(declarationsInProgress.length - 1, 1);
|
|
68
|
+
}
|
|
28
69
|
}
|
|
29
70
|
}
|
|
71
|
+
else {
|
|
72
|
+
throw new Exception(Report_readerError_Z19516DCE("type operator (keyof)", "Missing declarations", node, "/_//src/Glutinum.Converter/Reader/TypeOperatorNode.fs", 61));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
else if (node.pos < 0) {
|
|
76
|
+
return new GlueType(/* KeyOf */ 9, [GlueType.Discard]);
|
|
30
77
|
}
|
|
31
78
|
else {
|
|
32
|
-
throw new
|
|
79
|
+
throw new Exception(Report_readerError_Z19516DCE("type operator (keyof)", "Missing symbol", node, "/_//src/Glutinum.Converter/Reader/TypeOperatorNode.fs", 35));
|
|
33
80
|
}
|
|
34
81
|
}
|
|
35
82
|
case 186:
|
|
36
|
-
return new GlueType(9, [readTypeQueryNode(reader,
|
|
37
|
-
|
|
38
|
-
|
|
83
|
+
return new GlueType(/* KeyOf */ 9, [readTypeQueryNode(reader, operandNode)]);
|
|
84
|
+
case 193:
|
|
85
|
+
case 199:
|
|
86
|
+
return new GlueType(/* KeyOf */ 9, [GlueType.Discard]);
|
|
87
|
+
default: {
|
|
88
|
+
const item = Report_readerError_Z19516DCE("type operator (keyof)", concat("Was expecting a type reference or a type query instead got a Node of type ", TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(operandNode.kind)), node, "/_//src/Glutinum.Converter/Reader/TypeOperatorNode.fs", 88);
|
|
89
|
+
const objectArg = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
|
|
90
|
+
void (objectArg.push(item));
|
|
91
|
+
return new GlueType(/* Primitive */ 3, [GluePrimitive.Any]);
|
|
92
|
+
}
|
|
39
93
|
}
|
|
40
94
|
}
|
|
41
95
|
case 148:
|
|
42
|
-
return new GlueType(29, [reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](node.type)]);
|
|
96
|
+
return new GlueType(/* ReadOnly */ 29, [reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](node.type)]);
|
|
97
|
+
case 158:
|
|
98
|
+
return reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](node.type);
|
|
43
99
|
default: {
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
void (
|
|
47
|
-
return new GlueType(3, [
|
|
100
|
+
const item_1 = Report_readerError_Z19516DCE("type operator", concat("Unsupported operator ", TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(node.operator)), node, "/_//src/Glutinum.Converter/Reader/TypeOperatorNode.fs", 102);
|
|
101
|
+
const objectArg_1 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
|
|
102
|
+
void (objectArg_1.push(item_1));
|
|
103
|
+
return new GlueType(/* Primitive */ 3, [GluePrimitive.Any]);
|
|
48
104
|
}
|
|
49
105
|
}
|
|
50
106
|
}
|
|
51
107
|
|
|
52
|
-
//# sourceMappingURL=TypeOperatorNode.js.map
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
import { map
|
|
1
|
+
|
|
2
|
+
import { empty, map } from "../../fable_modules/fable-library-js.5.17.2/List.js";
|
|
3
|
+
import { identifierText } from "./Utils.js";
|
|
3
4
|
import { GlueTypeParameter } from "../GlueAST.js";
|
|
4
|
-
import { toList } from "../../fable_modules/fable-library-js.
|
|
5
|
+
import { toList } from "../../fable_modules/fable-library-js.5.17.2/Seq.js";
|
|
5
6
|
|
|
6
7
|
export function readTypeParameters(reader, typeParameters) {
|
|
7
8
|
if (typeParameters != null) {
|
|
8
|
-
return map((typeParameter) =>
|
|
9
|
+
return map((typeParameter) => {
|
|
10
|
+
let option_1, typNode, option_3, typNode_1;
|
|
11
|
+
return new GlueTypeParameter(identifierText(typeParameter.name), (option_1 = typeParameter.constraint, (option_1 != null) ? ((typNode = option_1, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](typNode))) : undefined), (option_3 = typeParameter.default, (option_3 != null) ? ((typNode_1 = option_3, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](typNode_1))) : undefined));
|
|
12
|
+
}, toList(typeParameters));
|
|
9
13
|
}
|
|
10
14
|
else {
|
|
11
15
|
return empty();
|
|
12
16
|
}
|
|
13
17
|
}
|
|
14
18
|
|
|
15
|
-
//# sourceMappingURL=TypeParameters.js.map
|
|
@@ -1,35 +1,164 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
|
|
2
|
+
import { isFromEsLib, isFromEs5Lib, identifierText, modulePathForSymbol, declaredName, resolveAlias, $007CHasTypeFlags$007C_$007C } from "./Utils.js";
|
|
3
|
+
import { defaultArg } from "../../fable_modules/fable-library-js.5.17.2/Option.js";
|
|
4
|
+
import { contains, item } from "../../fable_modules/fable-library-js.5.17.2/Array.js";
|
|
5
|
+
import { filter, append, isEmpty, map, empty } from "../../fable_modules/fable-library-js.5.17.2/List.js";
|
|
6
|
+
import { GlueFunctionDeclaration, GlueSubstitution_substituteParameter, GlueSubstitution_substitute, GlueSubstitution_mentionedTypeParameters, GlueFunctionType, GlueTypeReference, GlueType, GluePrimitive } from "../GlueAST.js";
|
|
7
|
+
import { collect as collect_1, append as append_1, delay, toList } from "../../fable_modules/fable-library-js.5.17.2/Seq.js";
|
|
8
|
+
import { Operators_IsNull } from "../../fable_modules/fable-library-js.5.17.2/FSharp.Core.js";
|
|
9
|
+
import { FSharpSet__Contains, ofSeq } from "../../fable_modules/fable-library-js.5.17.2/Set.js";
|
|
10
|
+
import { structuralHash, equals, comparePrimitives } from "../../fable_modules/fable-library-js.5.17.2/Util.js";
|
|
11
|
+
import { ofList } from "../../fable_modules/fable-library-js.5.17.2/Map.js";
|
|
4
12
|
import { Report_readerError_Z19516DCE } from "./Report.js";
|
|
5
|
-
import { FSharpResult$2 } from "../../fable_modules/fable-library-js.
|
|
13
|
+
import { FSharpResult$2 } from "../../fable_modules/fable-library-js.5.17.2/Result.js";
|
|
14
|
+
import { concat } from "../../fable_modules/fable-library-js.5.17.2/String.js";
|
|
6
15
|
import { TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name } from "../TypeScript.Extensions.js";
|
|
7
16
|
|
|
17
|
+
const declarationsInProgress = [];
|
|
18
|
+
|
|
8
19
|
export function readTypeQueryNode(reader, typeQueryNode) {
|
|
20
|
+
let declarations_1;
|
|
9
21
|
const checker = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]();
|
|
10
22
|
const typ = checker.getTypeAtLocation(typeQueryNode.exprName);
|
|
11
|
-
const matchValue = typ.flags
|
|
23
|
+
const matchValue = typ.flags;
|
|
12
24
|
if ($007CHasTypeFlags$007C_$007C(524288, matchValue) != null) {
|
|
13
|
-
const exprNameKind = typeQueryNode.exprName.kind
|
|
25
|
+
const exprNameKind = typeQueryNode.exprName.kind;
|
|
14
26
|
const matchValue_1 = typ.getSymbol();
|
|
15
27
|
if (matchValue_1 != null) {
|
|
16
28
|
const symbol = matchValue_1;
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
29
|
+
const symbol_1 = defaultArg(resolveAlias(checker, symbol), symbol);
|
|
30
|
+
const matchValue_5 = symbol_1.declarations;
|
|
31
|
+
let matchResult, declarations_2;
|
|
32
|
+
if (matchValue_5 != null) {
|
|
33
|
+
if ((declarations_1 = matchValue_5, declarations_1.length > 0)) {
|
|
34
|
+
matchResult = 0;
|
|
35
|
+
declarations_2 = matchValue_5;
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
matchResult = 1;
|
|
39
|
+
}
|
|
20
40
|
}
|
|
21
41
|
else {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
42
|
+
matchResult = 1;
|
|
43
|
+
}
|
|
44
|
+
switch (matchResult) {
|
|
45
|
+
case 0: {
|
|
46
|
+
const declaration_1 = item(0, declarations_2);
|
|
47
|
+
const matchValue_6 = declaration_1.kind;
|
|
48
|
+
let matchResult_1;
|
|
49
|
+
switch (matchValue_6) {
|
|
50
|
+
case 173:
|
|
51
|
+
case 174: {
|
|
52
|
+
matchResult_1 = 3;
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
case 262: {
|
|
56
|
+
matchResult_1 = 2;
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
case 263: {
|
|
60
|
+
matchResult_1 = 0;
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
case 267: {
|
|
64
|
+
matchResult_1 = 1;
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
default:
|
|
68
|
+
if (isFromEs5Lib(symbol_1) ? true : isFromEsLib(symbol_1)) {
|
|
69
|
+
matchResult_1 = 4;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
matchResult_1 = 5;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
switch (matchResult_1) {
|
|
76
|
+
case 0: {
|
|
77
|
+
let typeArguments;
|
|
78
|
+
const matchValue_7 = declaration_1.typeParameters;
|
|
79
|
+
typeArguments = ((matchValue_7 == null) ? empty() : map((_arg_6) => (new GlueType(/* Primitive */ 3, [GluePrimitive.Any])), toList(matchValue_7)));
|
|
80
|
+
return new GlueType(/* TypeReference */ 13, [new GlueTypeReference(defaultArg(declaredName(symbol_1), symbol_1.name), checker.getFullyQualifiedName(symbol_1), modulePathForSymbol(checker, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_PackageContext"](), false, symbol_1), typeArguments, false)]);
|
|
81
|
+
}
|
|
82
|
+
case 1:
|
|
83
|
+
return GlueType.Discard;
|
|
84
|
+
case 2: {
|
|
85
|
+
const matchValue_8 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](declaration_1);
|
|
86
|
+
if (matchValue_8.tag === 6) {
|
|
87
|
+
if (!isEmpty(matchValue_8.fields[0].TypeParameters)) {
|
|
88
|
+
return new GlueType(/* Primitive */ 3, [GluePrimitive.Any]);
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
return new GlueType(/* FunctionType */ 15, [new GlueFunctionType(matchValue_8.fields[0].Documentation, matchValue_8.fields[0].Type, matchValue_8.fields[0].TypeParameters, empty(), matchValue_8.fields[0].Parameters)]);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
return matchValue_8;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
case 3: {
|
|
99
|
+
let inScope;
|
|
100
|
+
const collect = (node_mut, acc_mut) => {
|
|
101
|
+
collect:
|
|
102
|
+
while (true) {
|
|
103
|
+
const node = node_mut, acc = acc_mut;
|
|
104
|
+
if (Operators_IsNull(node)) {
|
|
105
|
+
return acc;
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
const typeParameters_1 = node.typeParameters;
|
|
109
|
+
const acc_1 = (typeParameters_1 == null) ? acc : append(acc, map((typeParameter) => identifierText(typeParameter.name), toList(typeParameters_1)));
|
|
110
|
+
node_mut = node.parent;
|
|
111
|
+
acc_mut = acc_1;
|
|
112
|
+
continue collect;
|
|
113
|
+
}
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
inScope = ofSeq(collect(typeQueryNode, empty()), {
|
|
118
|
+
Compare: (x_8, y) => (comparePrimitives(x_8, y) | 0),
|
|
119
|
+
});
|
|
120
|
+
const toFunctionDeclaration = (name, documentation, parameters, returnType) => {
|
|
121
|
+
const free = ofList(map((name_2) => [name_2, new GlueType(/* Primitive */ 3, [GluePrimitive.Any])], filter((name_1) => !FSharpSet__Contains(inScope, name_1), toList(delay(() => append_1(GlueSubstitution_mentionedTypeParameters(returnType), delay(() => collect_1((parameter) => GlueSubstitution_mentionedTypeParameters(parameter.Type), parameters))))))), {
|
|
122
|
+
Compare: (x_9, y_1) => (comparePrimitives(x_9, y_1) | 0),
|
|
123
|
+
});
|
|
124
|
+
return new GlueType(/* FunctionDeclaration */ 6, [new GlueFunctionDeclaration(documentation, true, name, GlueSubstitution_substitute(free, returnType), map((parameter_1) => GlueSubstitution_substituteParameter(free, parameter_1), parameters), empty())]);
|
|
125
|
+
};
|
|
126
|
+
const matchValue_9 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](declaration_1);
|
|
127
|
+
switch (matchValue_9.tag) {
|
|
128
|
+
case 0: {
|
|
129
|
+
const info_3 = matchValue_9.fields[0];
|
|
130
|
+
return toFunctionDeclaration(info_3.Name, info_3.Documentation, info_3.Parameters, info_3.Type);
|
|
131
|
+
}
|
|
132
|
+
case 6: {
|
|
133
|
+
const info_4 = matchValue_9.fields[0];
|
|
134
|
+
return toFunctionDeclaration(info_4.Name, info_4.Documentation, info_4.Parameters, info_4.Type);
|
|
135
|
+
}
|
|
136
|
+
default:
|
|
137
|
+
return new GlueType(/* Primitive */ 3, [GluePrimitive.Any]);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
case 4:
|
|
141
|
+
return new GlueType(/* Primitive */ 3, [GluePrimitive.Any]);
|
|
142
|
+
default:
|
|
143
|
+
if (contains(declaration_1, declarationsInProgress, {
|
|
144
|
+
Equals: equals,
|
|
145
|
+
GetHashCode: (x_10) => (structuralHash(x_10) | 0),
|
|
146
|
+
})) {
|
|
147
|
+
return new GlueType(/* Primitive */ 3, [GluePrimitive.Any]);
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
void (declarationsInProgress.push(declaration_1));
|
|
151
|
+
try {
|
|
152
|
+
return reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](declaration_1);
|
|
153
|
+
}
|
|
154
|
+
finally {
|
|
155
|
+
declarationsInProgress.splice(declarationsInProgress.length - 1, 1);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
32
159
|
}
|
|
160
|
+
default:
|
|
161
|
+
return new GlueType(/* Primitive */ 3, [GluePrimitive.Any]);
|
|
33
162
|
}
|
|
34
163
|
}
|
|
35
164
|
else if (exprNameKind === 80) {
|
|
@@ -37,53 +166,59 @@ export function readTypeQueryNode(reader, typeQueryNode) {
|
|
|
37
166
|
let _arg_5;
|
|
38
167
|
let input_9;
|
|
39
168
|
const option = checker.getSymbolAtLocation(exprName);
|
|
40
|
-
const error = Report_readerError_Z19516DCE("type node (TypeQuery)", "Missing symbol", typeQueryNode, "/
|
|
169
|
+
const error = Report_readerError_Z19516DCE("type node (TypeQuery)", "Missing symbol", typeQueryNode, "/_//src/Glutinum.Converter/Reader/TypeQueryNode.fs", 31);
|
|
41
170
|
const option_1 = option;
|
|
42
|
-
input_9 = ((option_1 == null) ? (new FSharpResult$2(1, [error])) : (new FSharpResult$2(0, [option_1])));
|
|
171
|
+
input_9 = ((option_1 == null) ? (new FSharpResult$2(/* Error */ 1, [error])) : (new FSharpResult$2(/* Ok */ 0, [option_1])));
|
|
43
172
|
if (input_9.tag === 1) {
|
|
44
|
-
_arg_5 = (new FSharpResult$2(1, [input_9.fields[0]]));
|
|
173
|
+
_arg_5 = (new FSharpResult$2(/* Error */ 1, [input_9.fields[0]]));
|
|
45
174
|
}
|
|
46
175
|
else {
|
|
47
176
|
let input_7;
|
|
48
177
|
const option_2 = input_9.fields[0].declarations;
|
|
49
|
-
const error_2 = Report_readerError_Z19516DCE("type node (TypeQuery)", "Missing declarations", typeQueryNode, "/
|
|
178
|
+
const error_2 = Report_readerError_Z19516DCE("type node (TypeQuery)", "Missing declarations", typeQueryNode, "/_//src/Glutinum.Converter/Reader/TypeQueryNode.fs", 41);
|
|
50
179
|
const option_3 = option_2;
|
|
51
|
-
input_7 = ((option_3 == null) ? (new FSharpResult$2(1, [error_2])) : (new FSharpResult$2(0, [option_3])));
|
|
180
|
+
input_7 = ((option_3 == null) ? (new FSharpResult$2(/* Error */ 1, [error_2])) : (new FSharpResult$2(/* Ok */ 0, [option_3])));
|
|
52
181
|
if (input_7.tag === 1) {
|
|
53
|
-
_arg_5 = (new FSharpResult$2(1, [input_7.fields[0]]));
|
|
182
|
+
_arg_5 = (new FSharpResult$2(/* Error */ 1, [input_7.fields[0]]));
|
|
54
183
|
}
|
|
55
184
|
else {
|
|
56
185
|
const declarations = input_7.fields[0];
|
|
57
|
-
const input_5 = (declarations.length !== 1) ? (new FSharpResult$2(1, [Report_readerError_Z19516DCE("type node (TypeQuery)", "Expected exactly one declaration", typeQueryNode, "/
|
|
186
|
+
const input_5 = (declarations.length !== 1) ? (new FSharpResult$2(/* Error */ 1, [Report_readerError_Z19516DCE("type node (TypeQuery)", "Expected exactly one declaration", typeQueryNode, "/_//src/Glutinum.Converter/Reader/TypeQueryNode.fs", 50)])) : (new FSharpResult$2(/* Ok */ 0, [item(0, declarations)]));
|
|
58
187
|
if (input_5.tag === 1) {
|
|
59
|
-
_arg_5 = (new FSharpResult$2(1, [input_5.fields[0]]));
|
|
188
|
+
_arg_5 = (new FSharpResult$2(/* Error */ 1, [input_5.fields[0]]));
|
|
60
189
|
}
|
|
61
190
|
else {
|
|
62
191
|
const declaration = input_5.fields[0];
|
|
63
192
|
let input_3;
|
|
64
|
-
const matchValue_3 = declaration.kind
|
|
65
|
-
input_3 = ((matchValue_3 === 260) ? (new FSharpResult$2(0, [declaration])) : (new FSharpResult$2(1, [Report_readerError_Z19516DCE("type node (TypeQuery)",
|
|
193
|
+
const matchValue_3 = declaration.kind;
|
|
194
|
+
input_3 = ((matchValue_3 === 260) ? (new FSharpResult$2(/* Ok */ 0, [declaration])) : (new FSharpResult$2(/* Error */ 1, [Report_readerError_Z19516DCE("type node (TypeQuery)", concat("Unsupported declaration kind ", TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(matchValue_3)), typeQueryNode, "/_//src/Glutinum.Converter/Reader/TypeQueryNode.fs", 66)])));
|
|
66
195
|
if (input_3.tag === 1) {
|
|
67
|
-
_arg_5 = (new FSharpResult$2(1, [input_3.fields[0]]));
|
|
196
|
+
_arg_5 = (new FSharpResult$2(/* Error */ 1, [input_3.fields[0]]));
|
|
68
197
|
}
|
|
69
198
|
else {
|
|
70
199
|
let input_1;
|
|
71
200
|
const option_4 = input_3.fields[0].type;
|
|
72
|
-
const error_4 = Report_readerError_Z19516DCE("type node (TypeQuery)", "Missing type", typeQueryNode, "/
|
|
201
|
+
const error_4 = Report_readerError_Z19516DCE("type node (TypeQuery)", "Missing type", typeQueryNode, "/_//src/Glutinum.Converter/Reader/TypeQueryNode.fs", 76);
|
|
73
202
|
const option_5 = option_4;
|
|
74
|
-
input_1 = ((option_5 == null) ? (new FSharpResult$2(1, [error_4])) : (new FSharpResult$2(0, [option_5])));
|
|
203
|
+
input_1 = ((option_5 == null) ? (new FSharpResult$2(/* Error */ 1, [error_4])) : (new FSharpResult$2(/* Ok */ 0, [option_5])));
|
|
75
204
|
if (input_1.tag === 1) {
|
|
76
|
-
_arg_5 = (new FSharpResult$2(1, [input_1.fields[0]]));
|
|
205
|
+
_arg_5 = (new FSharpResult$2(/* Error */ 1, [input_1.fields[0]]));
|
|
77
206
|
}
|
|
78
207
|
else {
|
|
79
208
|
const typeNode = input_1.fields[0];
|
|
80
|
-
const matchValue_4 = typeNode.kind
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
209
|
+
const matchValue_4 = typeNode.kind;
|
|
210
|
+
switch (matchValue_4) {
|
|
211
|
+
case 189: {
|
|
212
|
+
_arg_5 = (new FSharpResult$2(/* Ok */ 0, [reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](typeNode)]));
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
case 198: {
|
|
216
|
+
const typeOperatorNode = typeNode;
|
|
217
|
+
_arg_5 = (new FSharpResult$2(/* Ok */ 0, [reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeOperatorNodeZ6830FC33"](typeOperatorNode)]));
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
default:
|
|
221
|
+
_arg_5 = (new FSharpResult$2(/* Error */ 1, [Report_readerError_Z19516DCE("type node (TypeQuery)", concat("Unsupported declaration kind ", TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(matchValue_4)), typeQueryNode, "/_//src/Glutinum.Converter/Reader/TypeQueryNode.fs", 88)]));
|
|
87
222
|
}
|
|
88
223
|
}
|
|
89
224
|
}
|
|
@@ -92,36 +227,35 @@ export function readTypeQueryNode(reader, typeQueryNode) {
|
|
|
92
227
|
}
|
|
93
228
|
if (_arg_5.tag === 1) {
|
|
94
229
|
void (reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(_arg_5.fields[0]));
|
|
95
|
-
return
|
|
230
|
+
return GlueType.Discard;
|
|
96
231
|
}
|
|
97
232
|
else {
|
|
98
233
|
return _arg_5.fields[0];
|
|
99
234
|
}
|
|
100
235
|
}
|
|
101
236
|
else {
|
|
102
|
-
const warning_1 = Report_readerError_Z19516DCE("type node (TypeQuery)", "Expected an Identifier", typeQueryNode, "/
|
|
237
|
+
const warning_1 = Report_readerError_Z19516DCE("type node (TypeQuery)", "Expected an Identifier", typeQueryNode, "/_//src/Glutinum.Converter/Reader/TypeQueryNode.fs", 104);
|
|
103
238
|
void (reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(warning_1));
|
|
104
|
-
return new GlueType(3, [
|
|
239
|
+
return new GlueType(/* Primitive */ 3, [GluePrimitive.Any]);
|
|
105
240
|
}
|
|
106
241
|
}
|
|
107
242
|
else if ($007CHasTypeFlags$007C_$007C(4, matchValue) != null) {
|
|
108
|
-
return new GlueType(3, [
|
|
243
|
+
return new GlueType(/* Primitive */ 3, [GluePrimitive.String$]);
|
|
109
244
|
}
|
|
110
245
|
else if ($007CHasTypeFlags$007C_$007C(8, matchValue) != null) {
|
|
111
|
-
return new GlueType(3, [
|
|
246
|
+
return new GlueType(/* Primitive */ 3, [GluePrimitive.Number$]);
|
|
112
247
|
}
|
|
113
248
|
else if ($007CHasTypeFlags$007C_$007C(16, matchValue) != null) {
|
|
114
|
-
return new GlueType(
|
|
249
|
+
return new GlueType(/* Primitive */ 3, [GluePrimitive.Bool]);
|
|
115
250
|
}
|
|
116
251
|
else if ($007CHasTypeFlags$007C_$007C(1, matchValue) != null) {
|
|
117
|
-
return new GlueType(3, [
|
|
252
|
+
return new GlueType(/* Primitive */ 3, [GluePrimitive.Any]);
|
|
118
253
|
}
|
|
119
254
|
else if ($007CHasTypeFlags$007C_$007C(16384, matchValue) != null) {
|
|
120
|
-
return new GlueType(3, [
|
|
255
|
+
return new GlueType(/* Primitive */ 3, [GluePrimitive.Unit]);
|
|
121
256
|
}
|
|
122
257
|
else {
|
|
123
|
-
return new GlueType(3, [
|
|
258
|
+
return new GlueType(/* Primitive */ 3, [GluePrimitive.Any]);
|
|
124
259
|
}
|
|
125
260
|
}
|
|
126
261
|
|
|
127
|
-
//# sourceMappingURL=TypeQueryNode.js.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
import { readExportDeclaration } from "./ExportDeclaration.js";
|
|
1
3
|
import { readClassDeclaration } from "./ClassDeclaration.js";
|
|
2
4
|
import { readEnumDeclaration } from "./EnumDeclaration.js";
|
|
3
5
|
import { GluePrimitive, GlueType } from "../GlueAST.js";
|
|
@@ -18,17 +20,19 @@ import { readExportAssignment } from "./ExportAssignment.js";
|
|
|
18
20
|
import { readDocumentationForNode, readDocumentationForSignature } from "./Documentation.js";
|
|
19
21
|
import { readNamedTupleMember } from "./NamedTupleMember.js";
|
|
20
22
|
import { readMappedTypeNode } from "./MappedTypeNode.js";
|
|
21
|
-
import { class_type } from "../../fable_modules/fable-library-js.
|
|
23
|
+
import { class_type } from "../../fable_modules/fable-library-js.5.17.2/Reflection.js";
|
|
22
24
|
|
|
23
25
|
export class TypeScriptReader {
|
|
24
|
-
constructor(checker) {
|
|
25
|
-
this["checker@
|
|
26
|
+
constructor(checker, packageContext) {
|
|
27
|
+
this["checker@27"] = checker;
|
|
28
|
+
this.packageContext = packageContext;
|
|
26
29
|
this.warnings = [];
|
|
27
30
|
this.typeMemory = [];
|
|
31
|
+
this["SyntheticContext@"] = undefined;
|
|
28
32
|
}
|
|
29
33
|
"Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"() {
|
|
30
34
|
const _ = this;
|
|
31
|
-
return _["checker@
|
|
35
|
+
return _["checker@27"];
|
|
32
36
|
}
|
|
33
37
|
"Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"() {
|
|
34
38
|
const _ = this;
|
|
@@ -38,25 +42,41 @@ export class TypeScriptReader {
|
|
|
38
42
|
const _ = this;
|
|
39
43
|
return _.typeMemory;
|
|
40
44
|
}
|
|
45
|
+
"Glutinum.Converter.Reader.Types.ITypeScriptReader.get_PackageContext"() {
|
|
46
|
+
const _ = this;
|
|
47
|
+
return _.packageContext;
|
|
48
|
+
}
|
|
49
|
+
"Glutinum.Converter.Reader.Types.ITypeScriptReader.get_SyntheticContext"() {
|
|
50
|
+
const __ = this;
|
|
51
|
+
return __["SyntheticContext@"];
|
|
52
|
+
}
|
|
53
|
+
"Glutinum.Converter.Reader.Types.ITypeScriptReader.set_SyntheticContext"(v) {
|
|
54
|
+
const __ = this;
|
|
55
|
+
__["SyntheticContext@"] = v;
|
|
56
|
+
}
|
|
57
|
+
"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadExportDeclarationEF24BD1"(exportDeclaration) {
|
|
58
|
+
const this$ = this;
|
|
59
|
+
return readExportDeclaration(this$, exportDeclaration);
|
|
60
|
+
}
|
|
41
61
|
"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadClassDeclarationZ4558F325"(classDeclaration) {
|
|
42
62
|
const this$ = this;
|
|
43
63
|
return readClassDeclaration(this$, classDeclaration);
|
|
44
64
|
}
|
|
45
65
|
"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadEnumDeclaration49F76106"(enumDeclaration) {
|
|
46
66
|
const this$ = this;
|
|
47
|
-
return new GlueType(4, [readEnumDeclaration(this$, enumDeclaration)]);
|
|
67
|
+
return new GlueType(/* Enum */ 4, [readEnumDeclaration(this$, enumDeclaration)]);
|
|
48
68
|
}
|
|
49
69
|
"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadFunctionDeclarationZ72EBD329"(functionDeclaration) {
|
|
50
70
|
const this$ = this;
|
|
51
|
-
return
|
|
71
|
+
return readFunctionDeclaration(this$, functionDeclaration);
|
|
52
72
|
}
|
|
53
73
|
"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadInterfaceDeclaration1CB6FA10"(interfaceDeclaration) {
|
|
54
74
|
const this$ = this;
|
|
55
|
-
return new GlueType(1, [readInterfaceDeclaration(this$, interfaceDeclaration)]);
|
|
75
|
+
return new GlueType(/* Interface */ 1, [readInterfaceDeclaration(this$, interfaceDeclaration)]);
|
|
56
76
|
}
|
|
57
77
|
"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadModuleDeclarationC29C54F"(moduleDeclaration) {
|
|
58
78
|
const this$ = this;
|
|
59
|
-
return new GlueType(11, [readModuleDeclaration(this$, moduleDeclaration)]);
|
|
79
|
+
return new GlueType(/* ModuleDeclaration */ 11, [readModuleDeclaration(this$, moduleDeclaration)]);
|
|
60
80
|
}
|
|
61
81
|
"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"(node) {
|
|
62
82
|
const this$ = this;
|
|
@@ -74,7 +94,7 @@ export class TypeScriptReader {
|
|
|
74
94
|
}
|
|
75
95
|
"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"(typNode) {
|
|
76
96
|
const this$ = this;
|
|
77
|
-
return (typNode == null) ? (new GlueType(3, [
|
|
97
|
+
return (typNode == null) ? (new GlueType(/* Primitive */ 3, [GluePrimitive.Unit])) : readTypeNode(this$, typNode);
|
|
78
98
|
}
|
|
79
99
|
"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadVariableStatementZ66C4BA0A"(variableStatement) {
|
|
80
100
|
const this$ = this;
|
|
@@ -127,11 +147,10 @@ export class TypeScriptReader {
|
|
|
127
147
|
}
|
|
128
148
|
|
|
129
149
|
export function TypeScriptReader_$reflection() {
|
|
130
|
-
return class_type("Glutinum.Converter.Reader.TypeScriptReader.TypeScriptReader",
|
|
150
|
+
return class_type("Glutinum.Converter.Reader.TypeScriptReader.TypeScriptReader", undefined, TypeScriptReader);
|
|
131
151
|
}
|
|
132
152
|
|
|
133
|
-
export function TypeScriptReader_$
|
|
134
|
-
return new TypeScriptReader(checker);
|
|
153
|
+
export function TypeScriptReader_$ctor_26550FA4(checker, packageContext) {
|
|
154
|
+
return new TypeScriptReader(checker, packageContext);
|
|
135
155
|
}
|
|
136
156
|
|
|
137
|
-
//# sourceMappingURL=TypeScriptReader.js.map
|