@glutinum/cli 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -0
- package/dist/Glutinum.Converter/FsharpAST.js +19 -4
- package/dist/Glutinum.Converter/FsharpAST.js.map +1 -1
- package/dist/Glutinum.Converter/Generate.js.map +1 -1
- package/dist/Glutinum.Converter/GlueAST.js +21 -3
- package/dist/Glutinum.Converter/GlueAST.js.map +1 -1
- package/dist/Glutinum.Converter/Merge.js.map +1 -1
- package/dist/Glutinum.Converter/Printer.js +70 -53
- package/dist/Glutinum.Converter/Printer.js.map +1 -1
- package/dist/Glutinum.Converter/Read.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/ClassDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Declaration.js +1 -1
- package/dist/Glutinum.Converter/Reader/Declaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Documentation.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/ExportAssignment.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js +1 -1
- package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/MappedTypeNode.js +1 -1
- package/dist/Glutinum.Converter/Reader/MappedTypeNode.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/NamedTupleMember.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Node.js +1 -1
- package/dist/Glutinum.Converter/Reader/Node.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Parameters.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Report.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/TypeNode.js +163 -52
- package/dist/Glutinum.Converter/Reader/TypeNode.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js +5 -5
- package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/TypeParameters.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/TypeQueryNode.js +7 -7
- package/dist/Glutinum.Converter/Reader/TypeQueryNode.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/TypeScriptReader.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +2 -2
- package/dist/Glutinum.Converter/Reader/UnionTypeNode.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Utils.js +34 -2
- package/dist/Glutinum.Converter/Reader/Utils.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/VariableStatement.js +1 -1
- package/dist/Glutinum.Converter/Reader/VariableStatement.js.map +1 -1
- package/dist/Glutinum.Converter/Transform.js +311 -81
- package/dist/Glutinum.Converter/Transform.js.map +1 -1
- package/dist/Glutinum.Converter/TypeScript.Extensions.js +10 -0
- package/dist/Glutinum.Converter/TypeScript.Extensions.js.map +1 -1
- package/dist/Glutinum.Converter/Utils/Naming.js.map +1 -1
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ export function readMappedTypeNode(reader, mappedTypeNode) {
|
|
|
27
27
|
break;
|
|
28
28
|
}
|
|
29
29
|
default:
|
|
30
|
-
input_2 = (new FSharpResult$2(1, [Report_readerError_Z19516DCE("readMappedTypeNode", `Expected exactly one type parameter but was ${length(typeParameters)}`, mappedTypeNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/MappedTypeNode.fs",
|
|
30
|
+
input_2 = (new FSharpResult$2(1, [Report_readerError_Z19516DCE("readMappedTypeNode", `Expected exactly one type parameter but was ${length(typeParameters)}`, mappedTypeNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/MappedTypeNode.fs", 18)]));
|
|
31
31
|
}
|
|
32
32
|
_arg_1 = ((input_2.tag === 1) ? (new FSharpResult$2(1, [input_2.fields[0]])) : (new FSharpResult$2(0, [new GlueType(27, [new GlueMappedType(input_2.fields[0], (input_1 = mappedTypeNode.type, (input_1 == null) ? void 0 : ((node = input_1, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](node)))))])])));
|
|
33
33
|
if (_arg_1.tag === 1) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../fable_modules/FsToolkit.ErrorHandling.4.16.0/Option.fs","../../../src/Glutinum.Converter/Reader/MappedTypeNode.fs","../../fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs"],"names":["input","node","_arg2","typeParameters","reader","mappedTypeNode","tp"],"mappings":";;;;;;QAoCSA,
|
|
1
|
+
{"version":3,"sources":["../../fable_modules/FsToolkit.ErrorHandling.4.16.0/Option.fs","../../../src/Glutinum.Converter/Reader/MappedTypeNode.fs","../../fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs"],"names":["input","node","_arg2","typeParameters","reader","mappedTypeNode","tp"],"mappings":";;;;;;QAoCSA,SCToDC;AAItDC;ACbEF;ADPOG,2BACA,AAAAC,wFAA6C,AAAAC;qBAG7CC;AADE,QAAA,CAAA,QAAAH;AAAA,YAAA,QAAA,KACJA;;AAAEG,iBADE,KACJH;;;;;;;;;;;AAAU,ACGfH,uBDHe,uBAAGM;;;;AAOR,ACJVN,uBDIU,uBALH,6BACI,sBACA,\u002BCAA\u002BC,OAAYG,mBAC3DE,gBAHJ,oHAAA;;ACGF,ADWPH,cCXO,CAAA,AAAAF,sBAEO,uBAAA,AAAAA,wBADH,uBDQH,kBAJH,mBCJM,AAAAA,oBFeTA,UCTc,AAAAK,qBDWT,CAAA,AAAAL,mBAEI,WCb2CC,ODYzCD,SCZyC,AAAAI,6EAAAH;AAItD,QAAA,AAAAC;AAGK,cAAA,AAAAE,gFAAA,AAAAF;AACA,eAAA;;;AAHa,eAAA,AAAAA","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/ModuleDeclaration.fs"],"names":["name","declaration","children","isNamespace","node","types","matchValue","child","moduleBlock","reader"],"mappings":";;;;;AAYQA,iBAA4B,AAAAC;AAC5BC,qBAAW,AAAAD;AAEXE,
|
|
1
|
+
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/ModuleDeclaration.fs"],"names":["name","declaration","children","isNamespace","node","types","matchValue","child","moduleBlock","reader"],"mappings":";;;;;AAYQA,iBAA4B,AAAAC;AAC5BC,qBAAW,AAAAD;AAEXE,wBACY,kBAAwB,AAAAC,cAAY,MAAhDF;AAEAG,kBAaG,OADA,OAVA;AACOC,2BAAA,AAAAC;gBAAAD;iBAAA;AAEEE,oCAAcD;AAEsB,uBAAA,gBAAS,AAAAE,6EAAAL,SAAvB,MAA1B,AAAAI;;;AAGG,uBAAA;;OATXN;AAcJ,WAAA,0BACW,AAAAF,gBACOG,aACA,OACNE","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/NamedTupleMember.fs"],"names":["declaration","reader"],"mappings":";;;
|
|
1
|
+
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/NamedTupleMember.fs"],"names":["declaration","reader"],"mappings":";;;WAaO,kBALF,mBACU,AAAAA,4BACA,AAAAC,iFAAoB,AAAAD","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -35,7 +35,7 @@ export function readNode(reader, node) {
|
|
|
35
35
|
case 277:
|
|
36
36
|
return reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadExportAssignmentZ3497D0FE"](node);
|
|
37
37
|
default: {
|
|
38
|
-
const warning = Report_readerError_Z19516DCE("node", `Unsupported node kind ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(matchValue)}`, node, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/Node.fs",
|
|
38
|
+
const warning = Report_readerError_Z19516DCE("node", `Unsupported node kind ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(matchValue)}`, node, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/Node.fs", 48);
|
|
39
39
|
void (reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(warning));
|
|
40
40
|
return new GlueType(0, []);
|
|
41
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/Node.fs"],"names":["matchValue","node","reader","typeLiteralNode","declaration","warning"],"mappings":";;;;;;;AAOUA,uBAAA,AAAAC;YAAAD;aAAA;
|
|
1
|
+
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/Node.fs"],"names":["matchValue","node","reader","typeLiteralNode","declaration","warning"],"mappings":";;;;;;;AAOUA,uBAAA,AAAAC;YAAAD;aAAA;AAoC4B,mBAAA,AAAAE,iFAAoBD;aApChD;AA0BEE,oCAAkBF;AAKsB,mBAAA,kBAA3C,oBAF4C,qBAAS,AAAAC,oFAAAE,cAAvB,OAA3B,AAAAD;;aA7BF;aAAA;AAkC4B,mBAAA;aAlC5B;AAS\u002BB,mBAAA,AAAAD,2FAA6BD;aAT5D;AAYF,mBAAA,AAAAC,6FAA\u002BBD;aAZ7B;AAgB8B,mBAAA,AAAAC,0FAA4BD;aAhB1D;AAOF,mBAAA,AAAAC,6FAAgCD;aAP9B;AAIF,mBAAA,AAAAC,8FAAgCD;aAJ9B;AAC6B,mBAAA,AAAAC,wFAA2BD;aADxD;AAc\u002BB,mBAAA,AAAAC,yFAA6BD;aAd5D;AAuBF,mBAAA;aAvBE;AAkB8B,mBAAA,AAAAC,0FAA4BD;;AAqBxDI,4BACA,6BAAoB,QAAQ,yBAA2B,8CADvDL,eAC2EC,MAA3E,0GAAA;AAEJ,kBAAA,AAAAC,gFAAoBG;AAEpB,mBAAA","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/Parameters.fs"],"names":["matchValue","name","item","objectArg","nameNode","parameter","index","reader","parameters"],"mappings":";;;;;;;WAaO;YAIWA,YAEEC,
|
|
1
|
+
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/Parameters.fs"],"names":["matchValue","name","item","objectArg","nameNode","parameter","index","reader","parameters"],"mappings":";;;;;;;WAaO;YAIWA,YAEEC,MAKDC,MAAAC;AAVPC,yBAA0B,AAAAC;AAc9B,eAAA,mBAXUL,cAAA,AAAAI,oBAAA,CAAA,AAAAJ,eAAA,QAEEC,OAAOG,UACX,AAAAH,oBAHE,CAAA,AAAAD,eAAA,QAIkC,MAAQM,cAGzCJ,OADH,6BAAoB,QAAQ,oBAAsB,8CAAA,AAAAE,kBAAsBA,UAAxE,gHAAA,MACGD,YAAA,AAAAI,4EAAA,MAAAJ,eAAAD,UAEH,MAAQI,aAIC,AAAAD,iCACF,AAAAA,kCACJ,AAAAE,kFAAoB,AAAAF;OApBhC,OADHG","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/Report.fs"],"names":["errorOrigin","filePath","fileLine","sourceFile","node","errorContext","reason","lineAndChar","line","column","typeFileName","parentText"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/Report.fs"],"names":["errorOrigin","filePath","fileLine","sourceFile","node","errorContext","reason","lineAndChar","line","column","typeFileName","parentText"],"mappings":";;;;;;;;;;;;;AAoBYA,wBAKA,QAAA,OAAA,YAAA,mBAFI,OAAO,UAAAC,UADK,AAAAA,iBAAiB,4BAGfC,aAAoB,MAAM;AAE5CC,uBAAa,AAAAC;AAEjB,QAAG,AAAOD;eACN,GAAOH,oCAAqCK,8DAGrDC;;;AAEaC,4BAAc,AAAAJ,yCAAyC,AAAAC;AACvDI,sBAAO,EAAI,AAAAD,mBAAmB;AAC9BE,wBAAS,EAAI,AAAAF,wBAAwB;AACrCG,6BAAe,QAAA,AAAAP,qBAA4B,MAAM;AAEjDQ,2BACA,CAAG,AAAO,AAAAP,uBACN,MAEA,wBAEjB,AAAAA;AAGS,eAAA,OAAA,YAAA,iHAAOJ,aAAqCK,cACrDK,cAAiBF,MAASC,QAE1BH,QAGA,AAAAF,oBACGO","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -1,14 +1,14 @@
|
|
|
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
|
-
import { tryReadLiteral, isFromEs5Lib, $007CHasSymbolFlags$007C_$007C, readTypeArguments, getFullNameOrEmpty, $007CHasTypeFlags$007C_$007C } from "./Utils.js";
|
|
4
|
-
import { GlueThisType, GlueTypeLiteral, GlueFunctionType, GlueTypeReference, GlueRecord, GlueUtilityType, GlueInterface, GlueTypeUnion, GlueLiteral, GlueClassDeclaration, GlueType, GluePrimitive } from "../GlueAST.js";
|
|
5
|
-
import { exists, concat,
|
|
6
|
-
import { head, toList } from "../../fable_modules/fable-library-js.4.14.0/Seq.js";
|
|
7
|
-
import { value as value_2 } from "../../fable_modules/fable-library-js.4.14.0/Option.js";
|
|
3
|
+
import { tryReadLiteral, isFromEs5Lib, $007CHasSymbolFlags$007C_$007C, readTypeArguments, getFullNameOrEmpty, Type_NumberLiteral_$007CInt$007CFloat$007COther$007C, Type_StringLiteral_$007CString$007COther$007C, $007CHasTypeFlags$007C_$007C } from "./Utils.js";
|
|
4
|
+
import { GlueThisType, GlueTypeLiteral, GlueFunctionType, GlueTypeReference, GlueReadonly, GlueRecord, GlueUtilityType, GlueInterface, GlueTypeUnion, GlueLiteral, GlueClassDeclaration, GlueType, GluePrimitive } from "../GlueAST.js";
|
|
5
|
+
import { exists, concat as concat_1, map as map_2, item as item_3, choose, singleton, empty } from "../../fable_modules/fable-library-js.4.14.0/List.js";
|
|
8
6
|
import { Report_readerError_Z19516DCE } from "./Report.js";
|
|
7
|
+
import { contains, filter, singleton as singleton_1, choose as choose_1, map, concat, toList } from "../../fable_modules/fable-library-js.4.14.0/Seq.js";
|
|
8
|
+
import { List_distinct, distinct } from "../../fable_modules/fable-library-js.4.14.0/Seq2.js";
|
|
9
|
+
import { structuralHash, stringHash, safeHash, equals } from "../../fable_modules/fable-library-js.4.14.0/Util.js";
|
|
10
|
+
import { map as map_1, defaultArg, value as value_6 } from "../../fable_modules/fable-library-js.4.14.0/Option.js";
|
|
9
11
|
import { readTypeQueryNode } from "./TypeQueryNode.js";
|
|
10
|
-
import { List_distinct } from "../../fable_modules/fable-library-js.4.14.0/Seq2.js";
|
|
11
|
-
import { structuralHash, equals } from "../../fable_modules/fable-library-js.4.14.0/Util.js";
|
|
12
12
|
import { TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name } from "../TypeScript.Extensions.js";
|
|
13
13
|
|
|
14
14
|
class IntersectionTypePropertyResult extends Union {
|
|
@@ -68,58 +68,76 @@ function readTypeUsingFlags(reader, typ) {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
export function UtilityType_readExclude(reader, typeReferenceNode) {
|
|
71
|
+
let matchValue, activePatternResult_1, item, objectArg, activePatternResult_3, item_1, objectArg_1;
|
|
71
72
|
const typ = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(typeReferenceNode);
|
|
72
|
-
return new GlueType(7, [new GlueTypeUnion(choose((typ_1) => {
|
|
73
|
-
const
|
|
74
|
-
if ($007CHasTypeFlags$007C_$007C(128,
|
|
73
|
+
return new GlueType(7, [new GlueTypeUnion((matchValue = (typ.flags | 0), ($007CHasTypeFlags$007C_$007C(128, matchValue) != null) ? ((activePatternResult_1 = Type_StringLiteral_$007CString$007COther$007C(typ), (activePatternResult_1.tag === 1) ? (((item = Report_readerError_Z19516DCE("Exclude", "Expected a string literal", typeReferenceNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs", 59), (objectArg = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"](), void (objectArg.push(item)))), empty())) : singleton(new GlueType(8, [new GlueLiteral(0, [activePatternResult_1.fields[0]])])))) : (($007CHasTypeFlags$007C_$007C(256, matchValue) != null) ? ((activePatternResult_3 = Type_NumberLiteral_$007CInt$007CFloat$007COther$007C(typ), (activePatternResult_3.tag === 1) ? singleton(new GlueType(8, [new GlueLiteral(2, [activePatternResult_3.fields[0]])])) : ((activePatternResult_3.tag === 2) ? (((item_1 = Report_readerError_Z19516DCE("Exclude", "Expected a number literal", typeReferenceNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs", 69), (objectArg_1 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"](), void (objectArg_1.push(item_1)))), empty())) : singleton(new GlueType(8, [new GlueLiteral(1, [activePatternResult_3.fields[0]])]))))) : choose((typ_1) => {
|
|
74
|
+
const matchValue_1 = typ_1.flags | 0;
|
|
75
|
+
if ($007CHasTypeFlags$007C_$007C(128, matchValue_1) != null) {
|
|
75
76
|
const literalType = typ_1;
|
|
76
77
|
return new GlueType(8, [new GlueLiteral(0, [literalType.value])]);
|
|
77
78
|
}
|
|
78
|
-
else if ($007CHasTypeFlags$007C_$007C(256,
|
|
79
|
-
const
|
|
80
|
-
|
|
79
|
+
else if ($007CHasTypeFlags$007C_$007C(256, matchValue_1) != null) {
|
|
80
|
+
const activePatternResult_6 = Type_NumberLiteral_$007CInt$007CFloat$007COther$007C(typ_1);
|
|
81
|
+
switch (activePatternResult_6.tag) {
|
|
82
|
+
case 1:
|
|
83
|
+
return new GlueType(8, [new GlueLiteral(2, [activePatternResult_6.fields[0]])]);
|
|
84
|
+
case 2: {
|
|
85
|
+
const item_2 = Report_readerError_Z19516DCE("Exclude", "Expected a number literal", typeReferenceNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs", 92);
|
|
86
|
+
const objectArg_2 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
|
|
87
|
+
void (objectArg_2.push(item_2));
|
|
88
|
+
return void 0;
|
|
89
|
+
}
|
|
90
|
+
default:
|
|
91
|
+
return new GlueType(8, [new GlueLiteral(1, [activePatternResult_6.fields[0]])]);
|
|
92
|
+
}
|
|
81
93
|
}
|
|
82
94
|
else {
|
|
83
95
|
return void 0;
|
|
84
96
|
}
|
|
85
|
-
}, toList(typ.types)))]);
|
|
97
|
+
}, toList(typ.types)))))]);
|
|
86
98
|
}
|
|
87
99
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
100
|
+
function UtilityType_readMembers(reader, contextNode, typ) {
|
|
101
|
+
let objectArg;
|
|
102
|
+
return toList(distinct(concat(choose((property) => {
|
|
103
|
+
const matchValue = property.declarations;
|
|
104
|
+
if (matchValue == null) {
|
|
105
|
+
const item = Report_readerError_Z19516DCE("type node", "Missing declarations", contextNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs", 119);
|
|
106
|
+
const objectArg_1 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
|
|
107
|
+
void (objectArg_1.push(item));
|
|
108
|
+
return void 0;
|
|
95
109
|
}
|
|
96
110
|
else {
|
|
97
|
-
|
|
98
|
-
if ((symbol == null) ? true : (symbol.members == null)) {
|
|
99
|
-
return new GlueType(23, []);
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
const patternInput = head(value_2(symbol.members).entries());
|
|
103
|
-
const originalType = value_2(patternInput[1].declarations)[0].parent;
|
|
104
|
-
if (originalType.kind === 264) {
|
|
105
|
-
const interfaceDeclaration = originalType;
|
|
106
|
-
const members = map((declaration) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](declaration), toList(interfaceDeclaration.members));
|
|
107
|
-
return new GlueType(26, [new GlueUtilityType(0, [new GlueInterface(getFullNameOrEmpty(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](), originalType), interfaceDeclaration.name.getText(), members, empty(), empty())])]);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
return new GlueType(0, []);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
111
|
+
return map((declaration) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](declaration), matchValue);
|
|
113
112
|
}
|
|
113
|
+
}, toList((objectArg = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](), objectArg.getPropertiesOfType(typ))))), {
|
|
114
|
+
Equals: equals,
|
|
115
|
+
GetHashCode: safeHash,
|
|
116
|
+
}));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function UtilityType_readPartial(reader, typeReferenceNode) {
|
|
120
|
+
let baseType;
|
|
121
|
+
const node = value_6(typeReferenceNode.typeArguments)[0];
|
|
122
|
+
const objectArg = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]();
|
|
123
|
+
baseType = objectArg.getTypeFromTypeNode(node);
|
|
124
|
+
let members;
|
|
125
|
+
const matchValue = baseType.flags | 0;
|
|
126
|
+
if ($007CHasTypeFlags$007C_$007C(1, matchValue) != null) {
|
|
127
|
+
const item = Report_readerError_Z19516DCE("partial inner type", "Was not able to resolve the inner type, and defaulting to any. If the base type is defined, in another file, please make sure to include it in the input files", typeReferenceNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs", 135);
|
|
128
|
+
const objectArg_1 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
|
|
129
|
+
void (objectArg_1.push(item));
|
|
130
|
+
members = empty();
|
|
114
131
|
}
|
|
115
132
|
else {
|
|
116
|
-
|
|
133
|
+
members = UtilityType_readMembers(reader, typeReferenceNode, baseType);
|
|
117
134
|
}
|
|
135
|
+
return new GlueType(26, [new GlueUtilityType(0, [new GlueInterface(getFullNameOrEmpty(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](), typeReferenceNode), typeReferenceNode.typeName.getText(), members, empty(), empty())])]);
|
|
118
136
|
}
|
|
119
137
|
|
|
120
138
|
export function UtilityType_readRecord(reader, typeReferenceNode) {
|
|
121
139
|
const typeArguments = readTypeArguments(reader, typeReferenceNode);
|
|
122
|
-
return new GlueType(26, [new GlueUtilityType(1, [new GlueRecord(
|
|
140
|
+
return new GlueType(26, [new GlueUtilityType(1, [new GlueRecord(item_3(0, typeArguments), item_3(1, typeArguments))])]);
|
|
123
141
|
}
|
|
124
142
|
|
|
125
143
|
export function UtilityType_readReturnType(reader, typeReferenceNode) {
|
|
@@ -134,7 +152,7 @@ export function UtilityType_readReturnType(reader, typeReferenceNode) {
|
|
|
134
152
|
}
|
|
135
153
|
}
|
|
136
154
|
|
|
137
|
-
export function
|
|
155
|
+
export function UtilityType_readThisParameterType(reader, typeReferenceNode) {
|
|
138
156
|
const typ = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(typeReferenceNode);
|
|
139
157
|
const matchValue = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().typeToTypeNode(typ, void 0, void 0);
|
|
140
158
|
if (matchValue == null) {
|
|
@@ -146,6 +164,95 @@ export function UtilityType_thisParameterType(reader, typeReferenceNode) {
|
|
|
146
164
|
}
|
|
147
165
|
}
|
|
148
166
|
|
|
167
|
+
export function UtilityType_readOmit(reader, typeReferenceNode) {
|
|
168
|
+
let matchValue, item_1, objectArg_3, objectArg_4;
|
|
169
|
+
let keysToOmitType;
|
|
170
|
+
const node = value_6(typeReferenceNode.typeArguments)[1];
|
|
171
|
+
const objectArg = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]();
|
|
172
|
+
keysToOmitType = objectArg.getTypeFromTypeNode(node);
|
|
173
|
+
const tryReadValueOfKeys = (typ) => {
|
|
174
|
+
const activePatternResult = Type_StringLiteral_$007CString$007COther$007C(typ);
|
|
175
|
+
if (activePatternResult.tag === 1) {
|
|
176
|
+
const item = Report_readerError_Z19516DCE("keysToOmit", "Expected a string literal", typeReferenceNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs", 206);
|
|
177
|
+
const objectArg_1 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
|
|
178
|
+
void (objectArg_1.push(item));
|
|
179
|
+
return void 0;
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
return activePatternResult.fields[0];
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
const keysToOmit = keysToOmitType.isUnion() ? choose_1(tryReadValueOfKeys, keysToOmitType.types) : defaultArg(map_1(singleton_1, tryReadValueOfKeys(keysToOmitType)), []);
|
|
186
|
+
let baseType;
|
|
187
|
+
const node_1 = value_6(typeReferenceNode.typeArguments)[0];
|
|
188
|
+
const objectArg_2 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]();
|
|
189
|
+
baseType = objectArg_2.getTypeFromTypeNode(node_1);
|
|
190
|
+
return new GlueType(26, [new GlueUtilityType(4, [choose((property) => {
|
|
191
|
+
const matchValue_1 = property.declarations;
|
|
192
|
+
if (matchValue_1 == null) {
|
|
193
|
+
throw new Error(Report_readerError_Z19516DCE("type node", "Missing declarations", typeReferenceNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs", 258));
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
const declarations = matchValue_1;
|
|
197
|
+
if (declarations.length === 1) {
|
|
198
|
+
return reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](declarations[0]);
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
const item_2 = Report_readerError_Z19516DCE("type node", "Expected exactly one declaration", typeReferenceNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs", 249);
|
|
202
|
+
const objectArg_5 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
|
|
203
|
+
void (objectArg_5.push(item_2));
|
|
204
|
+
return void 0;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}, toList(filter((prop) => !contains(prop.name, keysToOmit, {
|
|
208
|
+
Equals: (x, y) => (x === y),
|
|
209
|
+
GetHashCode: stringHash,
|
|
210
|
+
}), (matchValue = (baseType.flags | 0), ($007CHasTypeFlags$007C_$007C(1, matchValue) != null) ? (((item_1 = Report_readerError_Z19516DCE("omit base type", "Was not able to resolve the base type, and defaulting to any. If the base type is defined, in another file, please make sure to include it in the input files", typeReferenceNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs", 226), (objectArg_3 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"](), void (objectArg_3.push(item_1)))), [])) : ((objectArg_4 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](), objectArg_4.getPropertiesOfType(baseType)))))))])]);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export function UtilityType_readReadonly(reader, typeReferenceNode) {
|
|
214
|
+
const typ = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(typeReferenceNode);
|
|
215
|
+
const matchValue = typ.flags | 0;
|
|
216
|
+
let matchResult;
|
|
217
|
+
if ($007CHasTypeFlags$007C_$007C(524288, matchValue) != null) {
|
|
218
|
+
matchResult = 0;
|
|
219
|
+
}
|
|
220
|
+
else if ($007CHasTypeFlags$007C_$007C(2097152, matchValue) != null) {
|
|
221
|
+
matchResult = 0;
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
matchResult = 1;
|
|
225
|
+
}
|
|
226
|
+
switch (matchResult) {
|
|
227
|
+
case 0:
|
|
228
|
+
return new GlueType(26, [new GlueUtilityType(5, [new GlueReadonly(0, [UtilityType_readMembers(reader, typeReferenceNode, typ)])])]);
|
|
229
|
+
default:
|
|
230
|
+
if ($007CHasTypeFlags$007C_$007C(1048576, matchValue) != null) {
|
|
231
|
+
const unionType = typ;
|
|
232
|
+
try {
|
|
233
|
+
return new GlueType(26, [new GlueUtilityType(5, [new GlueReadonly(1, [toList(choose_1((innerType) => {
|
|
234
|
+
let copyOfStruct, Name;
|
|
235
|
+
if ((copyOfStruct = innerType.flags, (copyOfStruct & 524288) !== 0)) {
|
|
236
|
+
return (Name = value_6(innerType.aliasTypeArguments)[0].symbol.name, new GlueInterface(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getFullyQualifiedName(value_6(innerType.aliasTypeArguments)[0].symbol), Name, UtilityType_readMembers(reader, typeReferenceNode, innerType), empty(), empty()));
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
return void 0;
|
|
240
|
+
}
|
|
241
|
+
}, unionType.types))])])]);
|
|
242
|
+
}
|
|
243
|
+
catch (matchValue_1) {
|
|
244
|
+
const item = Report_readerError_Z19516DCE("Readonly", "Unable to read the members of the union type", typeReferenceNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs", 307);
|
|
245
|
+
const objectArg = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
|
|
246
|
+
void (objectArg.push(item));
|
|
247
|
+
return new GlueType(3, [new GluePrimitive(6, [])]);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
else {
|
|
251
|
+
return new GlueType(3, [new GluePrimitive(6, [])]);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
149
256
|
export function readTypeNode(reader, typeNode) {
|
|
150
257
|
const checker = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]();
|
|
151
258
|
const matchValue = typeNode.kind | 0;
|
|
@@ -178,9 +285,9 @@ export function readTypeNode(reader, typeNode) {
|
|
|
178
285
|
const typeReferenceNode = typeNode;
|
|
179
286
|
const symbolOpt = checker.getSymbolAtLocation(typeReferenceNode.typeName);
|
|
180
287
|
const readTypeReference = (isStandardLibrary) => {
|
|
181
|
-
const matchValue_1 =
|
|
288
|
+
const matchValue_1 = value_6(symbolOpt).flags | 0;
|
|
182
289
|
if ($007CHasSymbolFlags$007C_$007C(262144, matchValue_1) != null) {
|
|
183
|
-
return new GlueType(16, [
|
|
290
|
+
return new GlueType(16, [value_6(symbolOpt).name]);
|
|
184
291
|
}
|
|
185
292
|
else {
|
|
186
293
|
return new GlueType(13, [new GlueTypeReference(typeReferenceNode.typeName.getText(), getFullNameOrEmpty(checker, typeReferenceNode.typeName), readTypeArguments(reader, typeReferenceNode), isStandardLibrary)]);
|
|
@@ -198,7 +305,11 @@ export function readTypeNode(reader, typeNode) {
|
|
|
198
305
|
case "ReturnType":
|
|
199
306
|
return UtilityType_readReturnType(reader, typeReferenceNode);
|
|
200
307
|
case "ThisParameterType":
|
|
201
|
-
return
|
|
308
|
+
return UtilityType_readThisParameterType(reader, typeReferenceNode);
|
|
309
|
+
case "Omit":
|
|
310
|
+
return UtilityType_readOmit(reader, typeReferenceNode);
|
|
311
|
+
case "Readonly":
|
|
312
|
+
return UtilityType_readReadonly(reader, typeReferenceNode);
|
|
202
313
|
default:
|
|
203
314
|
return readTypeReference(true);
|
|
204
315
|
}
|
|
@@ -215,7 +326,7 @@ export function readTypeNode(reader, typeNode) {
|
|
|
215
326
|
typeParameters = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](typParameters);
|
|
216
327
|
}
|
|
217
328
|
catch (matchValue_3) {
|
|
218
|
-
void (reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(Report_readerError_Z19516DCE("FunctionType", "Unable to find TypeParameters information", functionTypeNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs",
|
|
329
|
+
void (reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(Report_readerError_Z19516DCE("FunctionType", "Unable to find TypeParameters information", functionTypeNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs", 384)));
|
|
219
330
|
typeParameters = empty();
|
|
220
331
|
}
|
|
221
332
|
return new GlueType(15, [new GlueFunctionType(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](typeNode), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](functionTypeNode.type), typeParameters, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](functionTypeNode.parameters))]);
|
|
@@ -226,7 +337,7 @@ export function readTypeNode(reader, typeNode) {
|
|
|
226
337
|
return readTypeQueryNode(reader, typeNode);
|
|
227
338
|
case 187: {
|
|
228
339
|
const typeLiteralNode = typeNode;
|
|
229
|
-
return new GlueType(21, [new GlueTypeLiteral(
|
|
340
|
+
return new GlueType(21, [new GlueTypeLiteral(map_2((declaration_3) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](declaration_3), toList(typeLiteralNode.members)))]);
|
|
230
341
|
}
|
|
231
342
|
case 188: {
|
|
232
343
|
const arrayTypeNode = typeNode;
|
|
@@ -234,7 +345,7 @@ export function readTypeNode(reader, typeNode) {
|
|
|
234
345
|
}
|
|
235
346
|
case 189: {
|
|
236
347
|
const tupleTypeNode = typeNode;
|
|
237
|
-
return new GlueType(18, [
|
|
348
|
+
return new GlueType(18, [map_2((element) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](element), toList(tupleTypeNode.elements))]);
|
|
238
349
|
}
|
|
239
350
|
case 190: {
|
|
240
351
|
const optionalTypeNode = typeNode;
|
|
@@ -248,7 +359,7 @@ export function readTypeNode(reader, typeNode) {
|
|
|
248
359
|
const properties = choose((property) => {
|
|
249
360
|
const matchValue_7 = property.declarations;
|
|
250
361
|
if (matchValue_7 == null) {
|
|
251
|
-
throw new Error(Report_readerError_Z19516DCE("type node", "Missing declarations", typeNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs",
|
|
362
|
+
throw new Error(Report_readerError_Z19516DCE("type node", "Missing declarations", typeNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs", 495));
|
|
252
363
|
}
|
|
253
364
|
else {
|
|
254
365
|
const declarations_1 = matchValue_7;
|
|
@@ -259,7 +370,7 @@ export function readTypeNode(reader, typeNode) {
|
|
|
259
370
|
return new IntersectionTypePropertyResult(1, []);
|
|
260
371
|
}
|
|
261
372
|
}
|
|
262
|
-
}, unionOrIntersectionType.isUnion() ? List_distinct(
|
|
373
|
+
}, unionOrIntersectionType.isUnion() ? List_distinct(concat_1(map_2((arg) => toList(checker.getPropertiesOfType(arg)), toList(unionOrIntersectionType.types))), {
|
|
263
374
|
Equals: equals,
|
|
264
375
|
GetHashCode: structuralHash,
|
|
265
376
|
}) : toList(unionOrIntersectionType.getProperties()));
|
|
@@ -359,7 +470,7 @@ export function readTypeNode(reader, typeNode) {
|
|
|
359
470
|
const literalTypeNode = typeNode;
|
|
360
471
|
const matchValue_4 = tryReadLiteral(literalTypeNode.literal);
|
|
361
472
|
if (matchValue_4 == null) {
|
|
362
|
-
throw new Error(Report_readerError_Z19516DCE("type node - literal type", "Could not read literal type", typeNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs",
|
|
473
|
+
throw new Error(Report_readerError_Z19516DCE("type node - literal type", "Could not read literal type", typeNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs", 413));
|
|
363
474
|
}
|
|
364
475
|
else {
|
|
365
476
|
return new GlueType(8, [matchValue_4]);
|
|
@@ -371,11 +482,11 @@ export function readTypeNode(reader, typeNode) {
|
|
|
371
482
|
return new GlueType(25, []);
|
|
372
483
|
case 233: {
|
|
373
484
|
const expression = typeNode;
|
|
374
|
-
const
|
|
375
|
-
return new GlueType(13, [new GlueTypeReference(expression.expression.getText(), getFullNameOrEmpty(checker, expression.expression), readTypeArguments(reader, expression), isFromEs5Lib(
|
|
485
|
+
const typ_1 = checker.getTypeFromTypeNode(expression);
|
|
486
|
+
return new GlueType(13, [new GlueTypeReference(expression.expression.getText(), getFullNameOrEmpty(checker, expression.expression), readTypeArguments(reader, expression), isFromEs5Lib(typ_1.aliasSymbol))]);
|
|
376
487
|
}
|
|
377
488
|
default: {
|
|
378
|
-
const item = Report_readerError_Z19516DCE("type node", `Unsupported kind ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(typeNode.kind)}`, typeNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs",
|
|
489
|
+
const item = Report_readerError_Z19516DCE("type node", `Unsupported kind ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(typeNode.kind)}`, typeNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeNode.fs", 600);
|
|
379
490
|
const objectArg = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
|
|
380
491
|
void (objectArg.push(item));
|
|
381
492
|
return new GlueType(3, [new GluePrimitive(6, [])]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeNode.fs"],"names":["matchValue","typ","declarations","declaration","reader","typeReferenceNode","literalType","
|
|
1
|
+
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeNode.fs"],"names":["matchValue","typ","declarations","declaration","reader","activePatternResult5542","item","objectArg","activePatternResult5546","typeReferenceNode","literalType","activePatternResult5554","property","contextNode","baseType","node","members","readMembers","typeArguments","readTypeUsingFlags","typeNode","keysToOmitType","tryReadValueOfKeys","activePatternResult5602","keysToOmit","prop","unionType","copyOfStruct","Name","innerType","checker","symbolOpt","readTypeReference","isStandardLibrary","readExclude","readPartial","readRecord","readReturnType","readThisParameterType","readOmit","readReadonly","functionTypeNode","typeParameters","typParameters","typeLiteralNode","arrayTypeNode","tupleTypeNode","element","optionalTypeNode","intersectionTypeNode","unionOrIntersectionType","properties","_arg1","conditionalTypeNode","forward","parenthesizedTypeNode","thisTypeNode","classDeclaration","typeOperatorNode","indexedAccessType","literalTypeNode","expression"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeUA,uBAAA,AAAAC;AACJ,QADI,AACJ,6BAAa,QADTD;AAGIA,6BAAA,AAAAC;AAAA,YAAA,AAAAD;AAoBI,mBAAA,iBAAmB;;;AAnBtBE,iCACCF;AAAAG,gCAAc,AAAAD,aAAc;AAE1BF,iCAAA,AAAAG;oBAAAH;qBAAA;AASC,2BAAA,kBAPH,yBACW,AAAAC,iBACQ,SACL,SACO,SACC;qBAPpB;AAa\u002BB,2BAAA;;AAC9B,2BAAA,AAAAG,6EAAgBD;;;;SAG7B,IAxBI,AAwBJ,6BAAa,GAxBTH;AAwBgC,eAAA,iBAAmB;;SACvD,IAzBI,AAyBJ,6BAAa,GAzBTA;AAyBgC,eAAA,iBAAmB;;SACvD,IA1BI,AA0BJ,6BAAa,IA1BTA;AA0BiC,eAAA,iBAAmB;;SACxD,IA3BI,AA2BJ,6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AvC,uFAA0B,AAAAqD;;;;AACvB,AAhBfd,8CAgBe;;;;AAQhB,mBAAA,kBALF,iBACU,AAAA1C,iBACU0C;;aAjInB;AA6NEe,qCAAmBtC;AAEvB,mBAAA,AAAAhB,0FAA4BsD;;aA/N1B;AA\u002BQEC,sCAAoBvC;AACxB,mBAAA,AAAAhB,2FAA6BuD;;aAhR3B;AAqFEC,oCAAkBxC;AAIhBpB,iCAAA,eAF8C,AAAA4D;AAE9C,gBAAA,AAAA5D;AAQC,gCALH,6BACI,4BACA,\u002BBACAoB,UAHJ,8GAAA;;;AAFc,uBAAA,iBAAApB;;;aA1FhB;AAsOF,mBAAA,AAAAI,0FAA4BgB;aAtO1B;AA4QiC,mBAAA;aA5QjC;AA2OEyC,\u002BBAAazC;AAEbnB,0BAAM,AAAA6B,4BAA4B\u002BB;AAcnC,mBAAA,kBANF,sBACU,AAAAA,iCACI,mBAAmB/B,SAAQ,AAAA\u002BB,wBACtB,kBAAkBzD,QAAOyD,aACrB,aAAa,AAAA5D;;;AA\u002BBlCK,yBADH,6BAAoB,aAAa,oBAAsB,8CAAA,AAAAc,kBAAsBA,UAA7E,8GAAA;AACGb,8BAAA,AAAAH;AAAA,kBAAAG,eAAAD;AAEH,mBAAA,iBAAmB","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -16,12 +16,12 @@ export function readTypeOperatorNode(reader, node) {
|
|
|
16
16
|
const symbol = symbolOpt;
|
|
17
17
|
const matchValue_2 = symbol.declarations;
|
|
18
18
|
if (matchValue_2 == null) {
|
|
19
|
-
throw new Error(Report_readerError_Z19516DCE("type operator (keyof)", "Missing declarations", node, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeOperatorNode.fs",
|
|
19
|
+
throw new Error(Report_readerError_Z19516DCE("type operator (keyof)", "Missing declarations", node, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeOperatorNode.fs", 39));
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
22
|
const declarations = matchValue_2;
|
|
23
23
|
if (declarations.length !== 1) {
|
|
24
|
-
throw new Error(Report_readerError_Z19516DCE("type operator (keyof)", "Expected exactly one declaration", node, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeOperatorNode.fs",
|
|
24
|
+
throw new Error(Report_readerError_Z19516DCE("type operator (keyof)", "Expected exactly one declaration", node, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeOperatorNode.fs", 28));
|
|
25
25
|
}
|
|
26
26
|
else {
|
|
27
27
|
return new GlueType(9, [reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](declarations[0])]);
|
|
@@ -29,19 +29,19 @@ export function readTypeOperatorNode(reader, node) {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
else {
|
|
32
|
-
throw new Error(Report_readerError_Z19516DCE("type operator (keyof)", "Missing symbol", node, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeOperatorNode.fs",
|
|
32
|
+
throw new Error(Report_readerError_Z19516DCE("type operator (keyof)", "Missing symbol", node, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeOperatorNode.fs", 21));
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
case 186:
|
|
36
36
|
return new GlueType(9, [readTypeQueryNode(reader, node.type)]);
|
|
37
37
|
default:
|
|
38
|
-
throw new Error(Report_readerError_Z19516DCE("type operator (keyof)", `Was expecting a type reference instead got a Node of type ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(node.type.kind)}`, node, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeOperatorNode.fs",
|
|
38
|
+
throw new Error(Report_readerError_Z19516DCE("type operator (keyof)", `Was expecting a type reference instead got a Node of type ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(node.type.kind)}`, node, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeOperatorNode.fs", 48));
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
case 148:
|
|
42
42
|
return new GlueType(29, [reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](node.type)]);
|
|
43
43
|
default: {
|
|
44
|
-
const item = Report_readerError_Z19516DCE("type operator", `Unsupported operator ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(node.operator)}`, node, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeOperatorNode.fs",
|
|
44
|
+
const item = Report_readerError_Z19516DCE("type operator", `Unsupported operator ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(node.operator)}`, node, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeOperatorNode.fs", 58);
|
|
45
45
|
const objectArg = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
|
|
46
46
|
void (objectArg.push(item));
|
|
47
47
|
return new GlueType(3, [new GluePrimitive(6, [])]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeOperatorNode.fs"],"names":["matchValue","node","typeReferenceNode","symbolOpt","reader","symbol","declarations","item","objectArg"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeOperatorNode.fs"],"names":["matchValue","node","typeReferenceNode","symbolOpt","reader","symbol","declarations","item","objectArg"],"mappings":";;;;;;AASUA,uBAAA,AAAAC;YAAAD;aAAA;AAEIA,iCAAA,AAAAC;oBAAAD;qBAAA;AAEEE,8CAAoB,AAAAD;AAGpBE,sCAAY,AAAAC,8FAAqC,AAAAF;AAE/C,wBAAA,AAAAC;AAICE,uCACGF;AAAAH,6CAAA,AAAAK;AAAA,4BAAA,AAAAL;AAgBC,4CADH,6BAAoB,yBAAyB,wBAAwBC,MAArE,sHAAA;;;AAdGK,iDAEHN;AAAA,gCAAG,AAAAM,wBAAsB;AAMlB,gDALH,6BACI,yBACA,oCACAL,MAHJ,sHAAA;;;AAQmC,uCAAA,iBAAnC,AAAAG,6EAAgB,AAAAE,aAAa;;;;;AAfmC,wCAAxE,6BAAoB,yBAAyB,kBAAkBL,MAA/D,sHAAA;;;qBATF;AAiCsD,2BAAA,iBAAxD,kBAAgCG,QAFZ,AAAAH;;AAUjB,oCALH,6BACI,yBACA,6DAA\u002BD,8CAAA,AAAAA,mBAC/DA,MAHJ,sHAAA;;;aAtCF;AA6CkE,mBAAA,kBAArC,AAAAG,iFAAoB,AAAAH;;AAIhDM,yBADH,6BAAoB,iBAAiB,wBAA0B,8CAAA,AAAAN,kBAAsBA,MAArF,sHAAA;AACGO,8BAAA,AAAAJ;AAAA,kBAAAI,eAAAD;AAEH,mBAAA,iBAAmB","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeParameters.fs"],"names":["typeParameters","typeParameter","reader","typNode"],"mappings":";;;;;;AAWU,QAAA,AAAAA;AAKC,eAAA,wBACC,sBACW,AAAAC,
|
|
1
|
+
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeParameters.fs"],"names":["typeParameters","typeParameter","reader","typNode"],"mappings":";;;;;;AAWU,QAAA,AAAAA;AAKC,eAAA,wBACC,sBACW,AAAAC,8BACsC,mBAAW,AAAAC,iFAAAC,UAA3C,AAAAF,2BACH,UALf,OADHD;;;AAFM,eAAA","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -37,7 +37,7 @@ export function readTypeQueryNode(reader, typeQueryNode) {
|
|
|
37
37
|
let _arg_5;
|
|
38
38
|
let input_9;
|
|
39
39
|
const option = checker.getSymbolAtLocation(exprName);
|
|
40
|
-
const error = Report_readerError_Z19516DCE("type node (TypeQuery)", "Missing symbol", typeQueryNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeQueryNode.fs",
|
|
40
|
+
const error = Report_readerError_Z19516DCE("type node (TypeQuery)", "Missing symbol", typeQueryNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeQueryNode.fs", 29);
|
|
41
41
|
const option_1 = option;
|
|
42
42
|
input_9 = ((option_1 == null) ? (new FSharpResult$2(1, [error])) : (new FSharpResult$2(0, [option_1])));
|
|
43
43
|
if (input_9.tag === 1) {
|
|
@@ -46,7 +46,7 @@ export function readTypeQueryNode(reader, typeQueryNode) {
|
|
|
46
46
|
else {
|
|
47
47
|
let input_7;
|
|
48
48
|
const option_2 = input_9.fields[0].declarations;
|
|
49
|
-
const error_2 = Report_readerError_Z19516DCE("type node (TypeQuery)", "Missing declarations", typeQueryNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeQueryNode.fs",
|
|
49
|
+
const error_2 = Report_readerError_Z19516DCE("type node (TypeQuery)", "Missing declarations", typeQueryNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeQueryNode.fs", 39);
|
|
50
50
|
const option_3 = option_2;
|
|
51
51
|
input_7 = ((option_3 == null) ? (new FSharpResult$2(1, [error_2])) : (new FSharpResult$2(0, [option_3])));
|
|
52
52
|
if (input_7.tag === 1) {
|
|
@@ -54,7 +54,7 @@ export function readTypeQueryNode(reader, typeQueryNode) {
|
|
|
54
54
|
}
|
|
55
55
|
else {
|
|
56
56
|
const declarations = input_7.fields[0];
|
|
57
|
-
const input_5 = (declarations.length !== 1) ? (new FSharpResult$2(1, [Report_readerError_Z19516DCE("type node (TypeQuery)", "Expected exactly one declaration", typeQueryNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeQueryNode.fs",
|
|
57
|
+
const input_5 = (declarations.length !== 1) ? (new FSharpResult$2(1, [Report_readerError_Z19516DCE("type node (TypeQuery)", "Expected exactly one declaration", typeQueryNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeQueryNode.fs", 48)])) : (new FSharpResult$2(0, [declarations[0]]));
|
|
58
58
|
if (input_5.tag === 1) {
|
|
59
59
|
_arg_5 = (new FSharpResult$2(1, [input_5.fields[0]]));
|
|
60
60
|
}
|
|
@@ -62,14 +62,14 @@ export function readTypeQueryNode(reader, typeQueryNode) {
|
|
|
62
62
|
const declaration = input_5.fields[0];
|
|
63
63
|
let input_3;
|
|
64
64
|
const matchValue_3 = declaration.kind | 0;
|
|
65
|
-
input_3 = ((matchValue_3 === 260) ? (new FSharpResult$2(0, [declaration])) : (new FSharpResult$2(1, [Report_readerError_Z19516DCE("type node (TypeQuery)", `Unsupported declaration kind ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(matchValue_3)}`, typeQueryNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeQueryNode.fs",
|
|
65
|
+
input_3 = ((matchValue_3 === 260) ? (new FSharpResult$2(0, [declaration])) : (new FSharpResult$2(1, [Report_readerError_Z19516DCE("type node (TypeQuery)", `Unsupported declaration kind ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(matchValue_3)}`, typeQueryNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeQueryNode.fs", 64)])));
|
|
66
66
|
if (input_3.tag === 1) {
|
|
67
67
|
_arg_5 = (new FSharpResult$2(1, [input_3.fields[0]]));
|
|
68
68
|
}
|
|
69
69
|
else {
|
|
70
70
|
let input_1;
|
|
71
71
|
const option_4 = input_3.fields[0].type;
|
|
72
|
-
const error_4 = Report_readerError_Z19516DCE("type node (TypeQuery)", "Missing type", typeQueryNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeQueryNode.fs",
|
|
72
|
+
const error_4 = Report_readerError_Z19516DCE("type node (TypeQuery)", "Missing type", typeQueryNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeQueryNode.fs", 74);
|
|
73
73
|
const option_5 = option_4;
|
|
74
74
|
input_1 = ((option_5 == null) ? (new FSharpResult$2(1, [error_4])) : (new FSharpResult$2(0, [option_5])));
|
|
75
75
|
if (input_1.tag === 1) {
|
|
@@ -83,7 +83,7 @@ export function readTypeQueryNode(reader, typeQueryNode) {
|
|
|
83
83
|
_arg_5 = (new FSharpResult$2(0, [reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeOperatorNodeZ6830FC33"](typeOperatorNode)]));
|
|
84
84
|
}
|
|
85
85
|
else {
|
|
86
|
-
_arg_5 = (new FSharpResult$2(1, [Report_readerError_Z19516DCE("type node (TypeQuery)", `Unsupported declaration kind ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(matchValue_4)}`, typeQueryNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeQueryNode.fs",
|
|
86
|
+
_arg_5 = (new FSharpResult$2(1, [Report_readerError_Z19516DCE("type node (TypeQuery)", `Unsupported declaration kind ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(matchValue_4)}`, typeQueryNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeQueryNode.fs", 84)]));
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -99,7 +99,7 @@ export function readTypeQueryNode(reader, typeQueryNode) {
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
else {
|
|
102
|
-
const warning_1 = Report_readerError_Z19516DCE("type node (TypeQuery)", "Expected an Identifier", typeQueryNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeQueryNode.fs",
|
|
102
|
+
const warning_1 = Report_readerError_Z19516DCE("type node (TypeQuery)", "Expected an Identifier", typeQueryNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/TypeQueryNode.fs", 100);
|
|
103
103
|
void (reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(warning_1));
|
|
104
104
|
return new GlueType(3, [new GluePrimitive(6, [])]);
|
|
105
105
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeQueryNode.fs","../../fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs","../../fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs"],"names":["checker","reader","typ","typeQueryNode","matchValue","exprNameKind","symbol","declarations","declaration","exprName","_arg6","input","option","error","typeNode","typeOperatorNode","warning"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeQueryNode.fs","../../fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs","../../fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs"],"names":["checker","reader","typ","typeQueryNode","matchValue","exprNameKind","symbol","declarations","declaration","exprName","_arg6","input","option","error","typeNode","typeOperatorNode","warning"],"mappings":";;;;;;;;AAWQA,oBAAU,AAAAC;AACVC,gBAAM,AAAAF,0BAA4B,AAAAG;AAEhCC,uBAAA,AAAAF;AACJ,QADI,AACJ,6BAAa,QADTE;AAGEC,6BAA8B,AAAAF;6BAE5B,AAAAD;AAAA,YAAA;AAyFCI;AAEGF,iCAAA,AAAAE;AAAA,gBAAA,AAAAF;AAoBI,uBAAA,iBAAmB;;;AAnBtBG,u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