@glutinum/cli 0.7.0 → 0.9.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/dist/Glutinum.Converter/FsharpAST.js +45 -14
- package/dist/Glutinum.Converter/FsharpAST.js.map +1 -1
- package/dist/Glutinum.Converter/Generate.js +23 -8
- package/dist/Glutinum.Converter/Generate.js.map +1 -1
- package/dist/Glutinum.Converter/GlueAST.js +67 -19
- package/dist/Glutinum.Converter/GlueAST.js.map +1 -1
- package/dist/Glutinum.Converter/Printer.js +138 -58
- package/dist/Glutinum.Converter/Printer.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +4 -4
- package/dist/Glutinum.Converter/Reader/ClassDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Declaration.js +19 -5
- package/dist/Glutinum.Converter/Reader/Declaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/ExportAssignment.js +1 -1
- package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js +3 -2
- package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/NamedTupleMember.js +1 -1
- package/dist/Glutinum.Converter/Reader/Node.js +1 -1
- package/dist/Glutinum.Converter/Reader/TypeNode.js +169 -126
- package/dist/Glutinum.Converter/Reader/TypeNode.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/TypeParameters.js +2 -1
- package/dist/Glutinum.Converter/Reader/TypeParameters.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +8 -5
- package/dist/Glutinum.Converter/Reader/UnionTypeNode.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Utils.js +50 -2
- package/dist/Glutinum.Converter/Reader/Utils.js.map +1 -1
- package/dist/Glutinum.Converter/Transform.js +433 -172
- package/dist/Glutinum.Converter/Transform.js.map +1 -1
- package/dist/Glutinum.Converter/Utils/Naming.js +0 -19
- package/dist/Glutinum.Converter/Utils/Naming.js.map +1 -1
- package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +57 -0
- package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +105 -0
- package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js.map +1 -0
- package/dist/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +20 -0
- package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs +766 -0
- package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +218 -0
- package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js.map +1 -0
- package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +31 -0
- package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +20 -0
- package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js.map +1 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Array.d.ts +123 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Array.js +1242 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Async.d.ts +32 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Async.js +158 -0
- package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.d.ts +59 -0
- package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.js +183 -0
- package/dist/fable_modules/fable-library-js.4.14.0/BigInt.d.ts +115 -0
- package/dist/fable_modules/fable-library-js.4.14.0/BigInt.js +282 -0
- package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.d.ts +27 -0
- package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.js +138 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Boolean.d.ts +3 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Boolean.js +21 -0
- package/dist/fable_modules/fable-library-js.4.14.0/CHANGELOG.md +37 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Char.d.ts +65 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Char.js +169 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Choice.d.ts +121 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Choice.js +184 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Date.d.ts +70 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Date.js +749 -0
- package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.d.ts +63 -0
- package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.js +268 -0
- package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.d.ts +18 -0
- package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.js +124 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Decimal.d.ts +45 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Decimal.js +212 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Double.d.ts +11 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Double.js +46 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Encoding.d.ts +12 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Encoding.js +173 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Event.d.ts +31 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Event.js +93 -0
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.d.ts +7 -0
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.js +27 -0
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.d.ts +12 -0
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.js +27 -0
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.d.ts +17 -0
- package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.js +69 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Global.d.ts +24 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Global.js +8 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Guid.d.ts +10 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Guid.js +142 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Int32.d.ts +28 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Int32.js +135 -0
- package/dist/fable_modules/fable-library-js.4.14.0/List.d.ts +143 -0
- package/dist/fable_modules/fable-library-js.4.14.0/List.js +1273 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Long.d.ts +3 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Long.js +46 -0
- package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.d.ts +25 -0
- package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.js +93 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Map.d.ts +178 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Map.js +1396 -0
- package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.d.ts +10 -0
- package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.js +112 -0
- package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.d.ts +52 -0
- package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.js +327 -0
- package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.d.ts +39 -0
- package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.js +233 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Native.d.ts +2 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Native.js +8 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Numeric.d.ts +19 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Numeric.js +71 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Observable.d.ts +32 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Observable.js +113 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Option.d.ts +28 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Option.js +96 -0
- package/dist/fable_modules/fable-library-js.4.14.0/README.md +3 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Random.d.ts +37 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Random.js +170 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Range.d.ts +12 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Range.js +45 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Reflection.d.ts +119 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Reflection.js +461 -0
- package/dist/fable_modules/fable-library-js.4.14.0/RegExp.d.ts +10 -0
- package/dist/fable_modules/fable-library-js.4.14.0/RegExp.js +132 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Result.d.ts +37 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Result.js +165 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Seq.d.ts +165 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Seq.js +1379 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Seq2.d.ts +18 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Seq2.js +111 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Set.d.ts +190 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Set.js +1789 -0
- package/dist/fable_modules/fable-library-js.4.14.0/String.d.ts +50 -0
- package/dist/fable_modules/fable-library-js.4.14.0/String.js +543 -0
- package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.d.ts +79 -0
- package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.js +317 -0
- package/dist/fable_modules/fable-library-js.4.14.0/System.Text.d.ts +38 -0
- package/dist/fable_modules/fable-library-js.4.14.0/System.Text.js +162 -0
- package/dist/fable_modules/fable-library-js.4.14.0/SystemException.d.ts +5 -0
- package/dist/fable_modules/fable-library-js.4.14.0/SystemException.js +5 -0
- package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.d.ts +15 -0
- package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.js +122 -0
- package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.d.ts +34 -0
- package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.js +177 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Timer.d.ts +19 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Timer.js +67 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Types.d.ts +58 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Types.js +208 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.d.ts +2 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.js +4 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Uri.d.ts +29 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Uri.js +142 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Util.d.ts +207 -0
- package/dist/fable_modules/fable-library-js.4.14.0/Util.js +770 -0
- package/dist/fable_modules/fable-library-js.4.14.0/big.d.ts +338 -0
- package/dist/fable_modules/fable-library-js.4.14.0/lib/big.d.ts +5 -0
- package/dist/fable_modules/fable-library-js.4.14.0/lib/big.js +826 -0
- package/dist/fable_modules/fable-library-js.4.14.0/package.json +24 -0
- package/dist/fable_modules/project_cracked.json +1 -0
- package/package.json +1 -1
|
@@ -1,19 +1,35 @@
|
|
|
1
|
+
import { bool_type, array_type, string_type, record_type, list_type, class_type } from "../fable_modules/fable-library-js.4.14.0/Reflection.js";
|
|
1
2
|
import { printf, toFail, interpolate, toText, join, trimStart } from "../fable_modules/fable-library-js.4.14.0/String.js";
|
|
2
|
-
import { record_type, list_type, class_type } from "../fable_modules/fable-library-js.4.14.0/Reflection.js";
|
|
3
3
|
import { Record } from "../fable_modules/fable-library-js.4.14.0/Types.js";
|
|
4
|
-
import { FSharpTypeParameter_Create_Z6CFD3565, FSharpTypeAlias, FSharpEnum, FSharpEnumCase, FSharpStaticMemberInfo, FSharpAccessor,
|
|
4
|
+
import { FSharpTypeParameter_Create_Z6CFD3565, FSharpTypeAlias, FSharpEnum, FSharpEnumCase, FSharpUnionCaseNamed, FSharpStaticMemberInfo, FSharpAccessor, FSharpMember, FSharpMemberInfo, FSharpMemberInfoBody, FSharpMapped, FSharpInterface, FSharpClass, FSharpConstructor, FSharpAccessibility, FSharpExplicitField, FSharpParameter, FSharpFunctionType, FSharpTypeReference, FSharpUnion, FSharpUnionCase, FSharpPrimitive, FSharpLiteral, FSharpCommentTypeParam, FSharpCommentParam, FSharpXmlDoc, FSharpAttribute, FSharpType, FSharpModule, FSharpType_$reflection, FSharpXmlDoc_$reflection, FSharpAttribute_$reflection } from "./FsharpAST.js";
|
|
5
5
|
import { empty as empty_1, singleton as singleton_1, collect, append, delay, toList } from "../fable_modules/fable-library-js.4.14.0/Seq.js";
|
|
6
|
-
import { exists, filter, choose, collect as collect_1, ofArray, forAll, length, partition, sortBy, map, append as append_1, head as head_1, tail, singleton, empty, isEmpty } from "../fable_modules/fable-library-js.4.14.0/List.js";
|
|
7
|
-
import { sanitizeNameWithResult, removeSurroundingQuotes,
|
|
8
|
-
import { unwrap, value as value_4, map as map_1, defaultArg } from "../fable_modules/fable-library-js.4.14.0/Option.js";
|
|
6
|
+
import { exists, filter, tryFind, choose, collect as collect_1, ofArray, forAll, mapIndexed, length, partition, sortBy, map, append as append_1, head as head_1, tail, singleton, empty, isEmpty } from "../fable_modules/fable-library-js.4.14.0/List.js";
|
|
7
|
+
import { sanitizeNameWithResult, removeSurroundingQuotes, sanitizeName } from "./Utils/Naming.js";
|
|
8
|
+
import { bind, unwrap, value as value_4, map as map_1, defaultArg } from "../fable_modules/fable-library-js.4.14.0/Option.js";
|
|
9
9
|
import { int32ToString, safeHash, equals, comparePrimitives } from "../fable_modules/fable-library-js.4.14.0/Util.js";
|
|
10
|
-
import { GlueType, GlueTypeUnion,
|
|
11
|
-
import { warn, error } from "./Log.js";
|
|
10
|
+
import { GlueType, GlueTypeUnion, GlueMember, GlueProperty, GlueAccessor, GlueType__get_Name, GlueConstructor } from "./GlueAST.js";
|
|
12
11
|
import { List_distinct } from "../fable_modules/fable-library-js.4.14.0/Seq2.js";
|
|
13
12
|
|
|
13
|
+
export class Reporter {
|
|
14
|
+
constructor() {
|
|
15
|
+
this["Warnings@"] = [];
|
|
16
|
+
this["Errors@"] = [];
|
|
17
|
+
this["HasRegEpx@"] = false;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function Reporter_$reflection() {
|
|
22
|
+
return class_type("Glutinum.Converter.Transform.Reporter", void 0, Reporter);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function Reporter_$ctor() {
|
|
26
|
+
return new Reporter();
|
|
27
|
+
}
|
|
28
|
+
|
|
14
29
|
export class TransformContext {
|
|
15
|
-
constructor(currentScopeName, parent) {
|
|
30
|
+
constructor(reporter, currentScopeName, parent) {
|
|
16
31
|
let matchValue;
|
|
32
|
+
this.reporter = reporter;
|
|
17
33
|
this.currentScopeName = currentScopeName;
|
|
18
34
|
this.parent = parent;
|
|
19
35
|
this.types = [];
|
|
@@ -21,6 +37,7 @@ export class TransformContext {
|
|
|
21
37
|
this["FullName@"] = ((matchValue = this.parent, (matchValue != null) ? trimStart((TransformContext__get_FullName(matchValue) + ".") + this.currentScopeName, ".") : ""));
|
|
22
38
|
this["CurrentScopeName@"] = this.currentScopeName;
|
|
23
39
|
this["_types@"] = this.types;
|
|
40
|
+
this["_Reporter@"] = this.reporter;
|
|
24
41
|
}
|
|
25
42
|
}
|
|
26
43
|
|
|
@@ -28,8 +45,8 @@ export function TransformContext_$reflection() {
|
|
|
28
45
|
return class_type("Glutinum.Converter.Transform.TransformContext", void 0, TransformContext);
|
|
29
46
|
}
|
|
30
47
|
|
|
31
|
-
export function TransformContext_$
|
|
32
|
-
return new TransformContext(currentScopeName, parent);
|
|
48
|
+
export function TransformContext_$ctor_Z20656E4E(reporter, currentScopeName, parent) {
|
|
49
|
+
return new TransformContext(reporter, currentScopeName, parent);
|
|
33
50
|
}
|
|
34
51
|
|
|
35
52
|
export class TransformCommentResult extends Record {
|
|
@@ -44,6 +61,36 @@ export function TransformCommentResult_$reflection() {
|
|
|
44
61
|
return record_type("Glutinum.Converter.Transform.TransformCommentResult", [], TransformCommentResult, () => [["ObsoleteAttributes", list_type(FSharpAttribute_$reflection())], ["XmlDoc", list_type(FSharpXmlDoc_$reflection())]]);
|
|
45
62
|
}
|
|
46
63
|
|
|
64
|
+
export class TransformResult extends Record {
|
|
65
|
+
constructor(FSharpAST, Warnings, Errors, IncludeRegExpAlias) {
|
|
66
|
+
super();
|
|
67
|
+
this.FSharpAST = FSharpAST;
|
|
68
|
+
this.Warnings = Warnings;
|
|
69
|
+
this.Errors = Errors;
|
|
70
|
+
this.IncludeRegExpAlias = IncludeRegExpAlias;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function TransformResult_$reflection() {
|
|
75
|
+
return record_type("Glutinum.Converter.Transform.TransformResult", [], TransformResult, () => [["FSharpAST", list_type(FSharpType_$reflection())], ["Warnings", array_type(string_type)], ["Errors", array_type(string_type)], ["IncludeRegExpAlias", bool_type]]);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function Reporter__get_Warnings(__) {
|
|
79
|
+
return __["Warnings@"];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function Reporter__get_Errors(__) {
|
|
83
|
+
return __["Errors@"];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function Reporter__get_HasRegEpx(__) {
|
|
87
|
+
return __["HasRegEpx@"];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function Reporter__set_HasRegEpx_Z1FBCCD16(__, v) {
|
|
91
|
+
__["HasRegEpx@"] = v;
|
|
92
|
+
}
|
|
93
|
+
|
|
47
94
|
export function TransformContext__get_FullName(__) {
|
|
48
95
|
return __["FullName@"];
|
|
49
96
|
}
|
|
@@ -56,6 +103,14 @@ export function TransformContext__get__types(__) {
|
|
|
56
103
|
return __["_types@"];
|
|
57
104
|
}
|
|
58
105
|
|
|
106
|
+
export function TransformContext__get__Reporter(__) {
|
|
107
|
+
return __["_Reporter@"];
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function TransformContext__ExposeRegExp(_) {
|
|
111
|
+
Reporter__set_HasRegEpx_Z1FBCCD16(_.reporter, true);
|
|
112
|
+
}
|
|
113
|
+
|
|
59
114
|
export function TransformContext__ExposeType_Z1D58A540(_, typ) {
|
|
60
115
|
const matchValue = _.parent;
|
|
61
116
|
if (matchValue != null) {
|
|
@@ -68,7 +123,7 @@ export function TransformContext__ExposeType_Z1D58A540(_, typ) {
|
|
|
68
123
|
}
|
|
69
124
|
|
|
70
125
|
export function TransformContext__PushScope_Z721C83C5(this$, scopeName) {
|
|
71
|
-
const childContext = TransformContext_$
|
|
126
|
+
const childContext = TransformContext_$ctor_Z20656E4E(this$.reporter, scopeName, this$);
|
|
72
127
|
void (this$.modules.push(childContext));
|
|
73
128
|
return childContext;
|
|
74
129
|
}
|
|
@@ -88,6 +143,58 @@ export function TransformContext__ToList(_) {
|
|
|
88
143
|
}
|
|
89
144
|
}
|
|
90
145
|
|
|
146
|
+
export function TransformContext__AddWarning_Z721C83C5(_, warning) {
|
|
147
|
+
void (Reporter__get_Warnings(_.reporter).push(warning));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function TransformContext__AddError_Z721C83C5(_, error) {
|
|
151
|
+
void (Reporter__get_Errors(_.reporter).push(error));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
function mapTypeNameToFableCoreAwareName(context, typeReference) {
|
|
155
|
+
if (typeReference.IsStandardLibrary) {
|
|
156
|
+
const matchValue = typeReference.Name;
|
|
157
|
+
switch (matchValue) {
|
|
158
|
+
case "Date":
|
|
159
|
+
return "JS.Date";
|
|
160
|
+
case "Promise":
|
|
161
|
+
return "JS.Promise";
|
|
162
|
+
case "Uint8Array":
|
|
163
|
+
return "JS.Uint8Array";
|
|
164
|
+
case "ReadonlyArray":
|
|
165
|
+
return "ResizeArray";
|
|
166
|
+
case "Array":
|
|
167
|
+
return "ResizeArray";
|
|
168
|
+
case "Boolean":
|
|
169
|
+
return "bool";
|
|
170
|
+
case "RegExp": {
|
|
171
|
+
TransformContext__ExposeRegExp(context);
|
|
172
|
+
return "RegExp";
|
|
173
|
+
}
|
|
174
|
+
default:
|
|
175
|
+
return matchValue;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
return typeReference.Name;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function unwrapOptionIfAlreadyOptional(context, typ, isOptional) {
|
|
184
|
+
const typ$0027 = transformType(context, typ);
|
|
185
|
+
if (isOptional) {
|
|
186
|
+
if (typ$0027.tag === 2) {
|
|
187
|
+
return typ$0027.fields[0];
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
return typ$0027;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
return typ$0027;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
91
198
|
function sanitizeNameAndPushScope(name, context) {
|
|
92
199
|
const name_1 = sanitizeName(name);
|
|
93
200
|
return [name_1, TransformContext__PushScope_Z721C83C5(context, name_1)];
|
|
@@ -156,7 +263,7 @@ function transformComment(comment) {
|
|
|
156
263
|
Remarks: empty(),
|
|
157
264
|
Throws: empty(),
|
|
158
265
|
}, comment);
|
|
159
|
-
const obsoleteAttributes = map((Item) => (new FSharpAttribute(
|
|
266
|
+
const obsoleteAttributes = map((Item) => (new FSharpAttribute(9, [Item])), categories.Deprecated);
|
|
160
267
|
const remarks = (!isEmpty(categories.Remarks) ? true : !isEmpty(categories.Throws)) ? (new FSharpXmlDoc(3, [join("\n", toList(delay(() => append(categories.Remarks, delay(() => append(!isEmpty(categories.Throws) ? append(!isEmpty(categories.Remarks) ? singleton_1("") : empty_1(), delay(() => append(singleton_1("Throws:"), delay(() => singleton_1("-------"))))) : empty_1(), delay(() => collect((throws) => append(singleton_1(""), delay(() => singleton_1(throws))), categories.Throws))))))))])) : void 0;
|
|
161
268
|
const others = map((comment_2) => {
|
|
162
269
|
switch (comment_2.tag) {
|
|
@@ -249,17 +356,20 @@ function transformTupleType(context, glueTypes) {
|
|
|
249
356
|
}
|
|
250
357
|
|
|
251
358
|
function transformType(context_mut, glueType_mut) {
|
|
359
|
+
let originalInterface;
|
|
252
360
|
transformType:
|
|
253
361
|
while (true) {
|
|
254
362
|
const context = context_mut, glueType = glueType_mut;
|
|
255
363
|
switch (glueType.tag) {
|
|
256
364
|
case 3:
|
|
257
365
|
return new FSharpType(7, [transformPrimitive(glueType.fields[0])]);
|
|
258
|
-
case
|
|
366
|
+
case 27:
|
|
367
|
+
return new FSharpType(7, [new FSharpPrimitive(0, [])]);
|
|
368
|
+
case 24:
|
|
259
369
|
return new FSharpType(2, [transformType(context, glueType.fields[0])]);
|
|
260
|
-
case 18:
|
|
261
|
-
return new FSharpType(14, [glueType.fields[0]]);
|
|
262
370
|
case 19:
|
|
371
|
+
return new FSharpType(14, [glueType.fields[0]]);
|
|
372
|
+
case 20:
|
|
263
373
|
return transformTupleType(context, glueType.fields[0]);
|
|
264
374
|
case 7: {
|
|
265
375
|
const patternInput = partition((glueType_2) => {
|
|
@@ -290,7 +400,8 @@ function transformType(context_mut, glueType_mut) {
|
|
|
290
400
|
else {
|
|
291
401
|
const matchValue = tryOptimizeUnionType(context, TransformContext__get_CurrentScopeName(context), others);
|
|
292
402
|
if (matchValue == null) {
|
|
293
|
-
|
|
403
|
+
const patternInput_1 = sanitizeNameAndPushScope(`U${length(others)}`, context);
|
|
404
|
+
return new FSharpType(1, [new FSharpUnion(empty(), patternInput_1[0], mapIndexed((index, caseType) => (new FSharpUnionCase(1, [transformType(TransformContext__PushScope_Z721C83C5(patternInput_1[1], `Case${index + 1}`), caseType)])), others), isOptional)]);
|
|
294
405
|
}
|
|
295
406
|
else {
|
|
296
407
|
TransformContext__ExposeType_Z1D58A540(context, matchValue);
|
|
@@ -300,31 +411,33 @@ function transformType(context_mut, glueType_mut) {
|
|
|
300
411
|
}
|
|
301
412
|
case 13: {
|
|
302
413
|
const typeReference = glueType.fields[0];
|
|
303
|
-
return new FSharpType(10, [new FSharpTypeReference(mapTypeNameToFableCoreAwareName(typeReference
|
|
414
|
+
return new FSharpType(10, [new FSharpTypeReference(mapTypeNameToFableCoreAwareName(context, typeReference), typeReference.FullName, map((glueType_3) => transformType(context, glueType_3), typeReference.TypeArguments), new FSharpType(7, [new FSharpPrimitive(0, [])]))]);
|
|
304
415
|
}
|
|
305
|
-
case
|
|
416
|
+
case 16:
|
|
306
417
|
return new FSharpType(13, [transformType(context, glueType.fields[0])]);
|
|
307
418
|
case 12: {
|
|
308
419
|
const classDeclaration = glueType.fields[0];
|
|
309
420
|
return new FSharpType(10, [new FSharpTypeReference(classDeclaration.Name, classDeclaration.Name, empty(), new FSharpType(9, []))]);
|
|
310
421
|
}
|
|
311
|
-
case
|
|
422
|
+
case 18:
|
|
312
423
|
return new FSharpType(12, [glueType.fields[0]]);
|
|
313
|
-
case
|
|
424
|
+
case 17: {
|
|
314
425
|
const functionTypeInfo = glueType.fields[0];
|
|
315
|
-
return new FSharpType(15, [new FSharpFunctionType(map((parameter) => transformParameter(context, parameter), functionTypeInfo.Parameters),
|
|
426
|
+
return new FSharpType(15, [new FSharpFunctionType(map((parameter) => transformParameter(context, parameter), functionTypeInfo.Parameters), transformType(context, functionTypeInfo.Type))]);
|
|
316
427
|
}
|
|
317
428
|
case 1:
|
|
318
429
|
return new FSharpType(4, [transformInterface(context, glueType.fields[0])]);
|
|
319
|
-
case
|
|
430
|
+
case 23: {
|
|
320
431
|
const typeLiteralInfo = glueType.fields[0];
|
|
321
432
|
if (forAll((_arg) => {
|
|
322
433
|
switch (_arg.tag) {
|
|
323
|
-
case
|
|
434
|
+
case 6:
|
|
324
435
|
case 1:
|
|
325
436
|
case 2:
|
|
437
|
+
case 3:
|
|
438
|
+
case 4:
|
|
326
439
|
case 0:
|
|
327
|
-
case
|
|
440
|
+
case 7:
|
|
328
441
|
return true;
|
|
329
442
|
default:
|
|
330
443
|
return false;
|
|
@@ -342,14 +455,14 @@ function transformType(context_mut, glueType_mut) {
|
|
|
342
455
|
Compare: comparePrimitives,
|
|
343
456
|
});
|
|
344
457
|
const explicitFields = map((parameter_2) => (new FSharpExplicitField(parameter_2.Name, parameter_2.IsOptional ? (new FSharpType(2, [parameter_2.Type])) : parameter_2.Type)), typeLiteralParameters);
|
|
345
|
-
TransformContext__ExposeType_Z1D58A540(context, new FSharpType(16, [new FSharpClass(ofArray([new FSharpAttribute(
|
|
458
|
+
TransformContext__ExposeType_Z1D58A540(context, new FSharpType(16, [new FSharpClass(ofArray([new FSharpAttribute(17, []), new FSharpAttribute(8, [])]), TransformContext__get_CurrentScopeName(context), empty(), new FSharpConstructor(typeLiteralParameters, ofArray([new FSharpAttribute(18, []), new FSharpAttribute(2, [])]), new FSharpAccessibility(0, [])), empty(), explicitFields)]));
|
|
346
459
|
}
|
|
347
460
|
else {
|
|
348
|
-
TransformContext__ExposeType_Z1D58A540(context, new FSharpType(4, [new FSharpInterface(ofArray([new FSharpAttribute(
|
|
461
|
+
TransformContext__ExposeType_Z1D58A540(context, new FSharpType(4, [new FSharpInterface(ofArray([new FSharpAttribute(8, []), new FSharpAttribute(20, [])]), TransformContext__get_CurrentScopeName(context), "", empty(), TransformMembers_toFSharpMember(context, typeLiteralInfo.Members), empty())]));
|
|
349
462
|
}
|
|
350
463
|
return new FSharpType(10, [new FSharpTypeReference(TransformContext__get_FullName(context), TransformContext__get_FullName(context), empty(), new FSharpType(9, []))]);
|
|
351
464
|
}
|
|
352
|
-
case
|
|
465
|
+
case 26: {
|
|
353
466
|
context_mut = context;
|
|
354
467
|
glueType_mut = glueType.fields[0];
|
|
355
468
|
continue transformType;
|
|
@@ -369,21 +482,56 @@ function transformType(context_mut, glueType_mut) {
|
|
|
369
482
|
return new FSharpType(10, [new FSharpTypeReference(TransformContext__get_FullName(context), TransformContext__get_FullName(context), empty(), new FSharpType(9, []))]);
|
|
370
483
|
}
|
|
371
484
|
}
|
|
372
|
-
case
|
|
485
|
+
case 21: {
|
|
373
486
|
context_mut = context;
|
|
374
487
|
glueType_mut = glueType.fields[0].Type;
|
|
375
488
|
continue transformType;
|
|
376
489
|
}
|
|
377
|
-
case
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
case 5:
|
|
490
|
+
case 14: {
|
|
491
|
+
TransformContext__ExposeType_Z1D58A540(context, new FSharpType(4, [(originalInterface = transformInterface(context, glueType.fields[0]), Interface_makePartial(TransformContext__get_CurrentScopeName(context), originalInterface))]));
|
|
492
|
+
return new FSharpType(10, [new FSharpTypeReference(TransformContext__get_FullName(context), TransformContext__get_FullName(context), empty(), new FSharpType(9, []))]);
|
|
493
|
+
}
|
|
382
494
|
case 0:
|
|
383
|
-
|
|
384
|
-
case
|
|
495
|
+
return new FSharpType(17, []);
|
|
496
|
+
case 8: {
|
|
497
|
+
const glueLiteral = glueType.fields[0];
|
|
498
|
+
switch (glueLiteral.tag) {
|
|
499
|
+
case 1:
|
|
500
|
+
return new FSharpType(7, [new FSharpPrimitive(1, [])]);
|
|
501
|
+
case 2:
|
|
502
|
+
return new FSharpType(7, [new FSharpPrimitive(2, [])]);
|
|
503
|
+
case 3:
|
|
504
|
+
return new FSharpType(7, [new FSharpPrimitive(3, [])]);
|
|
505
|
+
case 4:
|
|
506
|
+
return new FSharpType(7, [new FSharpPrimitive(6, [])]);
|
|
507
|
+
default:
|
|
508
|
+
return new FSharpType(7, [new FSharpPrimitive(0, [])]);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
385
511
|
case 6: {
|
|
386
|
-
|
|
512
|
+
const functionDeclaration = glueType.fields[0];
|
|
513
|
+
return new FSharpType(15, [new FSharpFunctionType(map((parameter_3) => transformParameter(context, parameter_3), functionDeclaration.Parameters), transformType(context, functionDeclaration.Type))]);
|
|
514
|
+
}
|
|
515
|
+
case 22: {
|
|
516
|
+
const members_1 = glueType.fields[0];
|
|
517
|
+
if (isEmpty(members_1)) {
|
|
518
|
+
return new FSharpType(17, []);
|
|
519
|
+
}
|
|
520
|
+
else {
|
|
521
|
+
TransformContext__ExposeType_Z1D58A540(context, new FSharpType(4, [new FSharpInterface(ofArray([new FSharpAttribute(8, []), new FSharpAttribute(20, [])]), TransformContext__get_CurrentScopeName(context), TransformContext__get_CurrentScopeName(context), empty(), TransformMembers_toFSharpMember(context, members_1), empty())]));
|
|
522
|
+
return new FSharpType(6, [new FSharpMapped(TransformContext__get_FullName(context), empty())]);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
case 15: {
|
|
526
|
+
TransformContext__ExposeType_Z1D58A540(context, transformRecord(context, TransformContext__get_CurrentScopeName(context), empty(), glueType.fields[0]));
|
|
527
|
+
return new FSharpType(6, [new FSharpMapped(TransformContext__get_FullName(context), empty())]);
|
|
528
|
+
}
|
|
529
|
+
case 5:
|
|
530
|
+
return new FSharpType(6, [new FSharpMapped(glueType.fields[0].Name, empty())]);
|
|
531
|
+
case 11:
|
|
532
|
+
case 10:
|
|
533
|
+
case 4: {
|
|
534
|
+
TransformContext__AddError_Z721C83C5(context, toText(interpolate("Could not transform type: %A%P()", [glueType])));
|
|
387
535
|
return new FSharpType(9, []);
|
|
388
536
|
}
|
|
389
537
|
default:
|
|
@@ -395,21 +543,21 @@ function transformType(context_mut, glueType_mut) {
|
|
|
395
543
|
|
|
396
544
|
function transformExports(context, isTopLevel, exports) {
|
|
397
545
|
const context_1 = TransformContext__PushScope_Z721C83C5(context, "Exports");
|
|
398
|
-
return new FSharpType(4, [new FSharpInterface(
|
|
546
|
+
return new FSharpType(4, [new FSharpInterface(ofArray([new FSharpAttribute(7, []), new FSharpAttribute(6, [])]), "Exports", "Exports", empty(), collect_1((_arg) => {
|
|
399
547
|
let Attributes_1, Parameters_1;
|
|
400
548
|
switch (_arg.tag) {
|
|
401
549
|
case 2: {
|
|
402
550
|
const info = _arg.fields[0];
|
|
403
551
|
const patternInput = sanitizeNameAndPushScope(info.Name, context_1);
|
|
404
552
|
const xmlDocInfo = transformComment(info.Documentation);
|
|
405
|
-
return singleton(new FSharpMember(1, [new FSharpMemberInfo(toList(delay(() => append(singleton_1(new FSharpAttribute(3, [info.Name, "REPLACE_ME_WITH_MODULE_NAME"])), delay(() => xmlDocInfo.ObsoleteAttributes)))), patternInput[0], info.Name, empty(), empty(), transformType(patternInput[1], info.Type), false, true, void 0, new FSharpAccessibility(0, []), xmlDocInfo.XmlDoc)]));
|
|
553
|
+
return singleton(new FSharpMember(1, [new FSharpMemberInfo(toList(delay(() => append(singleton_1(new FSharpAttribute(3, [info.Name, "REPLACE_ME_WITH_MODULE_NAME"])), delay(() => xmlDocInfo.ObsoleteAttributes)))), patternInput[0], info.Name, empty(), empty(), transformType(patternInput[1], info.Type), false, true, void 0, new FSharpAccessibility(0, []), xmlDocInfo.XmlDoc, new FSharpMemberInfoBody(0, []))]));
|
|
406
554
|
}
|
|
407
555
|
case 6: {
|
|
408
556
|
const info_1 = _arg.fields[0];
|
|
409
557
|
const patternInput_1 = sanitizeNameAndPushScope(info_1.Name, context_1);
|
|
410
558
|
const context_3 = patternInput_1[1];
|
|
411
559
|
const xmlDocInfo_1 = transformComment(info_1.Documentation);
|
|
412
|
-
return singleton(new FSharpMember(0, [(Attributes_1 = toList(delay(() => append(singleton_1(new FSharpAttribute(3, [info_1.Name, "REPLACE_ME_WITH_MODULE_NAME"])), delay(() => xmlDocInfo_1.ObsoleteAttributes)))), (Parameters_1 = map((parameter) => transformParameter(context_3, parameter), info_1.Parameters), new FSharpMemberInfo(Attributes_1, patternInput_1[0], info_1.Name, transformTypeParameters(context_3, info_1.TypeParameters), Parameters_1, transformType(context_3, info_1.Type), false,
|
|
560
|
+
return singleton(new FSharpMember(0, [(Attributes_1 = toList(delay(() => append(isTopLevel ? singleton_1(new FSharpAttribute(3, [info_1.Name, "REPLACE_ME_WITH_MODULE_NAME"])) : singleton_1(new FSharpAttribute(15, [info_1.Name])), delay(() => xmlDocInfo_1.ObsoleteAttributes)))), (Parameters_1 = map((parameter) => transformParameter(context_3, parameter), info_1.Parameters), new FSharpMemberInfo(Attributes_1, patternInput_1[0], info_1.Name, transformTypeParameters(context_3, info_1.TypeParameters), Parameters_1, transformType(context_3, info_1.Type), false, isTopLevel, void 0, new FSharpAccessibility(0, []), xmlDocInfo_1.XmlDoc, new FSharpMemberInfoBody(0, []))))]));
|
|
413
561
|
}
|
|
414
562
|
case 12: {
|
|
415
563
|
const info_2 = _arg.fields[0];
|
|
@@ -418,36 +566,30 @@ function transformExports(context, isTopLevel, exports) {
|
|
|
418
566
|
return map((constructorInfo) => {
|
|
419
567
|
let Attributes_2, Parameters_2;
|
|
420
568
|
const xmlDocInfo_2 = transformComment(constructorInfo.Documentation);
|
|
421
|
-
return new FSharpMember(0, [(Attributes_2 = toList(delay(() => append(isTopLevel ? append(singleton_1(new FSharpAttribute(3, [info_2.Name, "REPLACE_ME_WITH_MODULE_NAME"])), delay(() => singleton_1(new FSharpAttribute(
|
|
569
|
+
return new FSharpMember(0, [(Attributes_2 = toList(delay(() => append(isTopLevel ? append(singleton_1(new FSharpAttribute(3, [info_2.Name, "REPLACE_ME_WITH_MODULE_NAME"])), delay(() => singleton_1(new FSharpAttribute(13, [])))) : singleton_1(new FSharpAttribute(14, [info_2.Name])), delay(() => xmlDocInfo_2.ObsoleteAttributes)))), (Parameters_2 = map((parameter_1) => transformParameter(context_4, parameter_1), constructorInfo.Parameters), new FSharpMemberInfo(Attributes_2, patternInput_2[0], info_2.Name, transformTypeParameters(context_4, info_2.TypeParameters), Parameters_2, new FSharpType(6, [new FSharpMapped(sanitizeName(info_2.Name), transformTypeParameters(context_4, info_2.TypeParameters))]), false, isTopLevel, void 0, new FSharpAccessibility(0, []), xmlDocInfo_2.XmlDoc, new FSharpMemberInfoBody(0, []))))]);
|
|
422
570
|
}, isEmpty(info_2.Constructors) ? singleton(new GlueConstructor(empty(), empty())) : info_2.Constructors);
|
|
423
571
|
}
|
|
424
572
|
case 11: {
|
|
425
573
|
const moduleDeclaration = _arg.fields[0];
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
return new FSharpMember(1, [new FSharpMemberInfo(singleton(new FSharpAttribute(4, ["REPLACE_ME_WITH_MODULE_NAME"])), moduleDeclaration.Name + "_", moduleDeclaration.Name, empty(), empty(), new FSharpType(6, [new FSharpMapped(`${moduleDeclaration.Name}.Exports`, empty())]), false, true, new FSharpAccessor(0, []), new FSharpAccessibility(0, []), empty())]);
|
|
429
|
-
}
|
|
430
|
-
else {
|
|
431
|
-
return void 0;
|
|
432
|
-
}
|
|
433
|
-
}, moduleDeclaration.Types);
|
|
574
|
+
const sanitizedName = sanitizeName(moduleDeclaration.Name);
|
|
575
|
+
return singleton(new FSharpMember(1, [new FSharpMemberInfo(ofArray([new FSharpAttribute(4, ["REPLACE_ME_WITH_MODULE_NAME"]), new FSharpAttribute(0, [`Emit("$0.${removeSurroundingQuotes(moduleDeclaration.Name)}")`])]), sanitizedName + "_", `${moduleDeclaration.Name}.Exports`, empty(), empty(), new FSharpType(6, [new FSharpMapped(`${sanitizedName}.Exports`, empty())]), false, isTopLevel, new FSharpAccessor(0, []), new FSharpAccessibility(0, []), empty(), new FSharpMemberInfoBody(0, []))]));
|
|
434
576
|
}
|
|
435
|
-
case
|
|
577
|
+
case 26: {
|
|
436
578
|
const glueType = _arg.fields[0];
|
|
437
579
|
const patternInput_3 = sanitizeNameAndPushScope(GlueType__get_Name(glueType), context_1);
|
|
438
|
-
return singleton(new FSharpMember(1, [new FSharpMemberInfo(singleton(new FSharpAttribute(5, ["REPLACE_ME_WITH_MODULE_NAME"])), patternInput_3[0], GlueType__get_Name(glueType), empty(), empty(), transformType(patternInput_3[1], glueType), false, true, void 0, new FSharpAccessibility(0, []), empty())]));
|
|
580
|
+
return singleton(new FSharpMember(1, [new FSharpMemberInfo(singleton(new FSharpAttribute(5, ["REPLACE_ME_WITH_MODULE_NAME"])), patternInput_3[0], GlueType__get_Name(glueType), empty(), empty(), transformType(patternInput_3[1], glueType), false, true, void 0, new FSharpAccessibility(0, []), empty(), new FSharpMemberInfoBody(0, []))]));
|
|
439
581
|
}
|
|
440
582
|
default:
|
|
441
583
|
return toFail(printf("Could not generate exportMembers for: %A"))(_arg);
|
|
442
584
|
}
|
|
443
|
-
}, exports))]);
|
|
585
|
+
}, exports), empty())]);
|
|
444
586
|
}
|
|
445
587
|
|
|
446
588
|
function transformParameter(context, parameter) {
|
|
447
589
|
let typ;
|
|
448
|
-
const computedType =
|
|
590
|
+
const computedType = unwrapOptionIfAlreadyOptional(TransformContext__PushScope_Z721C83C5(context, parameter.Name), parameter.Type, parameter.IsOptional);
|
|
449
591
|
typ = (parameter.IsSpread ? ((computedType.tag === 13) ? computedType.fields[0] : computedType) : computedType);
|
|
450
|
-
return new FSharpParameter(toList(delay(() => (parameter.IsSpread ? singleton_1(new FSharpAttribute(
|
|
592
|
+
return new FSharpParameter(toList(delay(() => (parameter.IsSpread ? singleton_1(new FSharpAttribute(19, [])) : empty_1()))), sanitizeName(parameter.Name), parameter.IsOptional, typ);
|
|
451
593
|
}
|
|
452
594
|
|
|
453
595
|
function transformAccessor(accessor) {
|
|
@@ -462,49 +604,58 @@ function transformAccessor(accessor) {
|
|
|
462
604
|
}
|
|
463
605
|
|
|
464
606
|
function TransformMembers_toFSharpMember(context, members) {
|
|
465
|
-
return choose((
|
|
466
|
-
switch (
|
|
467
|
-
case
|
|
468
|
-
const callSignatureInfo =
|
|
607
|
+
return choose((_arg_3) => {
|
|
608
|
+
switch (_arg_3.tag) {
|
|
609
|
+
case 4: {
|
|
610
|
+
const callSignatureInfo = _arg_3.fields[0];
|
|
469
611
|
const patternInput_1 = sanitizeNameAndPushScope("Invoke", context);
|
|
470
612
|
const context_2 = patternInput_1[1];
|
|
471
|
-
return new FSharpMember(0, [new FSharpMemberInfo(singleton(new FSharpAttribute(1, [])), patternInput_1[0], "Invoke", empty(), map((parameter_2) => transformParameter(context_2, parameter_2), callSignatureInfo.Parameters), transformType(context_2, callSignatureInfo.Type), false, false, void 0, new FSharpAccessibility(0, []), empty())]);
|
|
613
|
+
return new FSharpMember(0, [new FSharpMemberInfo(singleton(new FSharpAttribute(1, [])), patternInput_1[0], "Invoke", empty(), map((parameter_2) => transformParameter(context_2, parameter_2), callSignatureInfo.Parameters), transformType(context_2, callSignatureInfo.Type), false, false, void 0, new FSharpAccessibility(0, []), empty(), new FSharpMemberInfoBody(0, []))]);
|
|
472
614
|
}
|
|
473
615
|
case 1: {
|
|
474
|
-
const propertyInfo =
|
|
616
|
+
const propertyInfo = _arg_3.fields[0];
|
|
475
617
|
const patternInput_2 = sanitizeNameAndPushScope(propertyInfo.Name, context);
|
|
476
618
|
const xmlDocInfo = transformComment(propertyInfo.Documentation);
|
|
477
619
|
if (propertyInfo.IsPrivate && !propertyInfo.IsStatic) {
|
|
478
620
|
return void 0;
|
|
479
621
|
}
|
|
480
622
|
else {
|
|
481
|
-
|
|
482
|
-
const typ$0027 = transformType(patternInput_2[1], propertyInfo.Type);
|
|
483
|
-
typ = (propertyInfo.IsOptional ? ((typ$0027.tag === 2) ? typ$0027.fields[0] : typ$0027) : typ$0027);
|
|
484
|
-
return new FSharpMember(1, [new FSharpMemberInfo(toList(delay(() => xmlDocInfo.ObsoleteAttributes)), patternInput_2[0], propertyInfo.Name, empty(), empty(), typ, propertyInfo.IsOptional, propertyInfo.IsStatic, transformAccessor(propertyInfo.Accessor), propertyInfo.IsPrivate ? (new FSharpAccessibility(1, [])) : (new FSharpAccessibility(0, [])), xmlDocInfo.XmlDoc)]);
|
|
623
|
+
return new FSharpMember(1, [new FSharpMemberInfo(toList(delay(() => xmlDocInfo.ObsoleteAttributes)), patternInput_2[0], propertyInfo.Name, empty(), empty(), unwrapOptionIfAlreadyOptional(patternInput_2[1], propertyInfo.Type, propertyInfo.IsOptional), propertyInfo.IsOptional, propertyInfo.IsStatic, transformAccessor(propertyInfo.Accessor), propertyInfo.IsPrivate ? (new FSharpAccessibility(1, [])) : (new FSharpAccessibility(0, [])), xmlDocInfo.XmlDoc, new FSharpMemberInfoBody(1, []))]);
|
|
485
624
|
}
|
|
486
625
|
}
|
|
487
|
-
case
|
|
488
|
-
const
|
|
489
|
-
const patternInput_3 = sanitizeNameAndPushScope(
|
|
490
|
-
const
|
|
491
|
-
return new FSharpMember(1, [new FSharpMemberInfo(
|
|
626
|
+
case 2: {
|
|
627
|
+
const getAccessorInfo_1 = _arg_3.fields[0];
|
|
628
|
+
const patternInput_3 = sanitizeNameAndPushScope(getAccessorInfo_1.Name, context);
|
|
629
|
+
const xmlDocInfo_1 = transformComment(getAccessorInfo_1.Documentation);
|
|
630
|
+
return new FSharpMember(1, [new FSharpMemberInfo(toList(delay(() => xmlDocInfo_1.ObsoleteAttributes)), patternInput_3[0], getAccessorInfo_1.Name, empty(), empty(), transformType(patternInput_3[1], getAccessorInfo_1.Type), false, getAccessorInfo_1.IsStatic, new FSharpAccessor(0, []), new FSharpAccessibility(0, []), xmlDocInfo_1.XmlDoc, new FSharpMemberInfoBody(0, []))]);
|
|
492
631
|
}
|
|
493
|
-
case
|
|
494
|
-
const
|
|
495
|
-
const patternInput_4 = sanitizeNameAndPushScope(
|
|
496
|
-
const
|
|
497
|
-
|
|
498
|
-
return new FSharpMember(0, [new FSharpMemberInfo(toList(delay(() => xmlDocInfo_1.ObsoleteAttributes)), patternInput_4[0], methodSignature.Name, empty(), map((parameter_4) => transformParameter(context_5, parameter_4), methodSignature.Parameters), transformType(context_5, methodSignature.Type), false, false, void 0, new FSharpAccessibility(0, []), xmlDocInfo_1.XmlDoc)]);
|
|
632
|
+
case 3: {
|
|
633
|
+
const setAccessorInfo_1 = _arg_3.fields[0];
|
|
634
|
+
const patternInput_4 = sanitizeNameAndPushScope(setAccessorInfo_1.Name, context);
|
|
635
|
+
const xmlDocInfo_2 = transformComment(setAccessorInfo_1.Documentation);
|
|
636
|
+
return new FSharpMember(1, [new FSharpMemberInfo(toList(delay(() => xmlDocInfo_2.ObsoleteAttributes)), patternInput_4[0], setAccessorInfo_1.Name, empty(), empty(), transformType(patternInput_4[1], setAccessorInfo_1.ArgumentType), false, setAccessorInfo_1.IsStatic, new FSharpAccessor(1, []), new FSharpAccessibility(0, []), xmlDocInfo_2.XmlDoc, new FSharpMemberInfoBody(0, []))]);
|
|
499
637
|
}
|
|
500
638
|
case 5: {
|
|
501
|
-
const
|
|
502
|
-
const patternInput_5 = sanitizeNameAndPushScope("
|
|
639
|
+
const indexSignature = _arg_3.fields[0];
|
|
640
|
+
const patternInput_5 = sanitizeNameAndPushScope("Item", context);
|
|
503
641
|
const context_6 = patternInput_5[1];
|
|
504
|
-
return new FSharpMember(
|
|
642
|
+
return new FSharpMember(1, [new FSharpMemberInfo(singleton(new FSharpAttribute(16, [])), patternInput_5[0], "Item", empty(), map((parameter_3) => transformParameter(context_6, parameter_3), indexSignature.Parameters), transformType(context_6, indexSignature.Type), false, false, new FSharpAccessor(2, []), new FSharpAccessibility(0, []), empty(), new FSharpMemberInfoBody(0, []))]);
|
|
643
|
+
}
|
|
644
|
+
case 6: {
|
|
645
|
+
const methodSignature = _arg_3.fields[0];
|
|
646
|
+
const patternInput_6 = sanitizeNameAndPushScope(methodSignature.Name, context);
|
|
647
|
+
const context_7 = patternInput_6[1];
|
|
648
|
+
const xmlDocInfo_3 = transformComment(methodSignature.Documentation);
|
|
649
|
+
return new FSharpMember(0, [new FSharpMemberInfo(toList(delay(() => xmlDocInfo_3.ObsoleteAttributes)), patternInput_6[0], methodSignature.Name, empty(), map((parameter_4) => transformParameter(context_7, parameter_4), methodSignature.Parameters), transformType(context_7, methodSignature.Type), false, false, void 0, new FSharpAccessibility(0, []), xmlDocInfo_3.XmlDoc, new FSharpMemberInfoBody(0, []))]);
|
|
650
|
+
}
|
|
651
|
+
case 7: {
|
|
652
|
+
const constructSignature = _arg_3.fields[0];
|
|
653
|
+
const patternInput_7 = sanitizeNameAndPushScope("Create", context);
|
|
654
|
+
const context_8 = patternInput_7[1];
|
|
655
|
+
return new FSharpMember(0, [new FSharpMemberInfo(singleton(new FSharpAttribute(13, [])), patternInput_7[0], "Create", empty(), map((parameter_5) => transformParameter(context_8, parameter_5), constructSignature.Parameters), transformType(context_8, constructSignature.Type), false, false, void 0, new FSharpAccessibility(0, []), empty(), new FSharpMemberInfoBody(0, []))]);
|
|
505
656
|
}
|
|
506
657
|
default: {
|
|
507
|
-
const methodInfo =
|
|
658
|
+
const methodInfo = _arg_3.fields[0];
|
|
508
659
|
const patternInput = sanitizeNameAndPushScope(methodInfo.Name, context);
|
|
509
660
|
const name = patternInput[0];
|
|
510
661
|
const context_1 = patternInput[1];
|
|
@@ -512,11 +663,59 @@ function TransformMembers_toFSharpMember(context, members) {
|
|
|
512
663
|
return new FSharpMember(2, [new FSharpStaticMemberInfo(empty(), name, methodInfo.Name, empty(), map((parameter) => transformParameter(context_1, parameter), methodInfo.Parameters), transformType(context_1, methodInfo.Type), methodInfo.IsOptional, void 0, new FSharpAccessibility(0, []))]);
|
|
513
664
|
}
|
|
514
665
|
else {
|
|
515
|
-
return new FSharpMember(0, [new FSharpMemberInfo(empty(), name, methodInfo.Name, empty(), map((parameter_1) => transformParameter(context_1, parameter_1), methodInfo.Parameters), transformType(context_1, methodInfo.Type), methodInfo.IsOptional, methodInfo.IsStatic, void 0, new FSharpAccessibility(0, []), empty())]);
|
|
666
|
+
return new FSharpMember(0, [new FSharpMemberInfo(empty(), name, methodInfo.Name, empty(), map((parameter_1) => transformParameter(context_1, parameter_1), methodInfo.Parameters), transformType(context_1, methodInfo.Type), methodInfo.IsOptional, methodInfo.IsStatic, void 0, new FSharpAccessibility(0, []), empty(), new FSharpMemberInfoBody(0, []))]);
|
|
516
667
|
}
|
|
517
668
|
}
|
|
518
669
|
}
|
|
519
|
-
},
|
|
670
|
+
}, choose((_arg) => {
|
|
671
|
+
switch (_arg.tag) {
|
|
672
|
+
case 3: {
|
|
673
|
+
const associatedGetAccessor = tryFind((_arg_2) => {
|
|
674
|
+
if (_arg_2.tag === 2) {
|
|
675
|
+
return _arg.fields[0].Name === _arg_2.fields[0].Name;
|
|
676
|
+
}
|
|
677
|
+
else {
|
|
678
|
+
return false;
|
|
679
|
+
}
|
|
680
|
+
}, members);
|
|
681
|
+
if (associatedGetAccessor == null) {
|
|
682
|
+
return _arg;
|
|
683
|
+
}
|
|
684
|
+
else {
|
|
685
|
+
return void 0;
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
case 4:
|
|
689
|
+
return _arg;
|
|
690
|
+
case 0:
|
|
691
|
+
return _arg;
|
|
692
|
+
case 1:
|
|
693
|
+
return _arg;
|
|
694
|
+
case 5:
|
|
695
|
+
return _arg;
|
|
696
|
+
case 6:
|
|
697
|
+
return _arg;
|
|
698
|
+
case 7:
|
|
699
|
+
return _arg;
|
|
700
|
+
default: {
|
|
701
|
+
const getAccessorInfo = _arg.fields[0];
|
|
702
|
+
const associatedSetAccessor = tryFind((_arg_1) => {
|
|
703
|
+
if (_arg_1.tag === 3) {
|
|
704
|
+
return getAccessorInfo.Name === _arg_1.fields[0].Name;
|
|
705
|
+
}
|
|
706
|
+
else {
|
|
707
|
+
return false;
|
|
708
|
+
}
|
|
709
|
+
}, members);
|
|
710
|
+
if (associatedSetAccessor == null) {
|
|
711
|
+
return _arg;
|
|
712
|
+
}
|
|
713
|
+
else {
|
|
714
|
+
return new GlueMember(1, [new GlueProperty(getAccessorInfo.Name, getAccessorInfo.Documentation, getAccessorInfo.Type, getAccessorInfo.IsStatic, false, new GlueAccessor(2, []), getAccessorInfo.IsPrivate)]);
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
}, members));
|
|
520
719
|
}
|
|
521
720
|
|
|
522
721
|
function TransformMembers_toFSharpParameters(context, members) {
|
|
@@ -527,22 +726,32 @@ function TransformMembers_toFSharpParameters(context, members) {
|
|
|
527
726
|
const patternInput_1 = sanitizeNameAndPushScope(propertyInfo.Name, context);
|
|
528
727
|
return new FSharpParameter(empty(), patternInput_1[0], propertyInfo.IsOptional, transformType(patternInput_1[1], propertyInfo.Type));
|
|
529
728
|
}
|
|
729
|
+
case 2: {
|
|
730
|
+
const getAccessorInfo = _arg.fields[0];
|
|
731
|
+
const patternInput_2 = sanitizeNameAndPushScope(getAccessorInfo.Name, context);
|
|
732
|
+
return new FSharpParameter(empty(), patternInput_2[0], false, transformType(patternInput_2[1], getAccessorInfo.Type));
|
|
733
|
+
}
|
|
530
734
|
case 3: {
|
|
531
|
-
const
|
|
532
|
-
|
|
735
|
+
const setAccessorInfo = _arg.fields[0];
|
|
736
|
+
const patternInput_3 = sanitizeNameAndPushScope(setAccessorInfo.Name, context);
|
|
737
|
+
return new FSharpParameter(empty(), patternInput_3[0], false, transformType(patternInput_3[1], setAccessorInfo.ArgumentType));
|
|
533
738
|
}
|
|
534
|
-
case
|
|
739
|
+
case 5: {
|
|
740
|
+
const patternInput_4 = sanitizeNameAndPushScope("Item", context);
|
|
741
|
+
return new FSharpParameter(empty(), patternInput_4[0], false, transformType(patternInput_4[1], _arg.fields[0].Type));
|
|
742
|
+
}
|
|
743
|
+
case 6: {
|
|
535
744
|
const methodSignature = _arg.fields[0];
|
|
536
|
-
const
|
|
537
|
-
return new FSharpParameter(empty(),
|
|
745
|
+
const patternInput_5 = sanitizeNameAndPushScope(methodSignature.Name, context);
|
|
746
|
+
return new FSharpParameter(empty(), patternInput_5[0], false, transformType(patternInput_5[1], methodSignature.Type));
|
|
538
747
|
}
|
|
539
|
-
case
|
|
540
|
-
const
|
|
541
|
-
return new FSharpParameter(empty(),
|
|
748
|
+
case 4: {
|
|
749
|
+
const patternInput_6 = sanitizeNameAndPushScope("Invoke", context);
|
|
750
|
+
return new FSharpParameter(empty(), patternInput_6[0], false, transformType(patternInput_6[1], _arg.fields[0].Type));
|
|
542
751
|
}
|
|
543
|
-
case
|
|
544
|
-
const
|
|
545
|
-
return new FSharpParameter(empty(),
|
|
752
|
+
case 7: {
|
|
753
|
+
const patternInput_7 = sanitizeNameAndPushScope("Create", context);
|
|
754
|
+
return new FSharpParameter(empty(), patternInput_7[0], false, transformType(patternInput_7[1], _arg.fields[0].Type));
|
|
546
755
|
}
|
|
547
756
|
default: {
|
|
548
757
|
const methodInfo = _arg.fields[0];
|
|
@@ -557,7 +766,26 @@ function transformInterface(context, info) {
|
|
|
557
766
|
const patternInput = sanitizeNameAndPushScope(info.Name, context);
|
|
558
767
|
const context_1 = patternInput[1];
|
|
559
768
|
const Members = TransformMembers_toFSharpMember(context_1, info.Members);
|
|
560
|
-
return new FSharpInterface(ofArray([new FSharpAttribute(
|
|
769
|
+
return new FSharpInterface(ofArray([new FSharpAttribute(8, []), new FSharpAttribute(20, [])]), patternInput[0], info.Name, transformTypeParameters(context_1, info.TypeParameters), Members, map((glueType) => transformType(context_1, glueType), info.HeritageClauses));
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
export function Interface_makePartial(name, originalInterface) {
|
|
773
|
+
return new FSharpInterface(originalInterface.Attributes, name, originalInterface.OriginalName, originalInterface.TypeParameters, map((m) => {
|
|
774
|
+
switch (m.tag) {
|
|
775
|
+
case 1: {
|
|
776
|
+
const property = m.fields[0];
|
|
777
|
+
return new FSharpMember(1, [new FSharpMemberInfo(property.Attributes, property.Name, property.OriginalName, property.TypeParameters, property.Parameters, property.Type, true, property.IsStatic, property.Accessor, property.Accessibility, property.XmlDoc, property.Body)]);
|
|
778
|
+
}
|
|
779
|
+
case 2: {
|
|
780
|
+
const staticMember = m.fields[0];
|
|
781
|
+
return new FSharpMember(2, [new FSharpStaticMemberInfo(staticMember.Attributes, staticMember.Name, staticMember.OriginalName, staticMember.TypeParameters, staticMember.Parameters, staticMember.Type, true, staticMember.Accessor, staticMember.Accessibility)]);
|
|
782
|
+
}
|
|
783
|
+
default: {
|
|
784
|
+
const method = m.fields[0];
|
|
785
|
+
return new FSharpMember(0, [new FSharpMemberInfo(method.Attributes, method.Name, method.OriginalName, method.TypeParameters, method.Parameters, method.Type, true, method.IsStatic, method.Accessor, method.Accessibility, method.XmlDoc, method.Body)]);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
}, originalInterface.Members), originalInterface.Inheritance);
|
|
561
789
|
}
|
|
562
790
|
|
|
563
791
|
function transformEnum(glueEnum) {
|
|
@@ -585,7 +813,7 @@ function transformEnum(glueEnum) {
|
|
|
585
813
|
throw new Error(`Empty enum: ${glueEnum.Name}`);
|
|
586
814
|
}
|
|
587
815
|
else {
|
|
588
|
-
return new FSharpType(1, [new FSharpUnion(ofArray([new FSharpAttribute(
|
|
816
|
+
return new FSharpType(1, [new FSharpUnion(ofArray([new FSharpAttribute(12, []), new FSharpAttribute(10, [0])]), sanitizeName(glueEnum.Name), List_distinct(map((glueMember_1) => {
|
|
589
817
|
let caseValue;
|
|
590
818
|
const matchValue_3 = glueMember_1.Value;
|
|
591
819
|
if (matchValue_3.tag === 0) {
|
|
@@ -595,7 +823,7 @@ function transformEnum(glueEnum) {
|
|
|
595
823
|
throw new Error("Should not happen");
|
|
596
824
|
}
|
|
597
825
|
const caseName = sanitizeName(glueMember_1.Name);
|
|
598
|
-
return new FSharpUnionCase(toList(delay(() => ((caseName !== caseValue) ? singleton_1(new FSharpAttribute(
|
|
826
|
+
return new FSharpUnionCase(0, [new FSharpUnionCaseNamed(toList(delay(() => ((caseName !== caseValue) ? singleton_1(new FSharpAttribute(11, [removeSurroundingQuotes(caseValue)])) : empty_1()))), caseName)]);
|
|
599
827
|
}, stringValues), {
|
|
600
828
|
Equals: equals,
|
|
601
829
|
GetHashCode: safeHash,
|
|
@@ -618,16 +846,15 @@ Errored enum: ${glueEnum.Name}
|
|
|
618
846
|
|
|
619
847
|
export function TypeAliasDeclaration_tryTransformKeyOf(aliasName, glueType) {
|
|
620
848
|
const cases = (glueType.tag === 1) ? choose((m) => {
|
|
621
|
-
let sanitizeResult;
|
|
622
849
|
let matchResult, caseName;
|
|
623
850
|
switch (m.tag) {
|
|
624
|
-
case
|
|
625
|
-
case
|
|
626
|
-
case
|
|
851
|
+
case 4:
|
|
852
|
+
case 7:
|
|
853
|
+
case 5: {
|
|
627
854
|
matchResult = 1;
|
|
628
855
|
break;
|
|
629
856
|
}
|
|
630
|
-
case
|
|
857
|
+
case 6: {
|
|
631
858
|
matchResult = 0;
|
|
632
859
|
caseName = m.fields[0].Name;
|
|
633
860
|
break;
|
|
@@ -637,14 +864,26 @@ export function TypeAliasDeclaration_tryTransformKeyOf(aliasName, glueType) {
|
|
|
637
864
|
caseName = m.fields[0].Name;
|
|
638
865
|
break;
|
|
639
866
|
}
|
|
867
|
+
case 2: {
|
|
868
|
+
matchResult = 0;
|
|
869
|
+
caseName = m.fields[0].Name;
|
|
870
|
+
break;
|
|
871
|
+
}
|
|
872
|
+
case 3: {
|
|
873
|
+
matchResult = 0;
|
|
874
|
+
caseName = m.fields[0].Name;
|
|
875
|
+
break;
|
|
876
|
+
}
|
|
640
877
|
default: {
|
|
641
878
|
matchResult = 0;
|
|
642
879
|
caseName = m.fields[0].Name;
|
|
643
880
|
}
|
|
644
881
|
}
|
|
645
882
|
switch (matchResult) {
|
|
646
|
-
case 0:
|
|
647
|
-
|
|
883
|
+
case 0: {
|
|
884
|
+
const sanitizeResult = sanitizeNameWithResult(caseName);
|
|
885
|
+
return new FSharpUnionCase(0, [new FSharpUnionCaseNamed(toList(delay(() => (sanitizeResult.IsDifferent ? singleton_1(new FSharpAttribute(11, [removeSurroundingQuotes(caseName)])) : empty_1()))), sanitizeResult.Name)]);
|
|
886
|
+
}
|
|
648
887
|
default:
|
|
649
888
|
return void 0;
|
|
650
889
|
}
|
|
@@ -653,14 +892,14 @@ export function TypeAliasDeclaration_tryTransformKeyOf(aliasName, glueType) {
|
|
|
653
892
|
return void 0;
|
|
654
893
|
}
|
|
655
894
|
else {
|
|
656
|
-
return new FSharpType(1, [new FSharpUnion(ofArray([new FSharpAttribute(
|
|
895
|
+
return new FSharpType(1, [new FSharpUnion(ofArray([new FSharpAttribute(12, []), new FSharpAttribute(10, [0])]), sanitizeName(aliasName), cases, false)]);
|
|
657
896
|
}
|
|
658
897
|
}
|
|
659
898
|
|
|
660
|
-
export function TypeAliasDeclaration_transformKeyOf(aliasName, glueType) {
|
|
899
|
+
export function TypeAliasDeclaration_transformKeyOf(context, aliasName, glueType) {
|
|
661
900
|
const matchValue = TypeAliasDeclaration_tryTransformKeyOf(aliasName, glueType);
|
|
662
901
|
if (matchValue == null) {
|
|
663
|
-
|
|
902
|
+
TransformContext__AddWarning_Z721C83C5(context, `Could not transform KeyOf: ${aliasName}`);
|
|
664
903
|
return new FSharpType(9, []);
|
|
665
904
|
}
|
|
666
905
|
else {
|
|
@@ -680,12 +919,30 @@ export function TypeAliasDeclaration_transformLiteral(xmlDoc, typeAliasName, lit
|
|
|
680
919
|
case 4:
|
|
681
920
|
return makeTypeAlias(new FSharpPrimitive(6, []));
|
|
682
921
|
default:
|
|
683
|
-
return new FSharpType(1, [new FSharpUnion(ofArray([new FSharpAttribute(
|
|
922
|
+
return new FSharpType(1, [new FSharpUnion(ofArray([new FSharpAttribute(12, []), new FSharpAttribute(10, [0])]), typeAliasName, singleton(new FSharpUnionCase(0, [new FSharpUnionCaseNamed(empty(), sanitizeName(literalInfo.fields[0]))])), false)]);
|
|
684
923
|
}
|
|
685
924
|
}
|
|
686
925
|
|
|
926
|
+
function transformRecord(context, name, typeParameters, recordInfo) {
|
|
927
|
+
const patternInput = sanitizeNameAndPushScope(name, context);
|
|
928
|
+
const name_1 = patternInput[0];
|
|
929
|
+
const context_1 = patternInput[1];
|
|
930
|
+
let parameters;
|
|
931
|
+
const patternInput_1 = sanitizeNameAndPushScope("key", context_1);
|
|
932
|
+
parameters = singleton(new FSharpParameter(empty(), patternInput_1[0], false, transformType(patternInput_1[1], recordInfo.KeyType)));
|
|
933
|
+
return new FSharpType(4, [new FSharpInterface(ofArray([new FSharpAttribute(8, []), new FSharpAttribute(20, [])]), name_1, name_1, transformTypeParameters(context_1, typeParameters), singleton(new FSharpMember(1, [new FSharpMemberInfo(singleton(new FSharpAttribute(16, [])), "Item", "Item", empty(), parameters, transformType(context_1, recordInfo.ValueType), false, false, new FSharpAccessor(2, []), new FSharpAccessibility(0, []), empty(), new FSharpMemberInfoBody(0, []))])), empty())]);
|
|
934
|
+
}
|
|
935
|
+
|
|
687
936
|
function transformTypeParameters(context, typeParameters) {
|
|
688
|
-
return map((typeParameter) => FSharpTypeParameter_Create_Z6CFD3565(typeParameter.Name, unwrap(
|
|
937
|
+
return map((typeParameter) => FSharpTypeParameter_Create_Z6CFD3565(typeParameter.Name, unwrap(bind((glueType) => {
|
|
938
|
+
const matchValue = transformType(context, glueType);
|
|
939
|
+
if (matchValue.tag === 15) {
|
|
940
|
+
return void 0;
|
|
941
|
+
}
|
|
942
|
+
else {
|
|
943
|
+
return matchValue;
|
|
944
|
+
}
|
|
945
|
+
}, typeParameter.Constraint)), unwrap(map_1((glueType_1) => transformType(context, glueType_1), typeParameter.Default))), typeParameters);
|
|
689
946
|
}
|
|
690
947
|
|
|
691
948
|
function tryOptimizeUnionType(context, typeName, cases) {
|
|
@@ -750,7 +1007,7 @@ function tryOptimizeUnionType(context, typeName, cases) {
|
|
|
750
1007
|
}
|
|
751
1008
|
}, flattenedCases);
|
|
752
1009
|
if (isStringOnly) {
|
|
753
|
-
return new FSharpType(1, [new FSharpUnion(ofArray([new FSharpAttribute(
|
|
1010
|
+
return new FSharpType(1, [new FSharpUnion(ofArray([new FSharpAttribute(12, []), new FSharpAttribute(10, [0])]), typeName, List_distinct(map((value) => {
|
|
754
1011
|
let matchResult_2, value_1;
|
|
755
1012
|
if (value.tag === 8) {
|
|
756
1013
|
if (value.fields[0].tag === 0) {
|
|
@@ -767,7 +1024,7 @@ function tryOptimizeUnionType(context, typeName, cases) {
|
|
|
767
1024
|
switch (matchResult_2) {
|
|
768
1025
|
case 0: {
|
|
769
1026
|
const sanitizeResult = sanitizeNameWithResult(value_1);
|
|
770
|
-
return new FSharpUnionCase(toList(delay(() => (sanitizeResult.IsDifferent ? singleton_1(new FSharpAttribute(
|
|
1027
|
+
return new FSharpUnionCase(0, [new FSharpUnionCaseNamed(toList(delay(() => (sanitizeResult.IsDifferent ? singleton_1(new FSharpAttribute(11, [removeSurroundingQuotes(value_1)])) : empty_1()))), sanitizeResult.Name)]);
|
|
771
1028
|
}
|
|
772
1029
|
default:
|
|
773
1030
|
throw new Error("Should not happen");
|
|
@@ -804,7 +1061,7 @@ function tryOptimizeUnionType(context, typeName, cases) {
|
|
|
804
1061
|
}))]);
|
|
805
1062
|
}
|
|
806
1063
|
else if (forAll((_arg_3) => {
|
|
807
|
-
if (_arg_3.tag ===
|
|
1064
|
+
if (_arg_3.tag === 23) {
|
|
808
1065
|
return true;
|
|
809
1066
|
}
|
|
810
1067
|
else {
|
|
@@ -812,14 +1069,14 @@ function tryOptimizeUnionType(context, typeName, cases) {
|
|
|
812
1069
|
}
|
|
813
1070
|
}, cases)) {
|
|
814
1071
|
const members = collect_1((_arg_4) => {
|
|
815
|
-
if (_arg_4.tag ===
|
|
1072
|
+
if (_arg_4.tag === 23) {
|
|
816
1073
|
return TransformMembers_toFSharpMember(context, _arg_4.fields[0].Members);
|
|
817
1074
|
}
|
|
818
1075
|
else {
|
|
819
1076
|
return empty();
|
|
820
1077
|
}
|
|
821
1078
|
}, cases);
|
|
822
|
-
return new FSharpType(4, [new FSharpInterface(ofArray([new FSharpAttribute(
|
|
1079
|
+
return new FSharpType(4, [new FSharpInterface(ofArray([new FSharpAttribute(8, []), new FSharpAttribute(20, [])]), typeName, TransformContext__get_CurrentScopeName(context), empty(), members, empty())]);
|
|
823
1080
|
}
|
|
824
1081
|
else {
|
|
825
1082
|
return void 0;
|
|
@@ -834,7 +1091,7 @@ function transformTypeAliasDeclaration(context, glueTypeAliasDeclaration) {
|
|
|
834
1091
|
const matchValue = glueTypeAliasDeclaration.Type;
|
|
835
1092
|
switch (matchValue.tag) {
|
|
836
1093
|
case 9:
|
|
837
|
-
return TypeAliasDeclaration_transformKeyOf(glueTypeAliasDeclaration.Name, matchValue.fields[0]);
|
|
1094
|
+
return TypeAliasDeclaration_transformKeyOf(context_1, glueTypeAliasDeclaration.Name, matchValue.fields[0]);
|
|
838
1095
|
case 10: {
|
|
839
1096
|
const glueType_1 = matchValue.fields[0];
|
|
840
1097
|
let typ_2;
|
|
@@ -851,15 +1108,23 @@ function transformTypeAliasDeclaration(context, glueTypeAliasDeclaration) {
|
|
|
851
1108
|
typ_1 = m.fields[0].Type;
|
|
852
1109
|
break;
|
|
853
1110
|
}
|
|
854
|
-
case
|
|
855
|
-
typ_1 = m.fields[0].
|
|
1111
|
+
case 3: {
|
|
1112
|
+
typ_1 = m.fields[0].ArgumentType;
|
|
856
1113
|
break;
|
|
857
1114
|
}
|
|
858
1115
|
case 4: {
|
|
859
1116
|
typ_1 = m.fields[0].Type;
|
|
860
1117
|
break;
|
|
861
1118
|
}
|
|
862
|
-
case
|
|
1119
|
+
case 7: {
|
|
1120
|
+
typ_1 = m.fields[0].Type;
|
|
1121
|
+
break;
|
|
1122
|
+
}
|
|
1123
|
+
case 6: {
|
|
1124
|
+
typ_1 = m.fields[0].Type;
|
|
1125
|
+
break;
|
|
1126
|
+
}
|
|
1127
|
+
case 5: {
|
|
863
1128
|
typ_1 = m.fields[0].Type;
|
|
864
1129
|
break;
|
|
865
1130
|
}
|
|
@@ -886,9 +1151,12 @@ function transformTypeAliasDeclaration(context, glueTypeAliasDeclaration) {
|
|
|
886
1151
|
return TypeAliasDeclaration_transformLiteral(xmlDoc, typeAliasName, matchValue.fields[0]);
|
|
887
1152
|
case 3:
|
|
888
1153
|
return new FSharpType(8, [new FSharpTypeAlias(toList(delay(() => xmlDoc.ObsoleteAttributes)), typeAliasName, xmlDoc.XmlDoc, new FSharpType(7, [transformPrimitive(matchValue.fields[0])]), transformTypeParameters(context_1, glueTypeAliasDeclaration.TypeParameters))]);
|
|
1154
|
+
case 27:
|
|
1155
|
+
return new FSharpType(8, [new FSharpTypeAlias(toList(delay(() => xmlDoc.ObsoleteAttributes)), typeAliasName, xmlDoc.XmlDoc, new FSharpType(7, [new FSharpPrimitive(0, [])]), transformTypeParameters(context_1, glueTypeAliasDeclaration.TypeParameters))]);
|
|
889
1156
|
case 13: {
|
|
890
1157
|
const typeReference = matchValue.fields[0];
|
|
891
|
-
const
|
|
1158
|
+
const mappedName = mapTypeNameToFableCoreAwareName(context_1, typeReference);
|
|
1159
|
+
const context_2 = TransformContext__PushScope_Z721C83C5(context_1, mappedName);
|
|
892
1160
|
const handleDefaultCase = () => (new FSharpType(8, [new FSharpTypeAlias(toList(delay(() => xmlDoc.ObsoleteAttributes)), typeAliasName, xmlDoc.XmlDoc, transformType(context_2, new GlueType(13, [typeReference])), transformTypeParameters(context_2, glueTypeAliasDeclaration.TypeParameters))]));
|
|
893
1161
|
const matchValue_2 = typeReference.TypeArguments;
|
|
894
1162
|
let matchResult_1, head;
|
|
@@ -906,12 +1174,12 @@ function transformTypeAliasDeclaration(context, glueTypeAliasDeclaration) {
|
|
|
906
1174
|
}
|
|
907
1175
|
switch (matchResult_1) {
|
|
908
1176
|
case 0:
|
|
909
|
-
if (head.tag ===
|
|
910
|
-
const makeInterfaceTyp = (name) => (new FSharpInterface(ofArray([new FSharpAttribute(
|
|
1177
|
+
if (head.tag === 22) {
|
|
1178
|
+
const makeInterfaceTyp = (name) => (new FSharpInterface(ofArray([new FSharpAttribute(8, []), new FSharpAttribute(20, [])]), name, glueTypeAliasDeclaration.Name, empty(), TransformMembers_toFSharpMember(context_2, head.fields[0]), empty()));
|
|
911
1179
|
const exposedType = makeInterfaceTyp("ReturnType");
|
|
912
1180
|
const typeArgument = makeInterfaceTyp(TransformContext__get_FullName(context_2) + ".ReturnType");
|
|
913
1181
|
TransformContext__ExposeType_Z1D58A540(TransformContext__PushScope_Z721C83C5(context_2, typeReference.Name), new FSharpType(4, [exposedType]));
|
|
914
|
-
return new FSharpType(8, [new FSharpTypeAlias(toList(delay(() => xmlDoc.ObsoleteAttributes)), typeAliasName, xmlDoc.XmlDoc, new FSharpType(10, [new FSharpTypeReference(
|
|
1182
|
+
return new FSharpType(8, [new FSharpTypeAlias(toList(delay(() => xmlDoc.ObsoleteAttributes)), typeAliasName, xmlDoc.XmlDoc, new FSharpType(10, [new FSharpTypeReference(mappedName, typeReference.FullName, singleton(new FSharpType(4, [typeArgument])), new FSharpType(9, []))]), empty())]);
|
|
915
1183
|
}
|
|
916
1184
|
else {
|
|
917
1185
|
return handleDefaultCase();
|
|
@@ -920,40 +1188,25 @@ function transformTypeAliasDeclaration(context, glueTypeAliasDeclaration) {
|
|
|
920
1188
|
return handleDefaultCase();
|
|
921
1189
|
}
|
|
922
1190
|
}
|
|
1191
|
+
case 16:
|
|
1192
|
+
return new FSharpType(8, [new FSharpTypeAlias(toList(delay(() => xmlDoc.ObsoleteAttributes)), typeAliasName, xmlDoc.XmlDoc, transformType(context_1, new GlueType(16, [matchValue.fields[0]])), transformTypeParameters(context_1, glueTypeAliasDeclaration.TypeParameters))]);
|
|
1193
|
+
case 14:
|
|
1194
|
+
return new FSharpType(4, [Interface_makePartial(typeAliasName, transformInterface(context_1, matchValue.fields[0]))]);
|
|
923
1195
|
case 15:
|
|
924
|
-
return
|
|
925
|
-
case
|
|
926
|
-
const originalInterface = transformInterface(context_1, matchValue.fields[0]);
|
|
927
|
-
return new FSharpType(4, [new FSharpInterface(originalInterface.Attributes, typeAliasName, originalInterface.OriginalName, originalInterface.TypeParameters, map((m_1) => {
|
|
928
|
-
switch (m_1.tag) {
|
|
929
|
-
case 1: {
|
|
930
|
-
const property = m_1.fields[0];
|
|
931
|
-
return new FSharpMember(1, [new FSharpMemberInfo(property.Attributes, property.Name, property.OriginalName, property.TypeParameters, property.Parameters, property.Type, true, property.IsStatic, property.Accessor, property.Accessibility, property.XmlDoc)]);
|
|
932
|
-
}
|
|
933
|
-
case 2: {
|
|
934
|
-
const staticMember = m_1.fields[0];
|
|
935
|
-
return new FSharpMember(2, [new FSharpStaticMemberInfo(staticMember.Attributes, staticMember.Name, staticMember.OriginalName, staticMember.TypeParameters, staticMember.Parameters, staticMember.Type, true, staticMember.Accessor, staticMember.Accessibility)]);
|
|
936
|
-
}
|
|
937
|
-
default: {
|
|
938
|
-
const method = m_1.fields[0];
|
|
939
|
-
return new FSharpMember(0, [new FSharpMemberInfo(method.Attributes, method.Name, method.OriginalName, method.TypeParameters, method.Parameters, method.Type, true, method.IsStatic, method.Accessor, method.Accessibility, method.XmlDoc)]);
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
}, originalInterface.Members))]);
|
|
943
|
-
}
|
|
944
|
-
case 16: {
|
|
1196
|
+
return transformRecord(context_1, typeAliasName, glueTypeAliasDeclaration.TypeParameters, matchValue.fields[0]);
|
|
1197
|
+
case 17: {
|
|
945
1198
|
const functionType = matchValue.fields[0];
|
|
946
|
-
return new FSharpType(4, [new FSharpInterface(ofArray([new FSharpAttribute(
|
|
1199
|
+
return new FSharpType(4, [new FSharpInterface(ofArray([new FSharpAttribute(8, []), new FSharpAttribute(20, [])]), typeAliasName, glueTypeAliasDeclaration.Name, transformTypeParameters(context_1, glueTypeAliasDeclaration.TypeParameters), singleton(new FSharpMember(0, [new FSharpMemberInfo(singleton(new FSharpAttribute(1, [])), "Invoke", "Invoke", empty(), map((parameter) => transformParameter(context_1, parameter), functionType.Parameters), transformType(context_1, functionType.Type), false, false, void 0, new FSharpAccessibility(0, []), empty(), new FSharpMemberInfoBody(0, []))])), empty())]);
|
|
947
1200
|
}
|
|
948
|
-
case
|
|
1201
|
+
case 20:
|
|
949
1202
|
return new FSharpType(8, [new FSharpTypeAlias(toList(delay(() => xmlDoc.ObsoleteAttributes)), typeAliasName, xmlDoc.XmlDoc, transformTupleType(context_1, matchValue.fields[0]), transformTypeParameters(context_1, glueTypeAliasDeclaration.TypeParameters))]);
|
|
950
|
-
case 21:
|
|
951
|
-
return new FSharpType(4, [new FSharpInterface(ofArray([new FSharpAttribute(7, []), new FSharpAttribute(18, [])]), typeAliasName, glueTypeAliasDeclaration.Name, transformTypeParameters(context_1, glueTypeAliasDeclaration.TypeParameters), TransformMembers_toFSharpMember(context_1, matchValue.fields[0]))]);
|
|
952
1203
|
case 22:
|
|
953
|
-
return new FSharpType(4, [new FSharpInterface(ofArray([new FSharpAttribute(
|
|
954
|
-
case
|
|
1204
|
+
return new FSharpType(4, [new FSharpInterface(ofArray([new FSharpAttribute(8, []), new FSharpAttribute(20, [])]), typeAliasName, glueTypeAliasDeclaration.Name, transformTypeParameters(context_1, glueTypeAliasDeclaration.TypeParameters), TransformMembers_toFSharpMember(context_1, matchValue.fields[0]), empty())]);
|
|
1205
|
+
case 23:
|
|
1206
|
+
return new FSharpType(4, [new FSharpInterface(ofArray([new FSharpAttribute(8, []), new FSharpAttribute(20, [])]), typeAliasName, glueTypeAliasDeclaration.Name, transformTypeParameters(context_1, glueTypeAliasDeclaration.TypeParameters), TransformMembers_toFSharpMember(context_1, matchValue.fields[0].Members), empty())]);
|
|
1207
|
+
case 25:
|
|
955
1208
|
return new FSharpType(8, [new FSharpTypeAlias(toList(delay(() => xmlDoc.ObsoleteAttributes)), typeAliasName, xmlDoc.XmlDoc, new FSharpType(17, []), transformTypeParameters(context_1, glueTypeAliasDeclaration.TypeParameters))]);
|
|
956
|
-
case
|
|
1209
|
+
case 18:
|
|
957
1210
|
return new FSharpType(8, [new FSharpTypeAlias(toList(delay(() => xmlDoc.ObsoleteAttributes)), typeAliasName, xmlDoc.XmlDoc, new FSharpType(12, [matchValue.fields[0]]), transformTypeParameters(context_1, glueTypeAliasDeclaration.TypeParameters))]);
|
|
958
1211
|
case 12:
|
|
959
1212
|
case 4:
|
|
@@ -962,11 +1215,11 @@ function transformTypeAliasDeclaration(context, glueTypeAliasDeclaration) {
|
|
|
962
1215
|
case 5:
|
|
963
1216
|
case 0:
|
|
964
1217
|
case 6:
|
|
965
|
-
case
|
|
1218
|
+
case 19:
|
|
966
1219
|
case 2:
|
|
967
|
-
case
|
|
968
|
-
case
|
|
969
|
-
case
|
|
1220
|
+
case 26:
|
|
1221
|
+
case 21:
|
|
1222
|
+
case 24:
|
|
970
1223
|
return new FSharpType(9, []);
|
|
971
1224
|
default: {
|
|
972
1225
|
const matchValue_1 = tryOptimizeUnionType(context_1, typeAliasName, matchValue.fields[0].fields[0]);
|
|
@@ -980,15 +1233,15 @@ function transformTypeAliasDeclaration(context, glueTypeAliasDeclaration) {
|
|
|
980
1233
|
}
|
|
981
1234
|
}
|
|
982
1235
|
|
|
983
|
-
function transformModuleDeclaration(moduleDeclaration) {
|
|
984
|
-
return new FSharpType(3, [new FSharpModule(sanitizeName(moduleDeclaration.Name), moduleDeclaration.IsRecursive, transform(false, moduleDeclaration.Types))]);
|
|
1236
|
+
function transformModuleDeclaration(reporter, moduleDeclaration) {
|
|
1237
|
+
return new FSharpType(3, [new FSharpModule(sanitizeName(moduleDeclaration.Name), moduleDeclaration.IsRecursive, transform(reporter, false, moduleDeclaration.Types))]);
|
|
985
1238
|
}
|
|
986
1239
|
|
|
987
1240
|
function transformClassDeclaration(context, classDeclaration) {
|
|
988
1241
|
let Members;
|
|
989
1242
|
const patternInput = sanitizeNameAndPushScope(classDeclaration.Name, context);
|
|
990
1243
|
const context_1 = patternInput[1];
|
|
991
|
-
return new FSharpType(4, [(Members = TransformMembers_toFSharpMember(context_1, classDeclaration.Members), new FSharpInterface(ofArray([new FSharpAttribute(
|
|
1244
|
+
return new FSharpType(4, [(Members = TransformMembers_toFSharpMember(context_1, classDeclaration.Members), new FSharpInterface(ofArray([new FSharpAttribute(8, []), new FSharpAttribute(20, [])]), patternInput[0], classDeclaration.Name, transformTypeParameters(context_1, classDeclaration.TypeParameters), Members, map((glueType) => transformType(context_1, glueType), classDeclaration.HeritageClauses)))]);
|
|
992
1245
|
}
|
|
993
1246
|
|
|
994
1247
|
function transformToFsharp(context, glueTypes) {
|
|
@@ -999,10 +1252,10 @@ function transformToFsharp(context, glueTypes) {
|
|
|
999
1252
|
case 5:
|
|
1000
1253
|
return transformTypeAliasDeclaration(context, _arg.fields[0]);
|
|
1001
1254
|
case 11:
|
|
1002
|
-
return transformModuleDeclaration(_arg.fields[0]);
|
|
1255
|
+
return transformModuleDeclaration(TransformContext__get__Reporter(context), _arg.fields[0]);
|
|
1003
1256
|
case 12:
|
|
1004
1257
|
return transformClassDeclaration(context, _arg.fields[0]);
|
|
1005
|
-
case
|
|
1258
|
+
case 26: {
|
|
1006
1259
|
const exportedType = _arg.fields[0];
|
|
1007
1260
|
if (exportedType.tag === 12) {
|
|
1008
1261
|
return transformClassDeclaration(context, exportedType.fields[0]);
|
|
@@ -1011,10 +1264,10 @@ function transformToFsharp(context, glueTypes) {
|
|
|
1011
1264
|
return new FSharpType(9, []);
|
|
1012
1265
|
}
|
|
1013
1266
|
}
|
|
1014
|
-
case 16:
|
|
1015
1267
|
case 17:
|
|
1268
|
+
case 18:
|
|
1016
1269
|
case 14:
|
|
1017
|
-
case
|
|
1270
|
+
case 16:
|
|
1018
1271
|
case 13:
|
|
1019
1272
|
case 6:
|
|
1020
1273
|
case 10:
|
|
@@ -1022,15 +1275,17 @@ function transformToFsharp(context, glueTypes) {
|
|
|
1022
1275
|
case 8:
|
|
1023
1276
|
case 2:
|
|
1024
1277
|
case 3:
|
|
1025
|
-
case
|
|
1278
|
+
case 25:
|
|
1026
1279
|
case 9:
|
|
1027
1280
|
case 0:
|
|
1028
|
-
case
|
|
1029
|
-
case 21:
|
|
1281
|
+
case 20:
|
|
1030
1282
|
case 22:
|
|
1031
1283
|
case 23:
|
|
1032
|
-
case
|
|
1033
|
-
case
|
|
1284
|
+
case 15:
|
|
1285
|
+
case 24:
|
|
1286
|
+
case 21:
|
|
1287
|
+
case 27:
|
|
1288
|
+
case 19:
|
|
1034
1289
|
return new FSharpType(9, []);
|
|
1035
1290
|
default:
|
|
1036
1291
|
return new FSharpType(4, [transformInterface(context, _arg.fields[0])]);
|
|
@@ -1038,13 +1293,13 @@ function transformToFsharp(context, glueTypes) {
|
|
|
1038
1293
|
}, glueTypes);
|
|
1039
1294
|
}
|
|
1040
1295
|
|
|
1041
|
-
|
|
1296
|
+
function transform(reporter, isTopLevel, glueAst) {
|
|
1042
1297
|
const patternInput = partition((glueType) => {
|
|
1043
1298
|
switch (glueType.tag) {
|
|
1044
1299
|
case 2:
|
|
1045
1300
|
case 6:
|
|
1046
1301
|
return true;
|
|
1047
|
-
case
|
|
1302
|
+
case 26:
|
|
1048
1303
|
if (glueType.fields[0].tag === 2) {
|
|
1049
1304
|
return true;
|
|
1050
1305
|
}
|
|
@@ -1062,14 +1317,15 @@ export function transform(isTopLevel, glueAst) {
|
|
|
1062
1317
|
return true;
|
|
1063
1318
|
case 11:
|
|
1064
1319
|
return exists((glueType_2) => {
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1320
|
+
switch (glueType_2.tag) {
|
|
1321
|
+
case 12:
|
|
1322
|
+
case 6:
|
|
1323
|
+
return true;
|
|
1324
|
+
default:
|
|
1325
|
+
return false;
|
|
1070
1326
|
}
|
|
1071
1327
|
}, glueType_1.fields[0].Types);
|
|
1072
|
-
case
|
|
1328
|
+
case 26:
|
|
1073
1329
|
if (glueType_1.fields[0].tag === 12) {
|
|
1074
1330
|
return true;
|
|
1075
1331
|
}
|
|
@@ -1080,9 +1336,14 @@ export function transform(isTopLevel, glueAst) {
|
|
|
1080
1336
|
return false;
|
|
1081
1337
|
}
|
|
1082
1338
|
}, rest));
|
|
1083
|
-
const rootTransformContext = TransformContext_$
|
|
1339
|
+
const rootTransformContext = TransformContext_$ctor_Z20656E4E(reporter, "");
|
|
1084
1340
|
const rest_1 = transformToFsharp(rootTransformContext, rest);
|
|
1085
1341
|
return toList(delay(() => append(!isEmpty(exports_1) ? singleton_1(transformExports(rootTransformContext, isTopLevel, exports_1)) : empty_1(), delay(() => append(rest_1, delay(() => TransformContext__ToList(rootTransformContext)))))));
|
|
1086
1342
|
}
|
|
1087
1343
|
|
|
1344
|
+
export function apply(glueAst) {
|
|
1345
|
+
const reporter = Reporter_$ctor();
|
|
1346
|
+
return new TransformResult(transform(reporter, true, glueAst), Reporter__get_Warnings(reporter), Reporter__get_Errors(reporter), Reporter__get_HasRegEpx(reporter));
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1088
1349
|
//# sourceMappingURL=Transform.js.map
|