@glutinum/cli 0.7.0 → 0.8.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 +26 -8
- package/dist/Glutinum.Converter/FsharpAST.js.map +1 -1
- package/dist/Glutinum.Converter/GlueAST.js +38 -6
- package/dist/Glutinum.Converter/GlueAST.js.map +1 -1
- package/dist/Glutinum.Converter/Printer.js +82 -38
- package/dist/Glutinum.Converter/Printer.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +3 -3
- 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/InterfaceDeclaration.js +3 -2
- package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/TypeNode.js +29 -28
- package/dist/Glutinum.Converter/Reader/TypeNode.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Utils.js +21 -1
- package/dist/Glutinum.Converter/Reader/Utils.js.map +1 -1
- package/dist/Glutinum.Converter/Transform.js +202 -102
- package/dist/Glutinum.Converter/Transform.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,7 +1,7 @@
|
|
|
1
1
|
import { Union } from "../../fable_modules/fable-library-js.4.14.0/Types.js";
|
|
2
2
|
import { union_type, class_type } from "../../fable_modules/fable-library-js.4.14.0/Reflection.js";
|
|
3
3
|
import { GlueTypeLiteral, GlueClassDeclaration, GlueFunctionType, GlueTypeReference, GlueInterface, GlueTypeUnion, GlueLiteral, GlueType, GluePrimitive } from "../GlueAST.js";
|
|
4
|
-
import { tryReadLiteral, $007CHasSymbolFlags$007C_$007C, $007CHasTypeFlags$007C_$007C, generateReaderError } from "./Utils.js";
|
|
4
|
+
import { getFullNameOrEmpty, tryReadLiteral, readTypeArguments, $007CHasSymbolFlags$007C_$007C, $007CHasTypeFlags$007C_$007C, generateReaderError } from "./Utils.js";
|
|
5
5
|
import { exists, concat, empty, map, choose } from "../../fable_modules/fable-library-js.4.14.0/List.js";
|
|
6
6
|
import { head, toList } from "../../fable_modules/fable-library-js.4.14.0/Seq.js";
|
|
7
7
|
import { value as value_2 } from "../../fable_modules/fable-library-js.4.14.0/Option.js";
|
|
@@ -89,8 +89,8 @@ export function readTypeNode(reader, typeNode) {
|
|
|
89
89
|
}
|
|
90
90
|
else {
|
|
91
91
|
const symbol_1 = aliasTypeArguments[0].symbol;
|
|
92
|
-
if (symbol_1.members == null) {
|
|
93
|
-
return new GlueType(
|
|
92
|
+
if ((symbol_1 == null) ? true : (symbol_1.members == null)) {
|
|
93
|
+
return new GlueType(24, []);
|
|
94
94
|
}
|
|
95
95
|
else {
|
|
96
96
|
const patternInput = head(value_2(symbol_1.members).entries());
|
|
@@ -98,7 +98,7 @@ export function readTypeNode(reader, typeNode) {
|
|
|
98
98
|
if (originalType.kind === 264) {
|
|
99
99
|
const interfaceDeclaration = originalType;
|
|
100
100
|
const members = map((declaration) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](declaration), toList(interfaceDeclaration.members));
|
|
101
|
-
return new GlueType(14, [new GlueInterface(interfaceDeclaration.name.getText(), members, empty())]);
|
|
101
|
+
return new GlueType(14, [new GlueInterface(interfaceDeclaration.name.getText(), members, empty(), empty())]);
|
|
102
102
|
}
|
|
103
103
|
else {
|
|
104
104
|
return new GlueType(0, []);
|
|
@@ -116,10 +116,7 @@ export function readTypeNode(reader, typeNode) {
|
|
|
116
116
|
return new GlueType(17, [value_2(symbolOpt).name]);
|
|
117
117
|
}
|
|
118
118
|
else {
|
|
119
|
-
|
|
120
|
-
const matchValue_5 = typeReferenceNode.typeArguments;
|
|
121
|
-
typeArguments_1 = ((matchValue_5 != null) ? map((arg) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](arg), toList(matchValue_5)) : empty());
|
|
122
|
-
return new GlueType(13, [new GlueTypeReference(typeReferenceNode.typeName.getText(), fullName, typeArguments_1)]);
|
|
119
|
+
return new GlueType(13, [new GlueTypeReference(typeReferenceNode.typeName.getText(), fullName, readTypeArguments(reader, typeReferenceNode))]);
|
|
123
120
|
}
|
|
124
121
|
}
|
|
125
122
|
}
|
|
@@ -131,19 +128,19 @@ export function readTypeNode(reader, typeNode) {
|
|
|
131
128
|
case 186: {
|
|
132
129
|
const typeNodeQuery = typeNode;
|
|
133
130
|
const typ_3 = checker.getTypeAtLocation(typeNodeQuery.exprName);
|
|
134
|
-
const
|
|
135
|
-
if ($007CHasTypeFlags$007C_$007C(524288,
|
|
136
|
-
const
|
|
137
|
-
if (
|
|
131
|
+
const matchValue_5 = typ_3.flags | 0;
|
|
132
|
+
if ($007CHasTypeFlags$007C_$007C(524288, matchValue_5) != null) {
|
|
133
|
+
const matchValue_6 = typ_3.symbol.declarations;
|
|
134
|
+
if (matchValue_6 == null) {
|
|
138
135
|
return new GlueType(3, [new GluePrimitive(6, [])]);
|
|
139
136
|
}
|
|
140
137
|
else {
|
|
141
|
-
const declarations =
|
|
138
|
+
const declarations = matchValue_6;
|
|
142
139
|
const declaration_1 = declarations[0];
|
|
143
|
-
const
|
|
144
|
-
switch (
|
|
140
|
+
const matchValue_7 = declaration_1.kind | 0;
|
|
141
|
+
switch (matchValue_7) {
|
|
145
142
|
case 263:
|
|
146
|
-
return new GlueType(12, [new GlueClassDeclaration(typ_3.symbol.name, empty(), empty(), empty())]);
|
|
143
|
+
return new GlueType(12, [new GlueClassDeclaration(typ_3.symbol.name, empty(), empty(), empty(), empty())]);
|
|
147
144
|
case 267:
|
|
148
145
|
return new GlueType(0, []);
|
|
149
146
|
default:
|
|
@@ -151,19 +148,19 @@ export function readTypeNode(reader, typeNode) {
|
|
|
151
148
|
}
|
|
152
149
|
}
|
|
153
150
|
}
|
|
154
|
-
else if ($007CHasTypeFlags$007C_$007C(4,
|
|
151
|
+
else if ($007CHasTypeFlags$007C_$007C(4, matchValue_5) != null) {
|
|
155
152
|
return new GlueType(3, [new GluePrimitive(0, [])]);
|
|
156
153
|
}
|
|
157
|
-
else if ($007CHasTypeFlags$007C_$007C(8,
|
|
154
|
+
else if ($007CHasTypeFlags$007C_$007C(8, matchValue_5) != null) {
|
|
158
155
|
return new GlueType(3, [new GluePrimitive(5, [])]);
|
|
159
156
|
}
|
|
160
|
-
else if ($007CHasTypeFlags$007C_$007C(16,
|
|
157
|
+
else if ($007CHasTypeFlags$007C_$007C(16, matchValue_5) != null) {
|
|
161
158
|
return new GlueType(3, [new GluePrimitive(3, [])]);
|
|
162
159
|
}
|
|
163
|
-
else if ($007CHasTypeFlags$007C_$007C(1,
|
|
160
|
+
else if ($007CHasTypeFlags$007C_$007C(1, matchValue_5) != null) {
|
|
164
161
|
return new GlueType(3, [new GluePrimitive(6, [])]);
|
|
165
162
|
}
|
|
166
|
-
else if ($007CHasTypeFlags$007C_$007C(16384,
|
|
163
|
+
else if ($007CHasTypeFlags$007C_$007C(16384, matchValue_5) != null) {
|
|
167
164
|
return new GlueType(3, [new GluePrimitive(4, [])]);
|
|
168
165
|
}
|
|
169
166
|
else {
|
|
@@ -192,12 +189,12 @@ export function readTypeNode(reader, typeNode) {
|
|
|
192
189
|
const intersectionTypeNode = typeNode;
|
|
193
190
|
const unionOrIntersectionType = checker.getTypeAtLocation(intersectionTypeNode);
|
|
194
191
|
const properties = choose((property) => {
|
|
195
|
-
const
|
|
196
|
-
if (
|
|
192
|
+
const matchValue_9 = property.declarations;
|
|
193
|
+
if (matchValue_9 == null) {
|
|
197
194
|
throw new Error(generateReaderError("type node", "Missing declarations", typeNode));
|
|
198
195
|
}
|
|
199
196
|
else {
|
|
200
|
-
const declarations_1 =
|
|
197
|
+
const declarations_1 = matchValue_9;
|
|
201
198
|
if (declarations_1.length === 1) {
|
|
202
199
|
return new IntersectionTypePropertyResult(0, [declarations_1[0]]);
|
|
203
200
|
}
|
|
@@ -205,7 +202,7 @@ export function readTypeNode(reader, typeNode) {
|
|
|
205
202
|
return new IntersectionTypePropertyResult(1, []);
|
|
206
203
|
}
|
|
207
204
|
}
|
|
208
|
-
}, unionOrIntersectionType.isUnion() ? List_distinct(concat(map((
|
|
205
|
+
}, unionOrIntersectionType.isUnion() ? List_distinct(concat(map((arg) => toList(checker.getPropertiesOfType(arg)), toList(unionOrIntersectionType.types))), {
|
|
209
206
|
Equals: equals,
|
|
210
207
|
GetHashCode: structuralHash,
|
|
211
208
|
}) : toList(unionOrIntersectionType.getProperties()));
|
|
@@ -250,16 +247,20 @@ export function readTypeNode(reader, typeNode) {
|
|
|
250
247
|
}
|
|
251
248
|
case 201: {
|
|
252
249
|
const literalTypeNode = typeNode;
|
|
253
|
-
const
|
|
254
|
-
if (
|
|
250
|
+
const matchValue_8 = tryReadLiteral(literalTypeNode.literal);
|
|
251
|
+
if (matchValue_8 == null) {
|
|
255
252
|
throw new Error(generateReaderError("type node - literal type", "Could not read literal type", typeNode));
|
|
256
253
|
}
|
|
257
254
|
else {
|
|
258
|
-
return new GlueType(8, [
|
|
255
|
+
return new GlueType(8, [matchValue_8]);
|
|
259
256
|
}
|
|
260
257
|
}
|
|
261
258
|
case 202:
|
|
262
259
|
return reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNamedTupleMemberZ6E17C942"](typeNode);
|
|
260
|
+
case 233: {
|
|
261
|
+
const expression = typeNode;
|
|
262
|
+
return new GlueType(13, [new GlueTypeReference(expression.expression.getText(), getFullNameOrEmpty(checker, expression), readTypeArguments(reader, expression))]);
|
|
263
|
+
}
|
|
263
264
|
default: {
|
|
264
265
|
const item = generateReaderError("type node", toText(interpolate("Unsupported kind %A%P()", [typeNode.kind])), typeNode);
|
|
265
266
|
const objectArg = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeNode.fs"],"names":["checker","reader","matchValue","typeNode","typeReferenceNode","symbolOpt","fullName","symbol","typ","literalType","aliasTypeArguments","patternInput","originalType","interfaceDeclaration","members","declaration","
|
|
1
|
+
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeNode.fs"],"names":["checker","reader","matchValue","typeNode","typeReferenceNode","symbolOpt","fullName","symbol","typ","literalType","aliasTypeArguments","patternInput","originalType","interfaceDeclaration","members","declaration","functionTypeNode","typeNodeQuery","declarations","typeLiteralNode","arrayTypeNode","tupleTypeNode","element","optionalTypeNode","intersectionTypeNode","unionOrIntersectionType","properties","property","_arg1","parenthesizedTypeNode","thisTypeNode","typeOperatorNode","literalTypeNode","expression","item","objectArg"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBQA,oBAAU,AAAAC;AAERC,uBAAA,AAAAC;YAAAD;aAAA;AAMyB,mBAAA,iBAAmB;aAN5C;AAGyB,mBAAA,iBAAmB;aAH5C;AAKwB,mBAAA,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A4TF,mBAAA,AAAAD,0FAA4BE;aA5T1B;AAiUE8B,\u002BBAAa9B;AAOd,mBAAA,kBALF,sBACU,AAAA8B,iCACI,mBAAmBjC,SAAQiC,aACtB,kBAAkBhC,QAAOgC;;;AAS1CC,yBAJH,oBACI,aACA,OAAA,YAAA,4BAAsB,AAAA/B,kBACtBA;AACDgC,8BAAA,AAAAlC;AAAA,kBAAAkC,eAAAD;AAEH,mBAAA,iBAAmB","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -5,7 +5,8 @@ import { GlueAccessor, GlueLiteral } from "../GlueAST.js";
|
|
|
5
5
|
import { tryParse as tryParse_1 } from "../../fable_modules/fable-library-js.4.14.0/Double.js";
|
|
6
6
|
import { interpolate, toText } from "../../fable_modules/fable-library-js.4.14.0/String.js";
|
|
7
7
|
import { class_type } from "../../fable_modules/fable-library-js.4.14.0/Reflection.js";
|
|
8
|
-
import { exists } from "../../fable_modules/fable-library-js.4.14.0/Seq.js";
|
|
8
|
+
import { toList, exists } from "../../fable_modules/fable-library-js.4.14.0/Seq.js";
|
|
9
|
+
import { collect, empty, map } from "../../fable_modules/fable-library-js.4.14.0/List.js";
|
|
9
10
|
|
|
10
11
|
export function $007CHasTypeFlags$007C_$007C(flag, flags) {
|
|
11
12
|
if ((flags & flag) !== 0) {
|
|
@@ -151,4 +152,23 @@ export function ModifierUtil_HasModifier_Z687DC302(modifiers, modifier) {
|
|
|
151
152
|
return ModifierUtil_HasModifier_Z39CCF48F(modifiers, modifier);
|
|
152
153
|
}
|
|
153
154
|
|
|
155
|
+
export function readTypeArguments(reader, node) {
|
|
156
|
+
const matchValue = node.typeArguments;
|
|
157
|
+
if (matchValue != null) {
|
|
158
|
+
return map((arg) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](arg), toList(matchValue));
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
return empty();
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export function readHeritageClauses(reader, heritageClauses) {
|
|
166
|
+
if (heritageClauses == null) {
|
|
167
|
+
return empty();
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
return collect((clause) => map((typNode) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](typNode), toList(clause.types)), toList(heritageClauses));
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
154
174
|
//# sourceMappingURL=Utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/Utils.fs"],"names":["flags","flag","text","isNumericString","matchValue","outArg","expression","literal","tryReadNumericLiteral","sourceFile","node","lineAndChar","line","column","errorContext","reason","checker","symbol","tryGetFullName","modifiers","modifier","GetAccessor","currentModifier","HasModifier"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/Utils.fs"],"names":["flags","flag","text","isNumericString","matchValue","outArg","expression","literal","tryReadNumericLiteral","sourceFile","node","lineAndChar","line","column","errorContext","reason","checker","symbol","tryGetFullName","modifiers","modifier","GetAccessor","currentModifier","HasModifier","reader","heritageClauses","typNode","clause"],"mappings":";;;;;;;;;;;AASI,QAAG,CAAA,AAAIA,QAAcC,UAAQ;AACzB,eAAA,KAAI;;;AAEJ,eAAA;;;;;AAGJ,QAAG,CAAA,AAAID,QAAcC,UAAQ;AACzB,eAAA,KAAI;;;AAEJ,eAAA;;;;;AAGJ,QAAG,CAAA,AAAID,QAAcC,UAAQ;AACzB,eAAA,KAAI;;;AAEJ,eAAA;;;;;AAGJ,QAAA,CAAA,OAASC,UAAO;AAAuD,eAAA,CAA7B,aAARA;;;eAAlC;;;;;AAGA,QAAG,AAAAC,gBAAgBD;AAETE;AAAAC;AAAAD,sBAAA,SAAsBF,sBAAtB,oBAAAG;AAAAA;aAAAA;AAAA,YAAA,AAAAD;AACS,mBAAA,oBAAA,AAAAA;;;AAGLA;AAAAC;AA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