@glutinum/cli 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
|
|
2
|
+
import { Record } from "../../fable_modules/fable-library-js.5.17.2/Types.js";
|
|
3
|
+
import { lambda_type, bool_type, option_type, record_type, list_type, tuple_type, string_type } from "../../fable_modules/fable-library-js.5.17.2/Reflection.js";
|
|
4
|
+
import { normalizePath } from "../Utils/String.js";
|
|
5
|
+
import { tryFind, cons, head, tail, empty as empty_1, isEmpty, reverse, map, ofArray, exists, tryPick, filter, tryHead } from "../../fable_modules/fable-library-js.5.17.2/List.js";
|
|
6
|
+
import { split, join, substring } from "../../fable_modules/fable-library-js.5.17.2/String.js";
|
|
7
|
+
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library-js.5.17.2/Seq.js";
|
|
8
|
+
import { sanitizeTypeName } from "../Utils/Naming.js";
|
|
9
|
+
import { replace } from "../../fable_modules/fable-library-js.5.17.2/RegExp.js";
|
|
10
|
+
import { equals } from "../../fable_modules/fable-library-js.5.17.2/Util.js";
|
|
11
|
+
import { defaultArg } from "../../fable_modules/fable-library-js.5.17.2/Option.js";
|
|
12
|
+
|
|
13
|
+
export class PackageInfo extends Record {
|
|
14
|
+
constructor(ModuleName, RuntimeName, Dir, TypesRoot, EntryFile, SubpathEntries) {
|
|
15
|
+
super();
|
|
16
|
+
this.ModuleName = ModuleName;
|
|
17
|
+
this.RuntimeName = RuntimeName;
|
|
18
|
+
this.Dir = Dir;
|
|
19
|
+
this.TypesRoot = TypesRoot;
|
|
20
|
+
this.EntryFile = EntryFile;
|
|
21
|
+
this.SubpathEntries = SubpathEntries;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function PackageInfo_$reflection() {
|
|
26
|
+
return record_type("Glutinum.Converter.Reader.Types.PackageInfo", [], PackageInfo, () => [["ModuleName", string_type], ["RuntimeName", string_type], ["Dir", string_type], ["TypesRoot", string_type], ["EntryFile", string_type], ["SubpathEntries", list_type(tuple_type(string_type, string_type))]]);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* A package published as its own binding: its types are referenced, never generated
|
|
31
|
+
*/
|
|
32
|
+
export class ExternalPackage extends Record {
|
|
33
|
+
constructor(ModuleName, Package, LibFilePrefixes) {
|
|
34
|
+
super();
|
|
35
|
+
this.ModuleName = ModuleName;
|
|
36
|
+
this.Package = Package;
|
|
37
|
+
this.LibFilePrefixes = LibFilePrefixes;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ExternalPackage_$reflection() {
|
|
42
|
+
return record_type("Glutinum.Converter.Reader.Types.ExternalPackage", [], ExternalPackage, () => [["ModuleName", string_type], ["Package", option_type(PackageInfo_$reflection())], ["LibFilePrefixes", list_type(string_type)]]);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export class PackageContext extends Record {
|
|
46
|
+
constructor(Packages, Externals, IsLibraryName) {
|
|
47
|
+
super();
|
|
48
|
+
this.Packages = Packages;
|
|
49
|
+
this.Externals = Externals;
|
|
50
|
+
this.IsLibraryName = IsLibraryName;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function PackageContext_$reflection() {
|
|
55
|
+
return record_type("Glutinum.Converter.Reader.Types.PackageContext", [], PackageContext, () => [["Packages", list_type(PackageInfo_$reflection())], ["Externals", list_type(ExternalPackage_$reflection())], ["IsLibraryName", lambda_type(string_type, bool_type)]]);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PackageContext__TryFindPackage_Z721C83C5(this$, fileName) {
|
|
59
|
+
const fileName_1 = normalizePath(fileName);
|
|
60
|
+
return tryHead(filter((package$) => {
|
|
61
|
+
if (fileName_1.startsWith(package$.Dir)) {
|
|
62
|
+
return !(substring(fileName_1, package$.Dir.length).indexOf("node_modules/") >= 0);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
}, this$.Packages));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The F# modules of the external binding declaring `fileName`
|
|
72
|
+
*/
|
|
73
|
+
export function PackageContext__TryFindExternalModulePath_Z721C83C5(this$, fileName) {
|
|
74
|
+
return PackageContext__TryFindExternalModulePath_Z55EFCE8F(this$, fileName, true);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function PackageContext__TryFindExternalModulePath_Z55EFCE8F(this$, fileName, includeFile) {
|
|
78
|
+
const fileName_1 = normalizePath(fileName);
|
|
79
|
+
return tryPick((external) => {
|
|
80
|
+
let package$;
|
|
81
|
+
if (exists((prefix) => (fileName_1.indexOf(prefix) >= 0), external.LibFilePrefixes)) {
|
|
82
|
+
return ofArray(["Glutinum", external.ModuleName]);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
const matchValue = external.Package;
|
|
86
|
+
let matchResult, package$_1;
|
|
87
|
+
if (matchValue != null) {
|
|
88
|
+
if ((package$ = matchValue, fileName_1.startsWith(package$.Dir))) {
|
|
89
|
+
matchResult = 0;
|
|
90
|
+
package$_1 = matchValue;
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
matchResult = 1;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
matchResult = 1;
|
|
98
|
+
}
|
|
99
|
+
switch (matchResult) {
|
|
100
|
+
case 0:
|
|
101
|
+
return toList(delay(() => append(singleton("Glutinum"), delay(() => append(singleton(external.ModuleName), delay(() => ((includeFile && (fileName_1 !== package$_1.EntryFile)) ? singleton(PackageContext__FileModuleName_Z11793CAF(this$, package$_1, fileName_1)) : empty())))))));
|
|
102
|
+
default:
|
|
103
|
+
return undefined;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}, this$.Externals);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function PackageContext__IsExternal_Z721C83C5(this$, fileName) {
|
|
110
|
+
if (PackageContext__TryFindPackage_Z721C83C5(this$, fileName) == null) {
|
|
111
|
+
return PackageContext__TryFindExternalModulePath_Z721C83C5(this$, fileName) == null;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function PackageContext__FileModuleName_Z11793CAF(this$, package$, fileName) {
|
|
119
|
+
let matchValue, rest, withoutExtension;
|
|
120
|
+
const fileName_1 = normalizePath(fileName);
|
|
121
|
+
const relativePath = fileName_1.startsWith(package$.TypesRoot) ? substring(fileName_1, package$.TypesRoot.length) : substring(fileName_1, package$.Dir.length);
|
|
122
|
+
return sanitizeTypeName(join("_", map((segment_1) => join("_", split(segment_1, ["-", ".", " "], undefined, 1)), (matchValue = reverse(filter((segment) => (segment !== ""), ofArray(relativePath.split("/")))), isEmpty(matchValue) ? empty_1() : ((rest = tail(matchValue), (withoutExtension = replace(head(matchValue), "\\.d\\.[cm]?ts$", ""), ((withoutExtension === "index") && !isEmpty(rest)) ? reverse(rest) : (equals(tryHead(rest), withoutExtension) ? reverse(rest) : reverse(cons(withoutExtension, rest))))))))));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* F# modules qualifying a type declared in `fileName`, empty for the target entry file
|
|
127
|
+
*/
|
|
128
|
+
export function PackageContext__ModulePath_Z721C83C5(this$, fileName) {
|
|
129
|
+
return PackageContext__ModulePath_Z55EFCE8F(this$, fileName, true);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* `includeFile = false` gives the package module only, where its globals are
|
|
134
|
+
*/
|
|
135
|
+
export function PackageContext__ModulePath_Z55EFCE8F(this$, fileName, includeFile) {
|
|
136
|
+
const matchValue = PackageContext__TryFindPackage_Z721C83C5(this$, fileName);
|
|
137
|
+
if (matchValue != null) {
|
|
138
|
+
const package$ = matchValue;
|
|
139
|
+
const fileName_1 = normalizePath(fileName);
|
|
140
|
+
return toList(delay(() => append(singleton(package$.ModuleName), delay(() => ((includeFile && (fileName_1 !== package$.EntryFile)) ? singleton(PackageContext__FileModuleName_Z11793CAF(this$, package$, fileName_1)) : empty())))));
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
return defaultArg(PackageContext__TryFindExternalModulePath_Z55EFCE8F(this$, fileName, includeFile), empty_1());
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function PackageContext__IsEntryFile_Z721C83C5(this$, fileName) {
|
|
148
|
+
const matchValue = PackageContext__TryFindPackage_Z721C83C5(this$, fileName);
|
|
149
|
+
if (matchValue == null) {
|
|
150
|
+
return false;
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
const package$ = matchValue;
|
|
154
|
+
return normalizePath(fileName) === package$.EntryFile;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function PackageContext__ImportSpecifier_Z721C83C5(this$, fileName) {
|
|
159
|
+
const matchValue = PackageContext__TryFindPackage_Z721C83C5(this$, fileName);
|
|
160
|
+
if (matchValue != null) {
|
|
161
|
+
const package$ = matchValue;
|
|
162
|
+
const fileName_1 = normalizePath(fileName);
|
|
163
|
+
if (fileName_1 === package$.EntryFile) {
|
|
164
|
+
return package$.RuntimeName;
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
const matchValue_1 = tryFind((tupledArg) => (tupledArg[0] === fileName_1), package$.SubpathEntries);
|
|
168
|
+
if (matchValue_1 == null) {
|
|
169
|
+
return ((package$.RuntimeName + "/") + replace(substring(fileName_1, package$.Dir.length), "\\.d\\.[cm]?ts$", "")) + ".js";
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
return (package$.RuntimeName + "/") + matchValue_1[1];
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
return "REPLACE_ME_WITH_MODULE_NAME";
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { isFromEs5Lib, $007CHasTypeFlags$007C_$007C, tryReadLiteral } from "./Utils.js";
|
|
1
|
+
|
|
2
|
+
import { ts } from "@ts-morph/bootstrap";
|
|
3
|
+
import { map, isEmpty, singleton, choose, concat } from "../../fable_modules/fable-library-js.5.17.2/List.js";
|
|
4
|
+
import { modulePathForSymbol, isExternalToPackages, isFromEs5Lib, $007CHasTypeFlags$007C_$007C, symbolAtLocation, tryReadLiteral } from "./Utils.js";
|
|
5
|
+
import { Exception } from "../../fable_modules/fable-library-js.5.17.2/Util.js";
|
|
5
6
|
import { GlueTypeUnion, GluePrimitive, GlueType } from "../GlueAST.js";
|
|
6
7
|
import { Report_readerError_Z19516DCE } from "./Report.js";
|
|
7
|
-
import {
|
|
8
|
+
import { item } from "../../fable_modules/fable-library-js.5.17.2/Array.js";
|
|
9
|
+
import { toList } from "../../fable_modules/fable-library-js.5.17.2/Seq.js";
|
|
8
10
|
|
|
9
11
|
function readUnionTypeCases(reader, unionTypeNode) {
|
|
10
12
|
const checker = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]();
|
|
@@ -12,7 +14,7 @@ function readUnionTypeCases(reader, unionTypeNode) {
|
|
|
12
14
|
removeParenthesizedType:
|
|
13
15
|
while (true) {
|
|
14
16
|
const node = node_mut;
|
|
15
|
-
if (
|
|
17
|
+
if (ts.isParenthesizedTypeNode(node)) {
|
|
16
18
|
const parenthesizedTypeNode = node;
|
|
17
19
|
node_mut = parenthesizedTypeNode.type;
|
|
18
20
|
continue removeParenthesizedType;
|
|
@@ -24,60 +26,110 @@ function readUnionTypeCases(reader, unionTypeNode) {
|
|
|
24
26
|
}
|
|
25
27
|
};
|
|
26
28
|
return new GlueTypeUnion(concat(choose((node_1) => {
|
|
27
|
-
|
|
29
|
+
let option_1;
|
|
30
|
+
if (ts.isLiteralTypeNode(node_1)) {
|
|
28
31
|
const literalTypeNode = node_1;
|
|
29
32
|
const literalExpression = literalTypeNode.literal;
|
|
30
|
-
if (
|
|
31
|
-
return singleton(new GlueType(8, [
|
|
32
|
-
throw new
|
|
33
|
-
})]));
|
|
33
|
+
if (ts.isStringLiteral(literalExpression) ? true : ts.isNumericLiteral(literalExpression)) {
|
|
34
|
+
return singleton(new GlueType(/* Literal */ 8, [(option_1 = tryReadLiteral(checker, literalExpression), (option_1 != null) ? option_1 : (() => {
|
|
35
|
+
throw new Exception("Expected a NumericLiteral");
|
|
36
|
+
})())]));
|
|
34
37
|
}
|
|
35
38
|
else {
|
|
36
|
-
const matchValue = literalExpression.kind
|
|
39
|
+
const matchValue = literalExpression.kind;
|
|
37
40
|
switch (matchValue) {
|
|
41
|
+
case 97:
|
|
42
|
+
case 112: {
|
|
43
|
+
const option_3 = tryReadLiteral(checker, literalExpression);
|
|
44
|
+
if (option_3 != null) {
|
|
45
|
+
return singleton(new GlueType(/* Literal */ 8, [option_3]));
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
38
51
|
case 106:
|
|
39
52
|
case 157:
|
|
40
|
-
return singleton(new GlueType(3, [
|
|
53
|
+
return singleton(new GlueType(/* Primitive */ 3, [GluePrimitive.Null]));
|
|
54
|
+
case 224: {
|
|
55
|
+
const option_5 = tryReadLiteral(checker, literalExpression);
|
|
56
|
+
if (option_5 != null) {
|
|
57
|
+
return singleton(new GlueType(/* Literal */ 8, [option_5]));
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
41
63
|
default:
|
|
42
|
-
return
|
|
64
|
+
return undefined;
|
|
43
65
|
}
|
|
44
66
|
}
|
|
45
67
|
}
|
|
46
|
-
else if (
|
|
68
|
+
else if (ts.isTypeReferenceNode(node_1)) {
|
|
47
69
|
const typeReferenceNode = node_1;
|
|
48
|
-
const symbolOpt = checker
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
const declarations = matchValue_1;
|
|
65
|
-
if (declarations.length === 0) {
|
|
66
|
-
return void 0;
|
|
67
|
-
}
|
|
68
|
-
else if (isFromEs5Lib(symbolOpt)) {
|
|
69
|
-
return singleton(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](typeReferenceNode));
|
|
70
|
+
const symbolOpt = symbolAtLocation(checker, typeReferenceNode.typeName);
|
|
71
|
+
if (symbolOpt != null) {
|
|
72
|
+
const symbol = symbolOpt;
|
|
73
|
+
const matchValue_1 = symbol.declarations;
|
|
74
|
+
if (matchValue_1 == null) {
|
|
75
|
+
const typ = checker.getTypeOfSymbol(symbol);
|
|
76
|
+
const matchValue_4 = typ.flags;
|
|
77
|
+
if ($007CHasTypeFlags$007C_$007C(1, matchValue_4) != null) {
|
|
78
|
+
return singleton(new GlueType(/* Primitive */ 3, [GluePrimitive.Any]));
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
throw new Exception(Report_readerError_Z19516DCE("union type cases", "Unsupported type reference reach a point where it was expected to have flags like Any", typeReferenceNode, "/_//src/Glutinum.Converter/Reader/UnionTypeNode.fs", 120));
|
|
82
|
+
}
|
|
70
83
|
}
|
|
71
84
|
else {
|
|
72
|
-
const
|
|
73
|
-
if (
|
|
74
|
-
return
|
|
85
|
+
const declarations = matchValue_1;
|
|
86
|
+
if (declarations.length === 0) {
|
|
87
|
+
return undefined;
|
|
75
88
|
}
|
|
76
|
-
else {
|
|
89
|
+
else if (isFromEs5Lib(symbolOpt) ? true : isExternalToPackages(checker, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_PackageContext"](), symbolOpt)) {
|
|
77
90
|
return singleton(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](typeReferenceNode));
|
|
78
91
|
}
|
|
92
|
+
else {
|
|
93
|
+
const declaration = item(0, declarations);
|
|
94
|
+
if (declaration.kind === 265) {
|
|
95
|
+
if (!isEmpty(modulePathForSymbol(checker, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_PackageContext"](), false, symbolOpt))) {
|
|
96
|
+
return singleton(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](typeReferenceNode));
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
const matchValue_3 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](declaration);
|
|
100
|
+
let matchResult, aliasType;
|
|
101
|
+
if (matchValue_3.tag === 5) {
|
|
102
|
+
if (matchValue_3.fields[0].Type.tag === 7) {
|
|
103
|
+
matchResult = 0;
|
|
104
|
+
aliasType = matchValue_3;
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
matchResult = 1;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
matchResult = 1;
|
|
112
|
+
}
|
|
113
|
+
switch (matchResult) {
|
|
114
|
+
case 0:
|
|
115
|
+
return singleton(aliasType);
|
|
116
|
+
default:
|
|
117
|
+
return singleton(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](typeReferenceNode));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
return singleton(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](typeReferenceNode));
|
|
123
|
+
}
|
|
124
|
+
}
|
|
79
125
|
}
|
|
80
126
|
}
|
|
127
|
+
else if (typeReferenceNode.pos < 0) {
|
|
128
|
+
return singleton(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](typeReferenceNode));
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
throw new Exception(Report_readerError_Z19516DCE("union type cases", "Missing symbol", typeReferenceNode, "/_//src/Glutinum.Converter/Reader/UnionTypeNode.fs", 71));
|
|
132
|
+
}
|
|
81
133
|
}
|
|
82
134
|
else if (node_1.kind === 192) {
|
|
83
135
|
return readUnionTypeCases(reader, node_1).fields[0];
|
|
@@ -89,7 +141,11 @@ function readUnionTypeCases(reader, unionTypeNode) {
|
|
|
89
141
|
}
|
|
90
142
|
|
|
91
143
|
export function readUnionTypeNode(reader, unionTypeNode) {
|
|
92
|
-
|
|
144
|
+
if (((unionTypeNode.types.length === 1) && !ts.isLiteralTypeNode(item(0, unionTypeNode.types))) && !ts.isTypeReferenceNode(item(0, unionTypeNode.types))) {
|
|
145
|
+
return reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](item(0, unionTypeNode.types));
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
return new GlueType(/* Union */ 7, [readUnionTypeCases(reader, unionTypeNode)]);
|
|
149
|
+
}
|
|
93
150
|
}
|
|
94
151
|
|
|
95
|
-
//# sourceMappingURL=UnionTypeNode.js.map
|