@glutinum/cli 1.0.0-beta.10 → 1.0.0-beta.12
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/dist/Glutinum.Converter/Abbreviations.js +7 -7
- package/dist/Glutinum.Converter/DelegateExtensions.js +7 -7
- package/dist/Glutinum.Converter/FreeTypeParameters.js +4 -4
- package/dist/Glutinum.Converter/FsharpAST.js +3 -3
- package/dist/Glutinum.Converter/Generate.js +19 -6
- package/dist/Glutinum.Converter/GlueAST.js +8 -8
- package/dist/Glutinum.Converter/Hosting.js +11 -11
- package/dist/Glutinum.Converter/Merge.js +103 -27
- package/dist/Glutinum.Converter/Packages.js +11 -11
- package/dist/Glutinum.Converter/Printer.js +23 -11
- package/dist/Glutinum.Converter/Read.js +9 -9
- package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +4 -4
- package/dist/Glutinum.Converter/Reader/ConditionalTypeNode.js +3 -3
- package/dist/Glutinum.Converter/Reader/Declaration.js +7 -7
- package/dist/Glutinum.Converter/Reader/Deferred.js +8 -8
- package/dist/Glutinum.Converter/Reader/Documentation.js +6 -6
- package/dist/Glutinum.Converter/Reader/EnumDeclaration.js +2 -2
- package/dist/Glutinum.Converter/Reader/ExportAssignment.js +6 -6
- package/dist/Glutinum.Converter/Reader/ExportDeclaration.js +4 -4
- package/dist/Glutinum.Converter/Reader/ExpressionWithTypeArguments.js +5 -5
- package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js +4 -4
- package/dist/Glutinum.Converter/Reader/IndexedAccessType.js +1 -1
- package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js +5 -5
- package/dist/Glutinum.Converter/Reader/IntersectionTypeNode.js +5 -5
- package/dist/Glutinum.Converter/Reader/MappedTypeNode.js +4 -4
- package/dist/Glutinum.Converter/Reader/MemberTypes.js +5 -5
- package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js +4 -4
- package/dist/Glutinum.Converter/Reader/Node.js +4 -4
- package/dist/Glutinum.Converter/Reader/Parameters.js +3 -3
- package/dist/Glutinum.Converter/Reader/Report.js +4 -4
- package/dist/Glutinum.Converter/Reader/TypeNode.js +9 -9
- package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js +6 -6
- package/dist/Glutinum.Converter/Reader/TypeParameters.js +2 -2
- package/dist/Glutinum.Converter/Reader/TypeQueryNode.js +10 -10
- package/dist/Glutinum.Converter/Reader/TypeScriptReader.js +4 -4
- package/dist/Glutinum.Converter/Reader/Types.js +10 -10
- package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +4 -4
- package/dist/Glutinum.Converter/Reader/UtilityType.js +8 -8
- package/dist/Glutinum.Converter/Reader/Utils.js +14 -14
- package/dist/Glutinum.Converter/Reader/VariableStatement.js +5 -5
- package/dist/Glutinum.Converter/Transform.js +262 -42
- package/dist/Glutinum.Converter/Transformer/AnyFunctionOverloads.js +5 -5
- package/dist/Glutinum.Converter/Transformer/CallableProperties.js +3 -3
- package/dist/Glutinum.Converter/Transformer/Comment.js +7 -7
- package/dist/Glutinum.Converter/Transformer/Conditionals.js +10 -10
- package/dist/Glutinum.Converter/Transformer/Context.js +11 -11
- package/dist/Glutinum.Converter/Transformer/Enum.js +5 -5
- package/dist/Glutinum.Converter/Transformer/Exports.js +11 -11
- package/dist/Glutinum.Converter/Transformer/Heritage.js +8 -8
- package/dist/Glutinum.Converter/Transformer/KeyOfMaps.js +9 -9
- package/dist/Glutinum.Converter/Transformer/ParamObjectCandidate.js +7 -7
- package/dist/Glutinum.Converter/Transformer/TypeParameter.js +5 -5
- package/dist/Glutinum.Converter/Transformer/TypeParameters.js +6 -6
- package/dist/Glutinum.Converter/Transformer/UnionOverloads.js +7 -25
- package/dist/Glutinum.Converter/Transformer/Utils.js +6 -6
- package/dist/Glutinum.Converter/Utils/Keywords.js +3 -3
- package/dist/Glutinum.Converter/Utils/List.js +2 -2
- package/dist/Glutinum.Converter/Utils/Naming.js +6 -6
- package/dist/Glutinum.Converter/Utils/String.js +3 -3
- package/dist/Program.js +7 -7
- package/dist/fable_modules/Fable.Promise.3.2.1/AsyncIterable.fs.js +2 -2
- package/dist/fable_modules/Fable.Promise.3.2.1/Promise.fs.js +4 -4
- package/dist/fable_modules/Fable.Promise.3.2.1/PromiseImpl.fs.js +2 -2
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Array.fs.js +5 -5
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Async.fs.js +4 -4
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/AsyncOptionCE.fs.js +3 -3
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/AsyncResultCE.fs.js +1 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/AsyncResultOption.fs.js +3 -3
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/AsyncResultOptionCE.fs.js +1 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/AsyncValidationCE.fs.js +1 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/List.fs.js +4 -4
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/OptionCE.fs.js +1 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncResult.fs.js +3 -3
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncResultCE.fs.js +1 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncValidationCE.fs.js +1 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Result.fs.js +1 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ResultCE.fs.js +2 -2
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ResultOption.fs.js +2 -2
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ResultOptionCE.fs.js +1 -1
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Seq.fs.js +7 -7
- package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ValidationCE.fs.js +1 -1
- package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Async.js +21 -7
- package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/AsyncBuilder.js +51 -6
- package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/CHANGELOG.md +23 -1
- package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/CollectionUtil.js +10 -16
- package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/MailboxProcessor.js +19 -3
- package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/MutableMap.js +5 -1
- package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/MutableSet.js +5 -1
- package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Util.js +15 -3
- package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/package.json +1 -1
- package/package.json +1 -1
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Array.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/BigInt.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/BitConverter.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Boolean.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Char.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Choice.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/ConditionalWeakTable.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Date.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/DateOffset.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/DateOnly.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/DateOnlyTemporal.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/DateTimeFormat.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/DateTimeOffsetTemporal.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/DateTimeTemporal.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Decimal.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Directory.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Double.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Encoding.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Environment.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Event.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/FSharp.Collections.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/FSharp.Core.CompilerServices.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/FSharp.Core.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/File.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Global.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Guid.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Int32.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/List.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Long.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Map.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/MapUtil.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Native.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Numeric.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Observable.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Option.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Path.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/README.md +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Random.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Range.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Reflection.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/RegExp.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Result.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Seq.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Seq2.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Set.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/String.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/System.Collections.Generic.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/System.Text.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/System.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Task.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/TaskBuilder.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/TimeOnly.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/TimeOnlyTemporal.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/TimeSpan.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/TimeSpanTemporal.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Timer.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Types.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Unicode.13.0.0.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Uri.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/big.d.ts +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/lib/big.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/quotation.js +0 -0
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
|
|
2
|
-
import { Record } from "../fable_modules/fable-library-js.5.
|
|
3
|
-
import { int32_type, bool_type, array_type, list_type, record_type, class_type, string_type } from "../fable_modules/fable-library-js.5.
|
|
2
|
+
import { Record } from "../fable_modules/fable-library-js.5.21.0/Types.js";
|
|
3
|
+
import { int32_type, bool_type, array_type, list_type, record_type, class_type, string_type } from "../fable_modules/fable-library-js.5.21.0/Reflection.js";
|
|
4
4
|
import { Reporter__get_HasIterable, Reporter__get_HasReadonlyArray, Reporter__get_HasRegEpx, Reporter__get_Errors, Reporter__get_Warnings, TransformState_Create_Z68CEF8E2, TypeLiteralsMemory_$ctor, Reporter_$ctor, TransformContext__ToList, importDefaultAttribute, TransformContext_$ctor_Z1635F75A, TypeLiteralsMemory__EnterFileModule_Z721C83C5, TransformContext__get__Reporter, TransformContext__set_SiblingTypeNames_2FCB1351, importAttribute, TypeLiteralsMemory__LeaveModule, TypeLiteralsMemory__EnterModule_Z721C83C5, TransformContext__ExposeTypeAlias_1CE4A880, TransformContext__AddWarning_Z721C83C5, sanitizeTypeNameAndPushScope, ImportSource, TransformContext__get_ImportSource, TransformContext__get_TypeMemory, sanitizeMemberNameAndPushScope, TransformContext__AddError_Z721C83C5, TypeLiteralsMemory__Remember_74C8CBB, TransformContext__get_TypeLiteralsMemory, TransformContext__get_Root, TypeLiteralsMemory__TryReference_433E080, TransformContext__get_State, TransformContext__get_FullName, TransformContext__ExposeType_Z1D58A540, TransformContext__PushScope_27AED5E3, sanitizeNameAndPushScope, TransformContext__NewTypeName, TransformContext__get_CurrentScopeName, TransformContext__ExposeIterable, TransformContext__ReferenceName_Z721C83C5, TransformContext__get_OriginalScopeName, TransformContext__ExposeTypeAlias_Z721C83C5, TransformContext__ExposeReadonlyArray, ImportSource_$reflection, TransformContext_$reflection } from "./Transformer/Context.js";
|
|
5
5
|
import { GlueReExport, GlueVariable, GlueTypeReference, GlueClassDeclaration, GlueLiteral__ToText, GlueIndexSignature, GlueLiteral, GlueTypeUnion, GlueMember__TryGetAccessor, GlueMember__get_Documentation, GluePrimitive, GlueProperty, GlueAccessor, GlueFunctionDeclaration, GlueMethod, GlueMethodSignature, GlueSubstitution_mentionedTypeParameters, GlueFunctionType, GlueParameter, GlueType, GlueTypeLiteral, GlueMember, GlueTypeParameter, GlueSubstitution_substitute, GlueSubstitution_substituteParameter, GlueInterface, GlueTypeAliasDeclaration_$reflection } from "./GlueAST.js";
|
|
6
6
|
import { transformComment, TransformCommentResult_$reflection } from "./Transformer/Comment.js";
|
|
7
7
|
import { SealedTypeInfo, TransformDeclarationTypeParametersResult, TransformTypeParametersResult, TransformResult_Create_403667D8, mapFSharpType, mapFsharpParameter, TransformDeclarationTypeParametersResult_$reflection } from "./Transformer/TypeParameter.js";
|
|
8
8
|
import { FSharpModule, FSharpSingleErasedCaseUnion, FSharpJSApi, FSharpEnum, FSharpEnumCase, FSharpLiteral, FSharpUnionCaseNamed, FSharpClass, FSharpConstructor, FSharpExplicitField, FSharpMemberInfoBody, FSharpAccessibility, FSharpStaticMemberInfo, FSharpMember, FSharpMemberInfo, FSharpAccessor, FSharpParameter, FSharpThisType, FSharpPrimitive, FSharpTypeAlias, FSharpDelegate, FSharpFunctionType, FSharpTypeReference, FSharpUnion, FSharpUnionCase, FSharpTypeParameter, FSharpMapped, FSharpInterface, FSharpAttribute, FSharpType, FSharpType_$reflection } from "./FsharpAST.js";
|
|
9
|
-
import { empty as empty_3, add, contains as contains_2,
|
|
9
|
+
import { ofSeq as ofSeq_1, empty as empty_3, add, contains as contains_2, ofList, FSharpSet__Contains } from "../fable_modules/fable-library-js.5.21.0/Set.js";
|
|
10
10
|
import { aggregatedExports, replaceSelfReference, isUnitAlias, typedArrayNames, transformPrimitive, requiredBeforeParamArray, isDataObject, Interface_makePartial, tryUnwrapOption, iteratorNames } from "./Transformer/Utils.js";
|
|
11
|
-
import { value as value_7,
|
|
12
|
-
import { zip, mapFold, tryPick, item, concat as concat_1, reverse, iterate, cons, foldBack, fold, sortBy, tryFind, ofSeq,
|
|
11
|
+
import { toArray, value as value_7, defaultArg } from "../fable_modules/fable-library-js.5.21.0/Option.js";
|
|
12
|
+
import { zip, mapFold, tryPick, item, concat as concat_1, reverse, iterate, cons, foldBack, fold, sortBy, tryFind, ofSeq, truncate, contains, exists, partition, mapIndexed, forAll, map2, filter, append, length, collect, tryLast, choose, tryHead, singleton, empty, ofArray, map, head as head_1, tail as tail_1, isEmpty } from "../fable_modules/fable-library-js.5.21.0/List.js";
|
|
13
13
|
import { aliasArities, membersNameUndeclaredTypeParameters, mentionsTypeParameter, ownTypeParameterDefaults, typeParameterNames as typeParameterNames_2, unconstrained, memberTypeParameterNames, typeArguments, declaredTypeParameters as declaredTypeParameters_1 } from "./Transformer/TypeParameters.js";
|
|
14
|
-
import { List_groupBy, List_distinct } from "../fable_modules/fable-library-js.5.
|
|
15
|
-
import { uncurry2, curry2, Lazy,
|
|
16
|
-
import { replace,
|
|
14
|
+
import { List_groupBy, List_distinct } from "../fable_modules/fable-library-js.5.21.0/Seq2.js";
|
|
15
|
+
import { uncurry2, curry2, Lazy, Exception, numberHash, int32ToString, comparePrimitives, safeHash, structuralHash, equals, stringHash } from "../fable_modules/fable-library-js.5.21.0/Util.js";
|
|
16
|
+
import { replace, interpolate, substring, trimStart, split, trim, concat } from "../fable_modules/fable-library-js.5.21.0/String.js";
|
|
17
17
|
import { resolveMembers, isConditionalAlias, isInterfaceDeclaration } from "./Transformer/Conditionals.js";
|
|
18
|
-
import {
|
|
18
|
+
import { contains as contains_1, last } from "../fable_modules/fable-library-js.5.21.0/Array.js";
|
|
19
19
|
import { removeSurroundingQuotes, sanitizeTypeNameWithResult, sanitizeTypeName } from "./Utils/Naming.js";
|
|
20
|
-
import {
|
|
20
|
+
import { FSharpMap__TryFind, exists as exists_1, empty as empty_2, ofList as ofList_1, FSharpMap__ContainsKey, FSharpMap__get_Item, map as map_1 } from "../fable_modules/fable-library-js.5.21.0/Map.js";
|
|
21
|
+
import { map as map_2, append as append_1, empty as empty_1, singleton as singleton_1, delay, toList } from "../fable_modules/fable-library-js.5.21.0/Seq.js";
|
|
21
22
|
import { capitalizeFirstLetter } from "./Utils/String.js";
|
|
22
|
-
import { addToSet } from "../fable_modules/fable-library-js.5.
|
|
23
|
+
import { addToSet } from "../fable_modules/fable-library-js.5.21.0/MapUtil.js";
|
|
23
24
|
import { expandMembers } from "./Transformer/AnyFunctionOverloads.js";
|
|
24
25
|
import { isMap, keysModule, isMapNamed, expandMembers as expandMembers_1 } from "./Transformer/KeyOfMaps.js";
|
|
25
26
|
import { defaultMaxOverloads, isNullish, tryCases, expandMembers as expandMembers_2 } from "./Transformer/UnionOverloads.js";
|
|
26
27
|
import { applyWith as applyWith_1, disambiguateOverloads, aliasesOf, parametersSignature, Aliases_get_Empty, distinctBySignature } from "./Merge.js";
|
|
27
|
-
import { min } from "../fable_modules/fable-library-js.5.
|
|
28
|
-
import { contains as contains_1 } from "../fable_modules/fable-library-js.5.17.2/Array.js";
|
|
28
|
+
import { min } from "../fable_modules/fable-library-js.5.21.0/Double.js";
|
|
29
29
|
import { inheritsIterable, asMethods, tryCallableHeritage } from "./Transformer/CallableProperties.js";
|
|
30
30
|
import { withoutBaseClassProperties, withoutBasesOfBases, isInheritableType, isSelfHeritage, isArrayHeritage, isErrorHeritage, withoutRedeclaredBases } from "./Transformer/Heritage.js";
|
|
31
31
|
import { isCandidate, tryResolveMembers } from "./Transformer/ParamObjectCandidate.js";
|
|
32
|
-
import { op_UnaryNegation_Int32 } from "../fable_modules/fable-library-js.5.
|
|
32
|
+
import { op_UnaryNegation_Int32 } from "../fable_modules/fable-library-js.5.21.0/Int32.js";
|
|
33
33
|
import { transformEnum } from "./Transformer/Enum.js";
|
|
34
34
|
import { Transforms, transformExports } from "./Transformer/Exports.js";
|
|
35
35
|
import { apply as apply_1 } from "./DelegateExtensions.js";
|
|
@@ -714,8 +714,226 @@ function $007CRememberedTypeLiteral$007C_$007C(context, glueType) {
|
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
716
|
|
|
717
|
+
function caseNameOf(typ) {
|
|
718
|
+
let name_6;
|
|
719
|
+
const lastSegment = (name) => trim(last(split(name, ["."], undefined, 0)), "`");
|
|
720
|
+
let option_7;
|
|
721
|
+
let matchResult, elementType, typeReference, mappedInfo, name_2, elementType_1, innerType;
|
|
722
|
+
switch (typ.tag) {
|
|
723
|
+
case 8: {
|
|
724
|
+
switch (typ.fields[0].tag) {
|
|
725
|
+
case 1: {
|
|
726
|
+
matchResult = 1;
|
|
727
|
+
break;
|
|
728
|
+
}
|
|
729
|
+
case 2: {
|
|
730
|
+
matchResult = 2;
|
|
731
|
+
break;
|
|
732
|
+
}
|
|
733
|
+
case 5: {
|
|
734
|
+
matchResult = 3;
|
|
735
|
+
break;
|
|
736
|
+
}
|
|
737
|
+
case 3: {
|
|
738
|
+
matchResult = 4;
|
|
739
|
+
break;
|
|
740
|
+
}
|
|
741
|
+
case 4: {
|
|
742
|
+
matchResult = 5;
|
|
743
|
+
break;
|
|
744
|
+
}
|
|
745
|
+
case 7: {
|
|
746
|
+
matchResult = 6;
|
|
747
|
+
break;
|
|
748
|
+
}
|
|
749
|
+
case 6: {
|
|
750
|
+
matchResult = 7;
|
|
751
|
+
break;
|
|
752
|
+
}
|
|
753
|
+
default:
|
|
754
|
+
matchResult = 0;
|
|
755
|
+
}
|
|
756
|
+
break;
|
|
757
|
+
}
|
|
758
|
+
case 18: {
|
|
759
|
+
matchResult = 8;
|
|
760
|
+
break;
|
|
761
|
+
}
|
|
762
|
+
case 11: {
|
|
763
|
+
switch (typ.fields[0].Name) {
|
|
764
|
+
case "ResizeArray": {
|
|
765
|
+
if (!isEmpty(typ.fields[0].TypeArguments)) {
|
|
766
|
+
if (isEmpty(tail_1(typ.fields[0].TypeArguments))) {
|
|
767
|
+
matchResult = 9;
|
|
768
|
+
elementType = head_1(typ.fields[0].TypeArguments);
|
|
769
|
+
}
|
|
770
|
+
else {
|
|
771
|
+
matchResult = 10;
|
|
772
|
+
typeReference = typ.fields[0];
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
else {
|
|
776
|
+
matchResult = 10;
|
|
777
|
+
typeReference = typ.fields[0];
|
|
778
|
+
}
|
|
779
|
+
break;
|
|
780
|
+
}
|
|
781
|
+
case "ReadonlyArray": {
|
|
782
|
+
if (!isEmpty(typ.fields[0].TypeArguments)) {
|
|
783
|
+
if (isEmpty(tail_1(typ.fields[0].TypeArguments))) {
|
|
784
|
+
matchResult = 9;
|
|
785
|
+
elementType = head_1(typ.fields[0].TypeArguments);
|
|
786
|
+
}
|
|
787
|
+
else {
|
|
788
|
+
matchResult = 10;
|
|
789
|
+
typeReference = typ.fields[0];
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
else {
|
|
793
|
+
matchResult = 10;
|
|
794
|
+
typeReference = typ.fields[0];
|
|
795
|
+
}
|
|
796
|
+
break;
|
|
797
|
+
}
|
|
798
|
+
default: {
|
|
799
|
+
matchResult = 10;
|
|
800
|
+
typeReference = typ.fields[0];
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
break;
|
|
804
|
+
}
|
|
805
|
+
case 7: {
|
|
806
|
+
matchResult = 11;
|
|
807
|
+
mappedInfo = typ.fields[0];
|
|
808
|
+
break;
|
|
809
|
+
}
|
|
810
|
+
case 13: {
|
|
811
|
+
matchResult = 12;
|
|
812
|
+
name_2 = typ.fields[0];
|
|
813
|
+
break;
|
|
814
|
+
}
|
|
815
|
+
case 14: {
|
|
816
|
+
matchResult = 13;
|
|
817
|
+
elementType_1 = typ.fields[0];
|
|
818
|
+
break;
|
|
819
|
+
}
|
|
820
|
+
case 19: {
|
|
821
|
+
matchResult = 13;
|
|
822
|
+
elementType_1 = typ.fields[0].fields[0];
|
|
823
|
+
break;
|
|
824
|
+
}
|
|
825
|
+
case 3: {
|
|
826
|
+
matchResult = 14;
|
|
827
|
+
innerType = typ.fields[0];
|
|
828
|
+
break;
|
|
829
|
+
}
|
|
830
|
+
case 16: {
|
|
831
|
+
matchResult = 15;
|
|
832
|
+
break;
|
|
833
|
+
}
|
|
834
|
+
case 12: {
|
|
835
|
+
matchResult = 16;
|
|
836
|
+
break;
|
|
837
|
+
}
|
|
838
|
+
default:
|
|
839
|
+
matchResult = 17;
|
|
840
|
+
}
|
|
841
|
+
switch (matchResult) {
|
|
842
|
+
case 0: {
|
|
843
|
+
option_7 = "String";
|
|
844
|
+
break;
|
|
845
|
+
}
|
|
846
|
+
case 1: {
|
|
847
|
+
option_7 = "Int";
|
|
848
|
+
break;
|
|
849
|
+
}
|
|
850
|
+
case 2: {
|
|
851
|
+
option_7 = "Float";
|
|
852
|
+
break;
|
|
853
|
+
}
|
|
854
|
+
case 3: {
|
|
855
|
+
option_7 = "Number";
|
|
856
|
+
break;
|
|
857
|
+
}
|
|
858
|
+
case 4: {
|
|
859
|
+
option_7 = "Bool";
|
|
860
|
+
break;
|
|
861
|
+
}
|
|
862
|
+
case 5: {
|
|
863
|
+
option_7 = "Unit";
|
|
864
|
+
break;
|
|
865
|
+
}
|
|
866
|
+
case 6: {
|
|
867
|
+
option_7 = "BigInt";
|
|
868
|
+
break;
|
|
869
|
+
}
|
|
870
|
+
case 7: {
|
|
871
|
+
option_7 = undefined;
|
|
872
|
+
break;
|
|
873
|
+
}
|
|
874
|
+
case 8: {
|
|
875
|
+
option_7 = "Obj";
|
|
876
|
+
break;
|
|
877
|
+
}
|
|
878
|
+
case 9: {
|
|
879
|
+
const option_1 = caseNameOf(elementType);
|
|
880
|
+
option_7 = ((option_1 != null) ? (option_1 + "Array") : undefined);
|
|
881
|
+
break;
|
|
882
|
+
}
|
|
883
|
+
case 10: {
|
|
884
|
+
option_7 = lastSegment(typeReference.Name);
|
|
885
|
+
break;
|
|
886
|
+
}
|
|
887
|
+
case 11: {
|
|
888
|
+
option_7 = lastSegment(mappedInfo.Name);
|
|
889
|
+
break;
|
|
890
|
+
}
|
|
891
|
+
case 12: {
|
|
892
|
+
option_7 = trimStart(name_2, "\'");
|
|
893
|
+
break;
|
|
894
|
+
}
|
|
895
|
+
case 13: {
|
|
896
|
+
const option_3 = caseNameOf(elementType_1);
|
|
897
|
+
option_7 = ((option_3 != null) ? (option_3 + "Array") : undefined);
|
|
898
|
+
break;
|
|
899
|
+
}
|
|
900
|
+
case 14: {
|
|
901
|
+
const option_5 = caseNameOf(innerType);
|
|
902
|
+
option_7 = ((option_5 != null) ? (option_5 + "Option") : undefined);
|
|
903
|
+
break;
|
|
904
|
+
}
|
|
905
|
+
case 15: {
|
|
906
|
+
option_7 = "Function";
|
|
907
|
+
break;
|
|
908
|
+
}
|
|
909
|
+
case 16: {
|
|
910
|
+
option_7 = "Tuple";
|
|
911
|
+
break;
|
|
912
|
+
}
|
|
913
|
+
default:
|
|
914
|
+
option_7 = undefined;
|
|
915
|
+
}
|
|
916
|
+
if (option_7 != null) {
|
|
917
|
+
return (name_6 = sanitizeTypeName(option_7), name_6[0].toUpperCase() + substring(name_6, 1));
|
|
918
|
+
}
|
|
919
|
+
else {
|
|
920
|
+
return undefined;
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
|
|
717
924
|
function erasedUnion(name, typeParameters, caseTypes) {
|
|
718
|
-
|
|
925
|
+
const names = map(caseNameOf, caseTypes);
|
|
926
|
+
return new FSharpUnion(ofArray([FSharpAttribute.RequireQualifiedAccess, FSharpAttribute.Erase]), name, map2((caseName, caseType) => (new FSharpUnionCase(/* Field */ 2, [caseName, caseType])), ((forAll((option) => (option != null), names) && (length(List_distinct(names, {
|
|
927
|
+
Equals: equals,
|
|
928
|
+
GetHashCode: (x) => (structuralHash(x) | 0),
|
|
929
|
+
})) === length(names))) && forAll((name_1) => {
|
|
930
|
+
if (!equals(name_1, "Tag")) {
|
|
931
|
+
return !equals(name_1, "Tags");
|
|
932
|
+
}
|
|
933
|
+
else {
|
|
934
|
+
return false;
|
|
935
|
+
}
|
|
936
|
+
}, names)) ? map(value_7, names) : mapIndexed((index, _arg) => (`Case${index + 1}`), caseTypes), caseTypes), false, typeParameters, empty());
|
|
719
937
|
}
|
|
720
938
|
|
|
721
939
|
function referenceToExposed(context, name, typeParameterNames) {
|
|
@@ -2464,9 +2682,8 @@ function tryParameterCombinations(maxOverloads, parameters) {
|
|
|
2464
2682
|
}
|
|
2465
2683
|
|
|
2466
2684
|
function paramObjectParameterSets(context, members) {
|
|
2467
|
-
let option_3;
|
|
2468
2685
|
const parameters = paramObjectParameters(context, members);
|
|
2469
|
-
const expandable = map((parameter) => {
|
|
2686
|
+
const expandable = (TransformContext__get_State(context).MaxOverloads > 1) ? map((parameter) => {
|
|
2470
2687
|
let tupledArg;
|
|
2471
2688
|
let aliasCases;
|
|
2472
2689
|
const matchValue_1 = parameter.OriginalGlueMember;
|
|
@@ -2546,11 +2763,8 @@ function paramObjectParameterSets(context, members) {
|
|
|
2546
2763
|
TransformContext__get_State(context_1).UnionAliasesBeingExpanded.splice(TransformContext__get_State(context_1).UnionAliasesBeingExpanded.length - 1, 1);
|
|
2547
2764
|
}
|
|
2548
2765
|
}
|
|
2549
|
-
}, parameters);
|
|
2550
|
-
|
|
2551
|
-
Compare: (x_1, y_1) => (comparePrimitives(x_1, y_1) | 0),
|
|
2552
|
-
});
|
|
2553
|
-
return defaultArg((option_3 = tryParameterCombinations(TransformContext__get_State(context).MaxOverloads, expandable), (option_3 != null) ? append(filter((list_4) => exists((parameter_2) => FSharpSet__Contains(expandedNames, parameter_2.Name), list_4), option_3), singleton(parameters)) : undefined), singleton(parameters));
|
|
2766
|
+
}, parameters) : parameters;
|
|
2767
|
+
return defaultArg(tryParameterCombinations(TransformContext__get_State(context).MaxOverloads, expandable), singleton(parameters));
|
|
2554
2768
|
}
|
|
2555
2769
|
|
|
2556
2770
|
function paramObjectCreateMembers(context, returnType, members) {
|
|
@@ -4069,41 +4283,47 @@ function aliasOfUnion(scope, cases, unionType) {
|
|
|
4069
4283
|
const matchValue = tryOptimizeUnionType(context, scope.Name, cases_1);
|
|
4070
4284
|
if (matchValue == null) {
|
|
4071
4285
|
const matchValue_1 = partition(isNullable, cases_1);
|
|
4072
|
-
let matchResult_1, single,
|
|
4073
|
-
if (
|
|
4074
|
-
if (
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
single = head_1(matchValue_1[1]);
|
|
4078
|
-
}
|
|
4079
|
-
else if (length(matchValue_1[1]) > 9) {
|
|
4080
|
-
matchResult_1 = 1;
|
|
4081
|
-
others_4 = matchValue_1[1];
|
|
4082
|
-
}
|
|
4083
|
-
else {
|
|
4084
|
-
matchResult_1 = 2;
|
|
4085
|
-
}
|
|
4286
|
+
let matchResult_1, single, others_5, others_6;
|
|
4287
|
+
if (isEmpty(matchValue_1[0])) {
|
|
4288
|
+
if (length(matchValue_1[1]) > 1) {
|
|
4289
|
+
matchResult_1 = 1;
|
|
4290
|
+
others_5 = matchValue_1[1];
|
|
4086
4291
|
}
|
|
4087
4292
|
else if (length(matchValue_1[1]) > 9) {
|
|
4088
|
-
matchResult_1 =
|
|
4089
|
-
|
|
4293
|
+
matchResult_1 = 2;
|
|
4294
|
+
others_6 = matchValue_1[1];
|
|
4090
4295
|
}
|
|
4091
4296
|
else {
|
|
4297
|
+
matchResult_1 = 3;
|
|
4298
|
+
}
|
|
4299
|
+
}
|
|
4300
|
+
else if (!isEmpty(matchValue_1[1])) {
|
|
4301
|
+
if (isEmpty(tail_1(matchValue_1[1]))) {
|
|
4302
|
+
matchResult_1 = 0;
|
|
4303
|
+
single = head_1(matchValue_1[1]);
|
|
4304
|
+
}
|
|
4305
|
+
else if (length(matchValue_1[1]) > 9) {
|
|
4092
4306
|
matchResult_1 = 2;
|
|
4307
|
+
others_6 = matchValue_1[1];
|
|
4308
|
+
}
|
|
4309
|
+
else {
|
|
4310
|
+
matchResult_1 = 3;
|
|
4093
4311
|
}
|
|
4094
4312
|
}
|
|
4095
4313
|
else if (length(matchValue_1[1]) > 9) {
|
|
4096
|
-
matchResult_1 =
|
|
4097
|
-
|
|
4314
|
+
matchResult_1 = 2;
|
|
4315
|
+
others_6 = matchValue_1[1];
|
|
4098
4316
|
}
|
|
4099
4317
|
else {
|
|
4100
|
-
matchResult_1 =
|
|
4318
|
+
matchResult_1 = 3;
|
|
4101
4319
|
}
|
|
4102
4320
|
switch (matchResult_1) {
|
|
4103
4321
|
case 0:
|
|
4104
4322
|
return aliasOf(scope, new FSharpType(/* Option */ 3, [transformType(TransformContext__PushScope_27AED5E3(context, "Value"), single)]));
|
|
4105
4323
|
case 1:
|
|
4106
|
-
return erasedUnionOf(
|
|
4324
|
+
return erasedUnionOf(others_5);
|
|
4325
|
+
case 2:
|
|
4326
|
+
return erasedUnionOf(others_6);
|
|
4107
4327
|
default:
|
|
4108
4328
|
return aliasOf(scope, transformType(context, unionType));
|
|
4109
4329
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
import { singleton as singleton_1, collect as collect_1, append, mapIndexed, empty, choose, tryFindIndex, ofArray, take, map, tail, head, isEmpty, contains } from "../../fable_modules/fable-library-js.5.
|
|
2
|
+
import { singleton as singleton_1, collect as collect_1, append, mapIndexed, empty, choose, tryFindIndex, ofArray, take, map, tail, head, isEmpty, contains } from "../../fable_modules/fable-library-js.5.21.0/List.js";
|
|
3
3
|
import { FSharpMember, FSharpMemberInfo, FSharpFunctionType, FSharpPrimitive, FSharpParameter, FSharpType, FSharpAttribute } from "../FsharpAST.js";
|
|
4
|
-
import { comparePrimitives, safeHash, equals } from "../../fable_modules/fable-library-js.5.
|
|
5
|
-
import { ofSeq, FSharpSet__Contains } from "../../fable_modules/fable-library-js.5.
|
|
6
|
-
import { append as append_1, singleton, collect, delay, toList } from "../../fable_modules/fable-library-js.5.
|
|
4
|
+
import { comparePrimitives, safeHash, equals } from "../../fable_modules/fable-library-js.5.21.0/Util.js";
|
|
5
|
+
import { ofSeq, FSharpSet__Contains } from "../../fable_modules/fable-library-js.5.21.0/Set.js";
|
|
6
|
+
import { append as append_1, singleton, collect, delay, toList } from "../../fable_modules/fable-library-js.5.21.0/Seq.js";
|
|
7
7
|
import { declaredTypeParameters } from "./TypeParameters.js";
|
|
8
|
-
import { rangeDouble } from "../../fable_modules/fable-library-js.5.
|
|
8
|
+
import { rangeDouble } from "../../fable_modules/fable-library-js.5.21.0/Range.js";
|
|
9
9
|
|
|
10
10
|
const MAX_ARITY = 3;
|
|
11
11
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import { collect, forAll, singleton, contains, filter, choose, map, head, tail, isEmpty, empty as empty_1, tryPick, exists } from "../../fable_modules/fable-library-js.5.
|
|
3
|
-
import { empty, FSharpSet__Contains, FSharpSet__Add } from "../../fable_modules/fable-library-js.5.
|
|
2
|
+
import { collect, forAll, singleton, contains, filter, choose, map, head, tail, isEmpty, empty as empty_1, tryPick, exists } from "../../fable_modules/fable-library-js.5.21.0/List.js";
|
|
3
|
+
import { empty, FSharpSet__Contains, FSharpSet__Add } from "../../fable_modules/fable-library-js.5.21.0/Set.js";
|
|
4
4
|
import { iteratorNames } from "./Utils.js";
|
|
5
|
-
import { stringHash, comparePrimitives } from "../../fable_modules/fable-library-js.5.
|
|
5
|
+
import { stringHash, comparePrimitives } from "../../fable_modules/fable-library-js.5.21.0/Util.js";
|
|
6
6
|
import { GlueMethodSignature, GlueSubstitution_substitute, GlueMember, GlueSubstitution_substituteMember, GlueSubstitution_ofTypeArguments, GlueFunctionType, GlueParameter, GlueTypeUnion, GlueType, GlueTypeReference, GlueCallSignature } from "../GlueAST.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
import { Record } from "../../fable_modules/fable-library-js.5.
|
|
2
|
+
import { Record } from "../../fable_modules/fable-library-js.5.21.0/Types.js";
|
|
3
3
|
import { FSharpCommentTypeParam, FSharpCommentParam, FSharpXmlDoc, FSharpAttribute, FSharpXmlDoc_$reflection, FSharpAttribute_$reflection } from "../FsharpAST.js";
|
|
4
|
-
import { record_type, list_type } from "../../fable_modules/fable-library-js.5.
|
|
5
|
-
import { sortBy, map, empty, singleton, append, head, tail, isEmpty } from "../../fable_modules/fable-library-js.5.
|
|
4
|
+
import { record_type, list_type } from "../../fable_modules/fable-library-js.5.21.0/Reflection.js";
|
|
5
|
+
import { sortBy, map, empty, singleton, append, head, tail, isEmpty } from "../../fable_modules/fable-library-js.5.21.0/List.js";
|
|
6
6
|
import { normalizeLineEndings } from "../Utils/String.js";
|
|
7
|
-
import { trimStart, join } from "../../fable_modules/fable-library-js.5.
|
|
8
|
-
import { collect, empty as empty_1, singleton as singleton_1, append as append_1, delay, toList } from "../../fable_modules/fable-library-js.5.
|
|
9
|
-
import { value as value_2, defaultArg } from "../../fable_modules/fable-library-js.5.
|
|
10
|
-
import { comparePrimitives, Exception } from "../../fable_modules/fable-library-js.5.
|
|
7
|
+
import { trimStart, join } from "../../fable_modules/fable-library-js.5.21.0/String.js";
|
|
8
|
+
import { collect, empty as empty_1, singleton as singleton_1, append as append_1, delay, toList } from "../../fable_modules/fable-library-js.5.21.0/Seq.js";
|
|
9
|
+
import { value as value_2, defaultArg } from "../../fable_modules/fable-library-js.5.21.0/Option.js";
|
|
10
|
+
import { comparePrimitives, Exception } from "../../fable_modules/fable-library-js.5.21.0/Util.js";
|
|
11
11
|
|
|
12
12
|
export class TransformCommentResult extends Record {
|
|
13
13
|
constructor(ObsoleteAttributes, XmlDoc) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
import { Union, Record } from "../../fable_modules/fable-library-js.5.
|
|
2
|
+
import { Union, Record } from "../../fable_modules/fable-library-js.5.21.0/Types.js";
|
|
3
3
|
import { GlueFunctionDeclaration, GlueProperty, GlueMethodSignature, GlueMember, GlueMethod, GlueTypeParameter, GlueParameter_$reflection, GlueTypeParameter_$reflection, GlueFunctionType, GlueParameter, GlueTypeUnion, GlueTypeReference, GlueSubstitution_mentionedTypeParameters, GlueConditionalType, GlueSubstitution_substitute, GlueType, GluePrimitive, GlueClassDeclaration_$reflection, GlueInterface_$reflection, GlueTypeAliasDeclaration_$reflection, GlueType_$reflection } from "../GlueAST.js";
|
|
4
|
-
import { union_type, record_type, class_type, string_type, list_type } from "../../fable_modules/fable-library-js.5.
|
|
5
|
-
import { collect as collect_1, append, empty as empty_1, choose, singleton, cons, tryPick, zip, length, head as head_2, tail, item, mapIndexed, ofArray, filter, contains, forAll, isEmpty, map as map_1, exists, iterate } from "../../fable_modules/fable-library-js.5.
|
|
6
|
-
import { ofSeq as ofSeq_1, add, empty, FSharpSet__Contains, FSharpSet__Add } from "../../fable_modules/fable-library-js.5.
|
|
7
|
-
import { getItemFromDict } from "../../fable_modules/fable-library-js.5.
|
|
8
|
-
import { safeHash, stringHash, equals, comparePrimitives, disposeSafe, getEnumerator, curry2 } from "../../fable_modules/fable-library-js.5.
|
|
9
|
-
import { empty as empty_2, FSharpMap__get_IsEmpty, FSharpMap__get_Item, FSharpMap__TryFind, ofList, FSharpMap__ContainsKey, ofSeq } from "../../fable_modules/fable-library-js.5.
|
|
10
|
-
import { map } from "../../fable_modules/fable-library-js.5.
|
|
11
|
-
import { defaultArg } from "../../fable_modules/fable-library-js.5.
|
|
12
|
-
import { List_distinct } from "../../fable_modules/fable-library-js.5.
|
|
4
|
+
import { union_type, record_type, class_type, string_type, list_type } from "../../fable_modules/fable-library-js.5.21.0/Reflection.js";
|
|
5
|
+
import { collect as collect_1, append, empty as empty_1, choose, singleton, cons, tryPick, zip, length, head as head_2, tail, item, mapIndexed, ofArray, filter, contains, forAll, isEmpty, map as map_1, exists, iterate } from "../../fable_modules/fable-library-js.5.21.0/List.js";
|
|
6
|
+
import { ofSeq as ofSeq_1, add, empty, FSharpSet__Contains, FSharpSet__Add } from "../../fable_modules/fable-library-js.5.21.0/Set.js";
|
|
7
|
+
import { getItemFromDict } from "../../fable_modules/fable-library-js.5.21.0/MapUtil.js";
|
|
8
|
+
import { safeHash, stringHash, equals, comparePrimitives, disposeSafe, getEnumerator, curry2 } from "../../fable_modules/fable-library-js.5.21.0/Util.js";
|
|
9
|
+
import { empty as empty_2, FSharpMap__get_IsEmpty, FSharpMap__get_Item, FSharpMap__TryFind, ofList, FSharpMap__ContainsKey, ofSeq } from "../../fable_modules/fable-library-js.5.21.0/Map.js";
|
|
10
|
+
import { map } from "../../fable_modules/fable-library-js.5.21.0/Seq.js";
|
|
11
|
+
import { defaultArg } from "../../fable_modules/fable-library-js.5.21.0/Option.js";
|
|
12
|
+
import { List_distinct } from "../../fable_modules/fable-library-js.5.21.0/Seq2.js";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* The declarations of the run by their full name, built once by `create`
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
import { union_type, record_type, int32_type, array_type, string_type, class_type } from "../../fable_modules/fable-library-js.5.
|
|
3
|
-
import { trimStart, join, concat, substring } from "../../fable_modules/fable-library-js.5.
|
|
4
|
-
import { comparePrimitives, defaultOf, safeHash, equals, int32ToString } from "../../fable_modules/fable-library-js.5.
|
|
5
|
-
import { isEmpty, empty, singleton, contains, map } from "../../fable_modules/fable-library-js.5.
|
|
2
|
+
import { union_type, record_type, int32_type, array_type, string_type, class_type } from "../../fable_modules/fable-library-js.5.21.0/Reflection.js";
|
|
3
|
+
import { trimStart, join, concat, substring } from "../../fable_modules/fable-library-js.5.21.0/String.js";
|
|
4
|
+
import { comparePrimitives, defaultOf, safeHash, equals, int32ToString } from "../../fable_modules/fable-library-js.5.21.0/Util.js";
|
|
5
|
+
import { isEmpty, empty, singleton, contains, map } from "../../fable_modules/fable-library-js.5.21.0/List.js";
|
|
6
6
|
import { FSharpModule, FSharpTypeAlias, FSharpEnum, FSharpUnion, FSharpDelegate, FSharpClass, FSharpInterface, FSharpAttribute, FSharpMember, FSharpMemberInfo, FSharpType } from "../FsharpAST.js";
|
|
7
|
-
import { Union, FSharpRef, Record } from "../../fable_modules/fable-library-js.5.
|
|
7
|
+
import { Union, FSharpRef, Record } from "../../fable_modules/fable-library-js.5.21.0/Types.js";
|
|
8
8
|
import { create, State_$reflection } from "./Conditionals.js";
|
|
9
9
|
import { create as create_1, State_$reflection as State_$reflection_1 } from "./KeyOfMaps.js";
|
|
10
|
-
import { setItem, item } from "../../fable_modules/fable-library-js.5.
|
|
11
|
-
import { getItemFromDict, tryGetValue } from "../../fable_modules/fable-library-js.5.
|
|
12
|
-
import { collect, append, delay, toList, tryFindIndex } from "../../fable_modules/fable-library-js.5.
|
|
13
|
-
import { unwrap, defaultArg } from "../../fable_modules/fable-library-js.5.
|
|
14
|
-
import { FSharpMap__TryFind } from "../../fable_modules/fable-library-js.5.
|
|
15
|
-
import { FSharpSet__Contains, empty as empty_1, ofSeq } from "../../fable_modules/fable-library-js.5.
|
|
10
|
+
import { setItem, item } from "../../fable_modules/fable-library-js.5.21.0/Array.js";
|
|
11
|
+
import { getItemFromDict, tryGetValue } from "../../fable_modules/fable-library-js.5.21.0/MapUtil.js";
|
|
12
|
+
import { collect, append, delay, toList, tryFindIndex } from "../../fable_modules/fable-library-js.5.21.0/Seq.js";
|
|
13
|
+
import { unwrap, defaultArg } from "../../fable_modules/fable-library-js.5.21.0/Option.js";
|
|
14
|
+
import { FSharpMap__TryFind } from "../../fable_modules/fable-library-js.5.21.0/Map.js";
|
|
15
|
+
import { FSharpSet__Contains, empty as empty_1, ofSeq } from "../../fable_modules/fable-library-js.5.21.0/Set.js";
|
|
16
16
|
import { sanitizeTypeName, sanitizeName } from "../Utils/Naming.js";
|
|
17
17
|
|
|
18
18
|
export class Reporter {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
import { exists, choose, map, empty, ofArray, isEmpty, filter, partition } from "../../fable_modules/fable-library-js.5.
|
|
2
|
+
import { exists, choose, map, empty, ofArray, isEmpty, filter, partition } from "../../fable_modules/fable-library-js.5.21.0/List.js";
|
|
3
3
|
import { FSharpPrimitive, FSharpUnionConstant, FSharpEnum, FSharpEnumCase, FSharpUnion, FSharpUnionCase, FSharpUnionCaseNamed, FSharpType, FSharpInterface, FSharpAttribute } from "../FsharpAST.js";
|
|
4
4
|
import { removeSurroundingQuotes, sanitizeTypeName } from "../Utils/Naming.js";
|
|
5
|
-
import { List_distinct } from "../../fable_modules/fable-library-js.5.
|
|
6
|
-
import { safeHash, equals, Exception } from "../../fable_modules/fable-library-js.5.
|
|
7
|
-
import { append, empty as empty_1, singleton, delay, toList } from "../../fable_modules/fable-library-js.5.
|
|
5
|
+
import { List_distinct } from "../../fable_modules/fable-library-js.5.21.0/Seq2.js";
|
|
6
|
+
import { safeHash, equals, Exception } from "../../fable_modules/fable-library-js.5.21.0/Util.js";
|
|
7
|
+
import { append, empty as empty_1, singleton, delay, toList } from "../../fable_modules/fable-library-js.5.21.0/Seq.js";
|
|
8
8
|
import { transformLiteral } from "./Utils.js";
|
|
9
|
-
import { printf, toText } from "../../fable_modules/fable-library-js.5.
|
|
9
|
+
import { printf, toText } from "../../fable_modules/fable-library-js.5.21.0/String.js";
|
|
10
10
|
|
|
11
11
|
export function transformEnum(glueEnum) {
|
|
12
12
|
const patternInput = partition((m_1) => {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
import { Record } from "../../fable_modules/fable-library-js.5.
|
|
2
|
+
import { Record } from "../../fable_modules/fable-library-js.5.21.0/Types.js";
|
|
3
3
|
import { importAllAttribute, TransformContext__get_TypeMemory, TransformContext__get_State, sanitizeNameAndPushScope, importAttribute, TransformContext__PushScope_27AED5E3, sanitizeMemberNameAndPushScope, TransformContext__get_ImportSource, importDefaultAttribute, TransformContext_$reflection } from "./Context.js";
|
|
4
4
|
import { GlueFunctionDeclaration, GlueVariable, GlueType__get_Name, GlueType, GlueConstructor, GlueFunctionDeclaration_$reflection, GlueTypeParameter_$reflection, GlueParameter_$reflection, GlueType_$reflection } from "../GlueAST.js";
|
|
5
5
|
import { FSharpInterface, FSharpAccessor, FSharpMapped, FSharpMemberInfoBody, FSharpAccessibility, FSharpAttribute, FSharpMember_$reflection, FSharpMember, FSharpMemberInfo, FSharpParameter, FSharpType, FSharpParameter_$reflection, FSharpType_$reflection } from "../FsharpAST.js";
|
|
6
|
-
import { tuple_type, class_type, string_type, bool_type, record_type, list_type, lambda_type } from "../../fable_modules/fable-library-js.5.
|
|
6
|
+
import { tuple_type, class_type, string_type, bool_type, record_type, list_type, lambda_type } from "../../fable_modules/fable-library-js.5.21.0/Reflection.js";
|
|
7
7
|
import { mapFsharpParameter, mapFSharpType, SealedTypeInfo, TransformTypeParametersResult_$reflection } from "./TypeParameter.js";
|
|
8
|
-
import { union, empty as empty_2, ofSeq, singleton as singleton_2, contains, FSharpSet__Contains, ofList } from "../../fable_modules/fable-library-js.5.
|
|
9
|
-
import { tail as tail_3, head as head_1, fold, sortBy, append as append_1, tryPick, collect, ofArray, exists, singleton as singleton_1, empty, isEmpty, filter, map, choose } from "../../fable_modules/fable-library-js.5.
|
|
10
|
-
import { curry2, stringHash, comparePrimitives } from "../../fable_modules/fable-library-js.5.
|
|
11
|
-
import { List_distinct } from "../../fable_modules/fable-library-js.5.
|
|
8
|
+
import { union, empty as empty_2, ofSeq, singleton as singleton_2, contains, FSharpSet__Contains, ofList } from "../../fable_modules/fable-library-js.5.21.0/Set.js";
|
|
9
|
+
import { tail as tail_3, head as head_1, fold, sortBy, append as append_1, tryPick, collect, ofArray, exists, singleton as singleton_1, empty, isEmpty, filter, map, choose } from "../../fable_modules/fable-library-js.5.21.0/List.js";
|
|
10
|
+
import { curry2, stringHash, comparePrimitives } from "../../fable_modules/fable-library-js.5.21.0/Util.js";
|
|
11
|
+
import { List_distinct } from "../../fable_modules/fable-library-js.5.21.0/Seq2.js";
|
|
12
12
|
import { namedTypeParameters } from "./TypeParameters.js";
|
|
13
|
-
import { empty as empty_3, add, tryFind } from "../../fable_modules/fable-library-js.5.
|
|
14
|
-
import { map as map_1, empty as empty_1, forAll, singleton, append, delay, toList } from "../../fable_modules/fable-library-js.5.
|
|
15
|
-
import { printf, toFail, substring, concat } from "../../fable_modules/fable-library-js.5.
|
|
13
|
+
import { empty as empty_3, add, tryFind } from "../../fable_modules/fable-library-js.5.21.0/Map.js";
|
|
14
|
+
import { map as map_1, empty as empty_1, forAll, singleton, append, delay, toList } from "../../fable_modules/fable-library-js.5.21.0/Seq.js";
|
|
15
|
+
import { printf, toFail, substring, concat } from "../../fable_modules/fable-library-js.5.21.0/String.js";
|
|
16
16
|
import { removeSurroundingQuotes, sanitizeTypeName } from "../Utils/Naming.js";
|
|
17
17
|
import { transformComment } from "./Comment.js";
|
|
18
18
|
import { requiredBeforeParamArray } from "./Utils.js";
|
|
19
|
-
import { isLetterOrDigit } from "../../fable_modules/fable-library-js.5.
|
|
20
|
-
import { defaultArg, toArray } from "../../fable_modules/fable-library-js.5.
|
|
19
|
+
import { isLetterOrDigit } from "../../fable_modules/fable-library-js.5.21.0/Char.js";
|
|
20
|
+
import { defaultArg, toArray } from "../../fable_modules/fable-library-js.5.21.0/Option.js";
|
|
21
21
|
import { expandParameters } from "./UnionOverloads.js";
|
|
22
22
|
import { expandFunction } from "./KeyOfMaps.js";
|
|
23
23
|
import { resolveFunction } from "./Conditionals.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
import { ofList as ofList_1, empty as empty_1, FSharpSet__Add, FSharpSet__Contains, ofSeq } from "../../fable_modules/fable-library-js.5.
|
|
3
|
-
import { equals, comparePrimitives } from "../../fable_modules/fable-library-js.5.
|
|
4
|
-
import { exists, take, forAll2, length, forAll, indexed as indexed_1, fold, head, tail, isEmpty, map, singleton, filter, empty, choose, append, collect, tryPick } from "../../fable_modules/fable-library-js.5.
|
|
5
|
-
import { defaultArg } from "../../fable_modules/fable-library-js.5.
|
|
6
|
-
import { Record } from "../../fable_modules/fable-library-js.5.
|
|
2
|
+
import { ofList as ofList_1, empty as empty_1, FSharpSet__Add, FSharpSet__Contains, ofSeq } from "../../fable_modules/fable-library-js.5.21.0/Set.js";
|
|
3
|
+
import { equals, comparePrimitives } from "../../fable_modules/fable-library-js.5.21.0/Util.js";
|
|
4
|
+
import { exists, take, forAll2, length, forAll, indexed as indexed_1, fold, head, tail, isEmpty, map, singleton, filter, empty, choose, append, collect, tryPick } from "../../fable_modules/fable-library-js.5.21.0/List.js";
|
|
5
|
+
import { defaultArg } from "../../fable_modules/fable-library-js.5.21.0/Option.js";
|
|
6
|
+
import { Record } from "../../fable_modules/fable-library-js.5.21.0/Types.js";
|
|
7
7
|
import { GlueSubstitution_substitute, GlueSubstitution_substituteMember, GlueSubstitution_ofTypeArguments, GlueSubstitution_substituteParameter, GluePrimitive, GlueTypeReference, GlueTypeUnion, GlueType, GlueFunctionType, GlueParameter, GlueType_$reflection, GlueMember_$reflection, GlueTypeParameter_$reflection } from "../GlueAST.js";
|
|
8
|
-
import { record_type, list_type } from "../../fable_modules/fable-library-js.5.
|
|
9
|
-
import { ofList } from "../../fable_modules/fable-library-js.5.
|
|
10
|
-
import { max } from "../../fable_modules/fable-library-js.5.
|
|
8
|
+
import { record_type, list_type } from "../../fable_modules/fable-library-js.5.21.0/Reflection.js";
|
|
9
|
+
import { ofList } from "../../fable_modules/fable-library-js.5.21.0/Map.js";
|
|
10
|
+
import { max } from "../../fable_modules/fable-library-js.5.21.0/Double.js";
|
|
11
11
|
|
|
12
12
|
const primitiveNames = ofSeq(["string", "float", "int", "bool", "obj", "unit", "bigint"], {
|
|
13
13
|
Compare: (x, y) => (comparePrimitives(x, y) | 0),
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
import { Record } from "../../fable_modules/fable-library-js.5.
|
|
3
|
-
import { record_type, class_type, string_type } from "../../fable_modules/fable-library-js.5.
|
|
4
|
-
import { equals, comparePrimitives, disposeSafe, getEnumerator } from "../../fable_modules/fable-library-js.5.
|
|
5
|
-
import { getItemFromDict, addToSet } from "../../fable_modules/fable-library-js.5.
|
|
6
|
-
import { ofArray, empty, choose, fold, singleton, append, map as map_4, head, tail, isEmpty, iterate } from "../../fable_modules/fable-library-js.5.
|
|
7
|
-
import { empty as empty_1, singleton as singleton_1, append as append_1, delay, map as map_5, filter, toList } from "../../fable_modules/fable-library-js.5.
|
|
8
|
-
import { FSharpSet__Contains, ofList } from "../../fable_modules/fable-library-js.5.
|
|
9
|
-
import { FSharpMap__TryFind, ofSeq } from "../../fable_modules/fable-library-js.5.
|
|
2
|
+
import { Record } from "../../fable_modules/fable-library-js.5.21.0/Types.js";
|
|
3
|
+
import { record_type, class_type, string_type } from "../../fable_modules/fable-library-js.5.21.0/Reflection.js";
|
|
4
|
+
import { equals, comparePrimitives, disposeSafe, getEnumerator } from "../../fable_modules/fable-library-js.5.21.0/Util.js";
|
|
5
|
+
import { getItemFromDict, addToSet } from "../../fable_modules/fable-library-js.5.21.0/MapUtil.js";
|
|
6
|
+
import { ofArray, empty, choose, fold, singleton, append, map as map_4, head, tail, isEmpty, iterate } from "../../fable_modules/fable-library-js.5.21.0/List.js";
|
|
7
|
+
import { empty as empty_1, singleton as singleton_1, append as append_1, delay, map as map_5, filter, toList } from "../../fable_modules/fable-library-js.5.21.0/Seq.js";
|
|
8
|
+
import { FSharpSet__Contains, ofList } from "../../fable_modules/fable-library-js.5.21.0/Set.js";
|
|
9
|
+
import { FSharpMap__TryFind, ofSeq } from "../../fable_modules/fable-library-js.5.21.0/Map.js";
|
|
10
10
|
import { sanitizeName, sanitizeTypeName } from "../Utils/Naming.js";
|
|
11
11
|
import { GlueMethod, GlueMember, GlueMethodSignature, GlueFunctionDeclaration, GlueTypeParameter, GlueFunctionType, GlueParameter, GlueTypeUnion, GlueType, GlueTypeReference } from "../GlueAST.js";
|
|
12
|
-
import { concat } from "../../fable_modules/fable-library-js.5.
|
|
12
|
+
import { concat } from "../../fable_modules/fable-library-js.5.21.0/String.js";
|
|
13
13
|
import { FSharpModule, FSharpInterface, FSharpMember, FSharpMemberInfo, FSharpMemberInfoBody, FSharpAccessibility, FSharpTypeReference, FSharpType, FSharpAttribute } from "../FsharpAST.js";
|
|
14
14
|
import { declaredTypeParameters } from "./TypeParameters.js";
|
|
15
15
|
|