@glutinum/cli 0.12.0 → 0.13.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.
Files changed (45) hide show
  1. package/README.md +16 -2
  2. package/dist/Glutinum.Converter/FsharpAST.js +15 -10
  3. package/dist/Glutinum.Converter/FsharpAST.js.map +1 -1
  4. package/dist/Glutinum.Converter/GlueAST.js +124 -7
  5. package/dist/Glutinum.Converter/GlueAST.js.map +1 -1
  6. package/dist/Glutinum.Converter/Merge.js +1 -1
  7. package/dist/Glutinum.Converter/Merge.js.map +1 -1
  8. package/dist/Glutinum.Converter/Printer.js +34 -9
  9. package/dist/Glutinum.Converter/Printer.js.map +1 -1
  10. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +1 -1
  11. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js.map +1 -1
  12. package/dist/Glutinum.Converter/Reader/Declaration.js +2 -2
  13. package/dist/Glutinum.Converter/Reader/Declaration.js.map +1 -1
  14. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js +2 -2
  15. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js.map +1 -1
  16. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js +1 -1
  17. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js.map +1 -1
  18. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js +1 -1
  19. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js.map +1 -1
  20. package/dist/Glutinum.Converter/Reader/MappedTypeNode.js +1 -1
  21. package/dist/Glutinum.Converter/Reader/MappedTypeNode.js.map +1 -1
  22. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js +2 -1
  23. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js.map +1 -1
  24. package/dist/Glutinum.Converter/Reader/Node.js +1 -1
  25. package/dist/Glutinum.Converter/Reader/Node.js.map +1 -1
  26. package/dist/Glutinum.Converter/Reader/Parameters.js +1 -1
  27. package/dist/Glutinum.Converter/Reader/Parameters.js.map +1 -1
  28. package/dist/Glutinum.Converter/Reader/TypeNode.js +45 -37
  29. package/dist/Glutinum.Converter/Reader/TypeNode.js.map +1 -1
  30. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js +5 -5
  31. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js.map +1 -1
  32. package/dist/Glutinum.Converter/Reader/TypeParameters.js +1 -1
  33. package/dist/Glutinum.Converter/Reader/TypeParameters.js.map +1 -1
  34. package/dist/Glutinum.Converter/Reader/TypeQueryNode.js +8 -8
  35. package/dist/Glutinum.Converter/Reader/TypeQueryNode.js.map +1 -1
  36. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +2 -2
  37. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js.map +1 -1
  38. package/dist/Glutinum.Converter/Reader/VariableStatement.js +1 -1
  39. package/dist/Glutinum.Converter/Reader/VariableStatement.js.map +1 -1
  40. package/dist/Glutinum.Converter/Transform.js +612 -212
  41. package/dist/Glutinum.Converter/Transform.js.map +1 -1
  42. package/dist/Glutinum.Converter/Utils/Naming.js +18 -5
  43. package/dist/Glutinum.Converter/Utils/Naming.js.map +1 -1
  44. package/dist/fable_modules/project_cracked.json +1 -1
  45. package/package.json +2 -2
@@ -12,7 +12,7 @@ function readEnumMembers(checker, state, enumMember) {
12
12
  const initializer = matchValue;
13
13
  const matchValue_2 = tryReadLiteral(initializer);
14
14
  if (matchValue_2 == null) {
15
- throw new Error(Report_readerError_Z19516DCE("enum member", "readEnumCases: Unsupported enum initializer", initializer, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/EnumDeclaration.fs", 49));
15
+ throw new Error(Report_readerError_Z19516DCE("enum member", "readEnumCases: Unsupported enum initializer", initializer, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/EnumDeclaration.fs", 49));
16
16
  }
17
17
  else {
18
18
  const glueLiteral = matchValue_2;
@@ -44,7 +44,7 @@ function readEnumMembers(checker, state, enumMember) {
44
44
  break;
45
45
  }
46
46
  default:
47
- throw new Error(Report_readerError_Z19516DCE("enum member", "Boolean and null literals are not supported in enums", initializer, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/EnumDeclaration.fs", 41));
47
+ throw new Error(Report_readerError_Z19516DCE("enum member", "Boolean and null literals are not supported in enums", initializer, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/EnumDeclaration.fs", 41));
48
48
  }
49
49
  }
50
50
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Glutinum.Converter/Reader/EnumDeclaration.fs"],"names":["num","str","caseValue","matchValue","enumMember","initializer","glueLiteral","value","checker","state","name","NextCaseIndex","initialState","readEnumResults","list","enumDeclaration","reader","readEnumMembers"],"mappings":";;;;;;;QAyB4BA,KADAC;AAJpBC;AACMC,uBAAA,AAAAC;AAAA,QAAA,AAAAD;AAUCE,4BACGF;AAAAA,6BAAA,eAAeE;AAAf,YAAA,AAAAF;AAqBC,4BALH,6BACI,eACA,\u002BCACAE,aAHJ,qHAAA;;;AAfGC,gCACGH;6BAGmBI;oBAHnBD;;;;;;;;AAGmBC,4BAHnBD;;;;;AAGmBC,4BAHnBD;;;;;AAGmBC,4BAHnBD;;;;;AAddJ,gCAiB0CK;;;;AAQ3B,oCALH,6BACI,eACA,wDACAF,aAHJ,qHAAA;;;;;AAjBFF,6BAAA,AAAAK,yBAA4BJ;AAA5B,AAHVF,qBAGU,CAAA,AAAAC,yBAOI,oBAAgB,AAAAM,0BAPpB,CAAA,OACJN,\u002BBACcH,MADdG,cAEE,AAAG,qBAAkCH,QACjC,sBAAoBA,UAEpB,oBAAkBA,aALVC,MAAdE,cAAsB,oBAAmBF;;AA\u002BB/CS,iBAA4B,AAAAN;AAWlBO,2BAAA,CAAA,AAAAT,wBAKiB,AAAAA,sBAAI,MAGpB,AAAAO,sBAAsB;;iBACvB,OAAA,AAAAA,eAAgB,UAjB1B,mBACW,AAAAC,gBACCR;uBAMFS;;;;;QAsBIH;AALdI;iBAA\u002BC;uBAAb;;AAElCC;AAGGC,iBADA,MADH,AAAAC;AAEG,AAHHF,sBAGG,eAAWL,UAAgB,AAAAQ,uGAAhB,AAAAC,gBAAAT,SAAAC,OAAAL,gBAAXQ,cAAAE;AAEP,WAAA,aACW,AAAAC,gCACG,AAAAF","file":null,"sourcesContent":null,"sourceRoot":null}
1
+ {"version":3,"sources":["../../../src/Glutinum.Converter/Reader/EnumDeclaration.fs"],"names":["num","str","caseValue","matchValue","enumMember","initializer","glueLiteral","value","checker","state","name","NextCaseIndex","initialState","readEnumResults","list","enumDeclaration","reader","readEnumMembers"],"mappings":";;;;;;;QAyB4BA,KADAC;AAJpBC;AACMC,uBAAA,AAAAC;AAAA,QAAA,AAAAD;AAUCE,4BACGF;AAAAA,6BAAA,eAAeE;AAAf,YAAA,AAAAF;AAqBC,4BALH,6BACI,eACA,\u002BCACAE,aAHJ,0GAAA;;;AAfGC,gCACGH;6BAGmBI;oBAHnBD;;;;;;;;AAGmBC,4BAHnBD;;;;;AAGmBC,4BAHnBD;;;;;AAGmBC,4BAHnBD;;;;;AAddJ,gCAiB0CK;;;;AAQ3B,oCALH,6BACI,eACA,wDACAF,aAHJ,0GAAA;;;;;AAjBFF,6BAAA,AAAAK,yBAA4BJ;AAA5B,AAHVF,qBAGU,CAAA,AAAAC,yBAOI,oBAAgB,AAAAM,0BAPpB,CAAA,OACJN,\u002BBACcH,MADdG,cAEE,AAAG,qBAAkCH,QACjC,sBAAoBA,UAEpB,oBAAkBA,aALVC,MAAdE,cAAsB,oBAAmBF;;AA\u002BB/CS,iBAA4B,AAAAN;AAWlBO,2BAAA,CAAA,AAAAT,wBAKiB,AAAAA,sBAAI,MAGpB,AAAAO,sBAAsB;;iBACvB,OAAA,AAAAA,eAAgB,UAjB1B,mBACW,AAAAC,gBACCR;uBAMFS;;;;;QAsBIH;AALdI;iBAA\u002BC;uBAAb;;AAElCC;AAGGC,iBADA,MADH,AAAAC;AAEG,AAHHF,sBAGG,eAAWL,UAAgB,AAAAQ,uGAAhB,AAAAC,gBAAAT,SAAAC,OAAAL,gBAAXQ,cAAAE;AAEP,WAAA,aACW,AAAAC,gCACG,AAAAF","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -9,7 +9,7 @@ export function readFunctionDeclaration(reader, declaration) {
9
9
  let name_1;
10
10
  const matchValue_1 = declaration.name;
11
11
  if (matchValue_1 == null) {
12
- throw new Error(Report_readerError_Z19516DCE("function declaration", "Missing name", declaration, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/FunctionDeclaration.fs", 25));
12
+ throw new Error(Report_readerError_Z19516DCE("function declaration", "Missing name", declaration, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/FunctionDeclaration.fs", 25));
13
13
  }
14
14
  else {
15
15
  const name = matchValue_1;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Glutinum.Converter/Reader/FunctionDeclaration.fs"],"names":["isDeclared","matchValue","declaration","modifier","name","reader"],"mappings":";;;;;AAaQA;AACMC,uBAAA,AAAAC;AAAA,AADNF,kBACM,CAAA,AAAAC,sBAII,QADH,sBAA4B,AAAAE,kBAAgB,MAD/CF;AAIJG;AACMH,yBAAA,AAAAC;AAAA,QAAA,AAAAD;AAIC,wBADH,6BAAoB,wBAAwB,gBAAgBC,aAA5D,yHAAA;;;AAFGE,qBAAQH;AAAA,AAFfG,iBAEe,AAAAA;;AAKnB,WAAA,4BACoB,AAAAC,mGAAsCH,cACzCF,YACNI,QACA,AAAAC,kFAAoB,AAAAH,mBACd,AAAAG,oFAAsB,AAAAH,yBAClB,AAAAG,uFAA0B,AAAAH","file":null,"sourcesContent":null,"sourceRoot":null}
1
+ {"version":3,"sources":["../../../src/Glutinum.Converter/Reader/FunctionDeclaration.fs"],"names":["isDeclared","matchValue","declaration","modifier","name","reader"],"mappings":";;;;;AAaQA;AACMC,uBAAA,AAAAC;AAAA,AADNF,kBACM,CAAA,AAAAC,sBAII,QADH,sBAA4B,AAAAE,kBAAgB,MAD/CF;AAIJG;AACMH,yBAAA,AAAAC;AAAA,QAAA,AAAAD;AAIC,wBADH,6BAAoB,wBAAwB,gBAAgBC,aAA5D,8GAAA;;;AAFGE,qBAAQH;AAAA,AAFfG,iBAEe,AAAAA;;AAKnB,WAAA,4BACoB,AAAAC,mGAAsCH,cACzCF,YACNI,QACA,AAAAC,kFAAoB,AAAAH,mBACd,AAAAG,oFAAsB,AAAAH,yBAClB,AAAAG,uFAA0B,AAAAH","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -4,7 +4,7 @@ import { GlueIndexedAccessType, GlueType } from "../GlueAST.js";
4
4
 
5
5
  export function readIndexedAccessType(reader, declaration) {
6
6
  let idxNodeType, matchValue, numberKeywordNode, typeOperatorNode, warning, objNodeType, matchValue_1, pType, warning_1;
7
- return new GlueType(10, [new GlueIndexedAccessType((idxNodeType = declaration.indexType, (matchValue = (idxNodeType.kind | 0), (matchValue === 150) ? ((numberKeywordNode = declaration.indexType, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](numberKeywordNode))) : ((matchValue === 198) ? ((typeOperatorNode = declaration.indexType, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeOperatorNodeZ6830FC33"](typeOperatorNode))) : ((warning = Report_readerError_Z19516DCE("readIndexedAccessType", `Unsupported node kind ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(matchValue)}`, idxNodeType, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/IndexedAccessType.fs", 27), (void (reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(warning)), new GlueType(0, []))))))), (objNodeType = declaration.objectType, (matchValue_1 = (objNodeType.kind | 0), (matchValue_1 === 196) ? ((pType = declaration.objectType, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](pType))) : ((warning_1 = Report_readerError_Z19516DCE("readIndexedAccessType", `Unsupported node kind ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(matchValue_1)}`, objNodeType, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/IndexedAccessType.fs", 47), (void (reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(warning_1)), new GlueType(0, [])))))))]);
7
+ return new GlueType(10, [new GlueIndexedAccessType((idxNodeType = declaration.indexType, (matchValue = (idxNodeType.kind | 0), (matchValue === 150) ? ((numberKeywordNode = declaration.indexType, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](numberKeywordNode))) : ((matchValue === 198) ? ((typeOperatorNode = declaration.indexType, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeOperatorNodeZ6830FC33"](typeOperatorNode))) : ((warning = Report_readerError_Z19516DCE("readIndexedAccessType", `Unsupported node kind ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(matchValue)}`, idxNodeType, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/IndexedAccessType.fs", 27), (void (reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(warning)), new GlueType(0, []))))))), (objNodeType = declaration.objectType, (matchValue_1 = (objNodeType.kind | 0), (matchValue_1 === 196) ? ((pType = declaration.objectType, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](pType))) : ((warning_1 = Report_readerError_Z19516DCE("readIndexedAccessType", `Unsupported node kind ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(matchValue_1)}`, objNodeType, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/IndexedAccessType.fs", 47), (void (reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(warning_1)), new GlueType(0, [])))))))]);
8
8
  }
9
9
 
10
10
  //# sourceMappingURL=IndexedAccessType.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Glutinum.Converter/Reader/IndexedAccessType.fs"],"names":["idxNodeType","matchValue","numberKeywordNode","typeOperatorNode","warning","objNodeType","pType","declaration","reader"],"mappings":";;;;;QAaYA,aAEEC,YAMEC,mBAJAC,kBAQAC,SAYJC,aAEEJ,cAEEK,OAIAF;WAWZ,kBACI,2BA5CIJ,cAAc,AAAAO,wBAEZN,cAAA,AAAAD,uBAAA,CAAA,AAAAC,eAAA,SAMEC,oBAAoB,AAAAK,uBACxB,AAAAC,iFAAoBN,wBAPlB,CAAA,AAAAD,eAAA,SAEEE,mBAAmB,AAAAI,uBACvB,AAAAC,0FAA4BL,wBAOxBC,UACA,6BACI,yBACA,yBAAyB,8CAH7BH,eAIID,aAHJ,uHAAA,MAMJ,MAAA,AAAAQ,gFAAoBJ,WAEpB,4BAGAC,cAAc,AAAAE,yBAEZN,gBAAA,AAAAI,uBAAA,CAAA,AAAAJ,iBAAA,SAEEK,QAAQ,AAAAC,wBACZ,AAAAC,iFAAoBF,aAGhBF,YACA,6BACI,yBACA,yBAA2B,8CAH/BH,iBAIII,aAHJ,uHAAA,MAMJ,MAAA,AAAAG,gFAAoBJ,aAEpB","file":null,"sourcesContent":null,"sourceRoot":null}
1
+ {"version":3,"sources":["../../../src/Glutinum.Converter/Reader/IndexedAccessType.fs"],"names":["idxNodeType","matchValue","numberKeywordNode","typeOperatorNode","warning","objNodeType","pType","declaration","reader"],"mappings":";;;;;QAaYA,aAEEC,YAMEC,mBAJAC,kBAQAC,SAYJC,aAEEJ,cAEEK,OAIAF;WAWZ,kBACI,2BA5CIJ,cAAc,AAAAO,wBAEZN,cAAA,AAAAD,uBAAA,CAAA,AAAAC,eAAA,SAMEC,oBAAoB,AAAAK,uBACxB,AAAAC,iFAAoBN,wBAPlB,CAAA,AAAAD,eAAA,SAEEE,mBAAmB,AAAAI,uBACvB,AAAAC,0FAA4BL,wBAOxBC,UACA,6BACI,yBACA,yBAAyB,8CAH7BH,eAIID,aAHJ,4GAAA,MAMJ,MAAA,AAAAQ,gFAAoBJ,WAEpB,4BAGAC,cAAc,AAAAE,yBAEZN,gBAAA,AAAAI,uBAAA,CAAA,AAAAJ,iBAAA,SAEEK,QAAQ,AAAAC,wBACZ,AAAAC,iFAAoBF,aAGhBF,YACA,6BACI,yBACA,yBAA2B,8CAH/BH,iBAIII,aAHJ,4GAAA,MAMJ,MAAA,AAAAG,gFAAoBJ,aAEpB","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -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", 18)]));
30
+ input_2 = (new FSharpResult$2(1, [Report_readerError_Z19516DCE("readMappedTypeNode", `Expected exactly one type parameter but was ${length(typeParameters)}`, mappedTypeNode, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/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,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
+ {"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,yGAAA;;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}
@@ -17,7 +17,8 @@ export function readModuleDeclaration(reader, declaration) {
17
17
  return void 0;
18
18
  }
19
19
  }, children)));
20
- return new GlueModuleDeclaration(name.getText(), isNamespace, false, types);
20
+ const isTopLevel = declaration.parent.kind === 312;
21
+ return new GlueModuleDeclaration(name.getText(), isTopLevel, isNamespace, false, types);
21
22
  }
22
23
 
23
24
  //# sourceMappingURL=ModuleDeclaration.js.map
@@ -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,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
+ {"version":3,"sources":["../../../src/Glutinum.Converter/Reader/ModuleDeclaration.fs"],"names":["name","declaration","children","isNamespace","node","types","matchValue","child","moduleBlock","reader","isTopLevel"],"mappings":";;;;;AAaQA,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;AAcAQ,uBACM,AAAAT,4BAAA;AAIV,WAAA,0BACW,AAAAD,gBACMU,YACCP,aACA,OACNE","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", 48);
38
+ const warning = Report_readerError_Z19516DCE("node", `Unsupported node kind ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(matchValue)}`, node, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/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;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
+ {"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,\u002BFAAA;AAEJ,kBAAA,AAAAC,gFAAoBG;AAEpB,mBAAA","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -8,7 +8,7 @@ export function readParameters(reader, parameters) {
8
8
  return mapIndexed((index, parameter) => {
9
9
  let matchValue, name, item, objectArg;
10
10
  const nameNode = parameter.name;
11
- return new GlueParameter((matchValue = (nameNode.kind | 0), (matchValue === 80) ? ((name = nameNode, name.getText())) : ((matchValue === 206) ? (`arg${index}`) : (((item = Report_readerError_Z19516DCE("name", `Unsupported kind ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(nameNode.kind)}`, nameNode, "/Users/mmangel/Workspaces/Github/glutinum-org/Glutinum.Converter/src/Glutinum.Converter/Reader/Parameters.fs", 24), (objectArg = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"](), void (objectArg.push(item)))), `arg${index}`)))), parameter.questionToken != null, parameter.dotDotDotToken != null, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](parameter.type));
11
+ return new GlueParameter((matchValue = (nameNode.kind | 0), (matchValue === 80) ? ((name = nameNode, name.getText())) : ((matchValue === 206) ? (`arg${index}`) : (((item = Report_readerError_Z19516DCE("name", `Unsupported kind ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(nameNode.kind)}`, nameNode, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/Parameters.fs", 24), (objectArg = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"](), void (objectArg.push(item)))), `arg${index}`)))), parameter.questionToken != null, parameter.dotDotDotToken != null, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](parameter.type));
12
12
  }, toList(parameters));
13
13
  }
14
14
 
@@ -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,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
+ {"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,qGAAA,MACGD,YAAA,AAAAI,4EAAA,MAAAJ,eAAAD,UAEH,MAAQI,aAIC,AAAAD,iCACF,AAAAA,kCACJ,AAAAE,kFAAoB,AAAAF;OApBhC,OADHG","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -7,7 +7,7 @@ import { Report_readerError_Z19516DCE } from "./Report.js";
7
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
8
  import { List_distinct, distinct } from "../../fable_modules/fable-library-js.4.14.0/Seq2.js";
9
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";
10
+ import { orElse, map as map_1, defaultArg, value as value_6 } from "../../fable_modules/fable-library-js.4.14.0/Option.js";
11
11
  import { readTypeQueryNode } from "./TypeQueryNode.js";
12
12
  import { TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name } from "../TypeScript.Extensions.js";
13
13
 
@@ -39,7 +39,7 @@ function readTypeUsingFlags(reader, typ) {
39
39
  const matchValue_2 = declaration.kind | 0;
40
40
  switch (matchValue_2) {
41
41
  case 263:
42
- return new GlueType(12, [new GlueClassDeclaration(typ.symbol.name, empty(), empty(), empty(), empty())]);
42
+ return new GlueType(12, [new GlueClassDeclaration(empty(), typ.symbol.name, empty(), empty(), empty(), empty())]);
43
43
  case 267:
44
44
  return new GlueType(0, []);
45
45
  default:
@@ -70,7 +70,7 @@ function readTypeUsingFlags(reader, typ) {
70
70
  export function UtilityType_readExclude(reader, typeReferenceNode) {
71
71
  let matchValue, activePatternResult_1, item, objectArg, activePatternResult_3, item_1, objectArg_1;
72
72
  const typ = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(typeReferenceNode);
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) => {
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, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/TypeNode.fs", 60), (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, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/TypeNode.fs", 70), (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
74
  const matchValue_1 = typ_1.flags | 0;
75
75
  if ($007CHasTypeFlags$007C_$007C(128, matchValue_1) != null) {
76
76
  const literalType = typ_1;
@@ -82,7 +82,7 @@ export function UtilityType_readExclude(reader, typeReferenceNode) {
82
82
  case 1:
83
83
  return new GlueType(8, [new GlueLiteral(2, [activePatternResult_6.fields[0]])]);
84
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);
85
+ const item_2 = Report_readerError_Z19516DCE("Exclude", "Expected a number literal", typeReferenceNode, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/TypeNode.fs", 93);
86
86
  const objectArg_2 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
87
87
  void (objectArg_2.push(item_2));
88
88
  return void 0;
@@ -102,7 +102,7 @@ function UtilityType_readMembers(reader, contextNode, typ) {
102
102
  return toList(distinct(concat(choose((property) => {
103
103
  const matchValue = property.declarations;
104
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);
105
+ const item = Report_readerError_Z19516DCE("type node", "Missing declarations", contextNode, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/TypeNode.fs", 120);
106
106
  const objectArg_1 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
107
107
  void (objectArg_1.push(item));
108
108
  return void 0;
@@ -124,7 +124,7 @@ export function UtilityType_readPartial(reader, typeReferenceNode) {
124
124
  let members;
125
125
  const matchValue = baseType.flags | 0;
126
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);
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, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/TypeNode.fs", 136);
128
128
  const objectArg_1 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
129
129
  void (objectArg_1.push(item));
130
130
  members = empty();
@@ -173,7 +173,7 @@ export function UtilityType_readOmit(reader, typeReferenceNode) {
173
173
  const tryReadValueOfKeys = (typ) => {
174
174
  const activePatternResult = Type_StringLiteral_$007CString$007COther$007C(typ);
175
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);
176
+ const item = Report_readerError_Z19516DCE("keysToOmit", "Expected a string literal", typeReferenceNode, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/TypeNode.fs", 207);
177
177
  const objectArg_1 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
178
178
  void (objectArg_1.push(item));
179
179
  return void 0;
@@ -190,7 +190,7 @@ export function UtilityType_readOmit(reader, typeReferenceNode) {
190
190
  return new GlueType(26, [new GlueUtilityType(4, [choose((property) => {
191
191
  const matchValue_1 = property.declarations;
192
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));
193
+ throw new Error(Report_readerError_Z19516DCE("type node", "Missing declarations", typeReferenceNode, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/TypeNode.fs", 259));
194
194
  }
195
195
  else {
196
196
  const declarations = matchValue_1;
@@ -198,7 +198,7 @@ export function UtilityType_readOmit(reader, typeReferenceNode) {
198
198
  return reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](declarations[0]);
199
199
  }
200
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);
201
+ const item_2 = Report_readerError_Z19516DCE("type node", "Expected exactly one declaration", typeReferenceNode, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/TypeNode.fs", 250);
202
202
  const objectArg_5 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
203
203
  void (objectArg_5.push(item_2));
204
204
  return void 0;
@@ -207,7 +207,7 @@ export function UtilityType_readOmit(reader, typeReferenceNode) {
207
207
  }, toList(filter((prop) => !contains(prop.name, keysToOmit, {
208
208
  Equals: (x, y) => (x === y),
209
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)))))))])]);
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, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/TypeNode.fs", 227), (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
211
  }
212
212
 
213
213
  export function UtilityType_readReadonly(reader, typeReferenceNode) {
@@ -241,7 +241,7 @@ export function UtilityType_readReadonly(reader, typeReferenceNode) {
241
241
  }, unionType.types))])])]);
242
242
  }
243
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);
244
+ const item = Report_readerError_Z19516DCE("Readonly", "Unable to read the members of the union type", typeReferenceNode, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/TypeNode.fs", 308);
245
245
  const objectArg = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
246
246
  void (objectArg.push(item));
247
247
  return new GlueType(3, [new GluePrimitive(6, [])]);
@@ -290,12 +290,19 @@ export function readTypeNode(reader, typeNode) {
290
290
  return new GlueType(16, [value_6(symbolOpt).name]);
291
291
  }
292
292
  else {
293
- return new GlueType(13, [new GlueTypeReference(typeReferenceNode.typeName.getText(), getFullNameOrEmpty(checker, typeReferenceNode.typeName), readTypeArguments(reader, typeReferenceNode), isStandardLibrary)]);
293
+ return new GlueType(13, [new GlueTypeReference(defaultArg(map_1((valueDeclaration) => {
294
+ if (valueDeclaration.kind === 306) {
295
+ return valueDeclaration.symbol.parent.getName();
296
+ }
297
+ else {
298
+ return typeReferenceNode.typeName.getText();
299
+ }
300
+ }, value_6(symbolOpt).valueDeclaration), typeReferenceNode.typeName.getText()), getFullNameOrEmpty(checker, typeReferenceNode.typeName), readTypeArguments(reader, typeReferenceNode), isStandardLibrary)]);
294
301
  }
295
302
  };
296
303
  if (isFromEs5Lib(symbolOpt)) {
297
- const matchValue_2 = getFullNameOrEmpty(checker, typeReferenceNode.typeName);
298
- switch (matchValue_2) {
304
+ const matchValue_3 = getFullNameOrEmpty(checker, typeReferenceNode.typeName);
305
+ switch (matchValue_3) {
299
306
  case "Exclude":
300
307
  return UtilityType_readExclude(reader, typeReferenceNode);
301
308
  case "Partial":
@@ -322,11 +329,11 @@ export function readTypeNode(reader, typeNode) {
322
329
  const functionTypeNode = typeNode;
323
330
  let typeParameters;
324
331
  try {
325
- const typParameters = functionTypeNode.parent.parent.typeParameters;
332
+ const typParameters = (functionTypeNode.typeParameters != null) ? functionTypeNode.typeParameters : functionTypeNode.parent.parent.typeParameters;
326
333
  typeParameters = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](typParameters);
327
334
  }
328
- catch (matchValue_3) {
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)));
335
+ catch (matchValue_4) {
336
+ void (reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(Report_readerError_Z19516DCE("FunctionType", "Unable to find TypeParameters information", functionTypeNode, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/TypeNode.fs", 400)));
330
337
  typeParameters = empty();
331
338
  }
332
339
  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))]);
@@ -357,12 +364,12 @@ export function readTypeNode(reader, typeNode) {
357
364
  const intersectionTypeNode = typeNode;
358
365
  const unionOrIntersectionType = checker.getTypeAtLocation(intersectionTypeNode);
359
366
  const properties = choose((property) => {
360
- const matchValue_7 = property.declarations;
361
- if (matchValue_7 == null) {
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));
367
+ const matchValue_8 = property.declarations;
368
+ if (matchValue_8 == null) {
369
+ throw new Error(Report_readerError_Z19516DCE("type node", "Missing declarations", typeNode, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/TypeNode.fs", 511));
363
370
  }
364
371
  else {
365
- const declarations_1 = matchValue_7;
372
+ const declarations_1 = matchValue_8;
366
373
  if (declarations_1.length === 1) {
367
374
  return new IntersectionTypePropertyResult(0, [declarations_1[0]]);
368
375
  }
@@ -402,20 +409,20 @@ export function readTypeNode(reader, typeNode) {
402
409
  }
403
410
  case 194: {
404
411
  const conditionalTypeNode = typeNode;
405
- const matchValue_9 = readTypeUsingFlags(reader, checker.getTypeAtLocation(conditionalTypeNode));
412
+ const matchValue_10 = readTypeUsingFlags(reader, checker.getTypeAtLocation(conditionalTypeNode));
406
413
  let matchResult, forward;
407
- if (matchValue_9.tag === 3) {
408
- if (matchValue_9.fields[0].tag === 6) {
414
+ if (matchValue_10.tag === 3) {
415
+ if (matchValue_10.fields[0].tag === 6) {
409
416
  matchResult = 0;
410
417
  }
411
418
  else {
412
419
  matchResult = 1;
413
- forward = matchValue_9;
420
+ forward = matchValue_10;
414
421
  }
415
422
  }
416
423
  else {
417
424
  matchResult = 1;
418
- forward = matchValue_9;
425
+ forward = matchValue_10;
419
426
  }
420
427
  switch (matchResult) {
421
428
  case 0:
@@ -432,19 +439,19 @@ export function readTypeNode(reader, typeNode) {
432
439
  const thisTypeNode = typeNode;
433
440
  const typ = checker.getTypeAtLocation(thisTypeNode);
434
441
  let typParameters_1;
435
- const matchValue_5 = typ.symbol.declarations;
436
- if (matchValue_5 == null) {
442
+ const matchValue_6 = typ.symbol.declarations;
443
+ if (matchValue_6 == null) {
437
444
  typParameters_1 = empty();
438
445
  }
439
446
  else {
440
- const declarations = matchValue_5;
447
+ const declarations = matchValue_6;
441
448
  if (declarations.length !== 1) {
442
449
  typParameters_1 = empty();
443
450
  }
444
451
  else {
445
452
  const declaration = declarations[0];
446
- const matchValue_6 = declaration.kind | 0;
447
- switch (matchValue_6) {
453
+ const matchValue_7 = declaration.kind | 0;
454
+ switch (matchValue_7) {
448
455
  case 263:
449
456
  case 264: {
450
457
  const classDeclaration = declaration;
@@ -468,12 +475,12 @@ export function readTypeNode(reader, typeNode) {
468
475
  }
469
476
  case 201: {
470
477
  const literalTypeNode = typeNode;
471
- const matchValue_4 = tryReadLiteral(literalTypeNode.literal);
472
- if (matchValue_4 == null) {
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));
478
+ const matchValue_5 = tryReadLiteral(literalTypeNode.literal);
479
+ if (matchValue_5 == null) {
480
+ throw new Error(Report_readerError_Z19516DCE("type node - literal type", "Could not read literal type", typeNode, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/TypeNode.fs", 429));
474
481
  }
475
482
  else {
476
- return new GlueType(8, [matchValue_4]);
483
+ return new GlueType(8, [matchValue_5]);
477
484
  }
478
485
  }
479
486
  case 202:
@@ -483,10 +490,11 @@ export function readTypeNode(reader, typeNode) {
483
490
  case 233: {
484
491
  const expression = typeNode;
485
492
  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))]);
493
+ const symbolOpt_1 = orElse(typ_1.aliasSymbol, typ_1.symbol);
494
+ return new GlueType(13, [new GlueTypeReference(expression.expression.getText(), getFullNameOrEmpty(checker, expression.expression), readTypeArguments(reader, expression), isFromEs5Lib(symbolOpt_1))]);
487
495
  }
488
496
  default: {
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);
497
+ const item = Report_readerError_Z19516DCE("type node", `Unsupported kind ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(typeNode.kind)}`, typeNode, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/src/Glutinum.Converter/Reader/TypeNode.fs", 621);
490
498
  const objectArg = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();
491
499
  void (objectArg.push(item));
492
500
  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","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,mB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
1
+ {"version":3,"sources":["../../../src/Glutinum.Converter/Reader/TypeNode.fs"],"names":["matchValue","typ","declarations","declaration","reader","activePatternResult5596","item","objectArg","activePatternResult5600","typeReferenceNode","literalType","activePatternResult5608","property","contextNode","baseType","node","members","readMembers","typeArguments","readTypeUsingFlags","typeNode","keysToOmitType","tryReadValueOfKeys","activePatternResult5656","keysToOmit","prop","unionType","copyOfStruct","Name","innerType","checker","symbolOpt","readTypeReference","valueDeclaration","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;AAqBI,mBAAA,iBAAmB;;;AApBtBE,iCACCF;AAAAG,gCAAc,AAAAD,aAAc;AAE1BF,iCAAA,AAAAG;oBAAAH;qBAAA;AAUC,2BAAA,kBARH,yBACoB,SACT,AAAAC,iBACQ,SACL,SACO,SACC;qBARpB;AAc\u002BB,2BAAA;;AAC9B,2BAAA,AAAAG,6EAAgBD;;;;SAG7B,IAzBI,AAyBJ,6BAAa,GAzBTH;AAyBgC,eAAA,iBAAmB;;SACvD,IA1BI,AA0BJ,6BAAa,GA1BTA;AA0BgC,eAAA,iBAAmB;;SACvD,IA3BI,AA2BJ,6BAAa,IA3BTA;AA2BiC,eAAA,iBAAmB;;SACxD,IA5BI,AA4BJ,6BAAa,GA5BTA;AA4B6B,eAAA,iBAAmB;;SACpD,IA7BI,AA6BJ,6BAAa,OA7BTA;AA6B8B,eAAA,iBAAmB;;;AAChD,eAAA,iBAAmB;;;;;Q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,AAfZyC,8CAeY,AAAAxC,uFAA0B,AAAAsD;;;;AACvB,AAhBfd,8CAgBe;;;;AAQhB,mBAAA,kBALF,iBACU,AAAA3C,iBACU2C;;aAhJnB;AA4OEe,qCAAmBvC;AAEvB,mBAAA,AAAAhB,0FAA4BuD;;aA9O1B;AAmSEC,sCAAoBxC;AACxB,mBAAA,AAAAhB,2FAA6BwD;;aApS3B;AAoGEC,oCAAkBzC;AAIhBpB,iCAAA,eAF8C,AAAA6D;AAE9C,gBAAA,AAAA7D;AAQC,gCALH,6BACI,4BACA,\u002BBACAoB,UAHJ,mGAAA;;;AAFc,uBAAA,iBAAApB;;;aAzGhB;AAqPF,mBAAA,AAAAI,0FAA4BgB;aArP1B;AAgSiC,mBAAA;aAhSjC;AA0PE0C,\u002BBAAa1C;AAEbnB,0BAAM,AAAA6B,4BAA4BgC;AAMlC/B,gCAIG,OAFH,AAAA9B,mBAEuB,AAAAA;AASxB,mBAAA,kBANF,sBACU,AAAA6D,iCACI,mBAAmBhC,SAAQ,AAAAgC,wBACtB,kBAAkB1D,QAAO0D,aACrB,aAAa/B;;;AA\u002BBlCzB,yBADH,6BAAoB,aAAa,oBAAsB,8CAAA,AAAAc,kBAAsBA,UAA7E,mGAAA;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", 39));
19
+ throw new Error(Report_readerError_Z19516DCE("type operator (keyof)", "Missing declarations", node, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/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", 28));
24
+ throw new Error(Report_readerError_Z19516DCE("type operator (keyof)", "Expected exactly one declaration", node, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/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", 21));
32
+ throw new Error(Report_readerError_Z19516DCE("type operator (keyof)", "Missing symbol", node, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/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", 48));
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, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/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", 58);
44
+ const item = Report_readerError_Z19516DCE("type operator", `Unsupported operator ${TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(node.operator)}`, node, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/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":";;;;;;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
+ {"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,2GAAA;;;AAdGK,iDAEHN;AAAA,gCAAG,AAAAM,wBAAsB;AAMlB,gDALH,6BACI,yBACA,oCACAL,MAHJ,2GAAA;;;AAQmC,uCAAA,iBAAnC,AAAAG,6EAAgB,AAAAE,aAAa;;;;;AAfmC,wCAAxE,6BAAoB,yBAAyB,kBAAkBL,MAA/D,2GAAA;;;qBATF;AAiCsD,2BAAA,iBAAxD,kBAAgCG,QAFZ,AAAAH;;AAUjB,oCALH,6BACI,yBACA,6DAA\u002BD,8CAAA,AAAAA,mBAC/DA,MAHJ,2GAAA;;;aAtCF;AA6CkE,mBAAA,kBAArC,AAAAG,iFAAoB,AAAAH;;AAIhDM,yBADH,6BAAoB,iBAAiB,wBAA0B,8CAAA,AAAAN,kBAAsBA,MAArF,2GAAA;AACGO,8BAAA,AAAAJ;AAAA,kBAAAI,eAAAD;AAEH,mBAAA,iBAAmB","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -5,7 +5,7 @@ import { toList } from "../../fable_modules/fable-library-js.4.14.0/Seq.js";
5
5
 
6
6
  export function readTypeParameters(reader, typeParameters) {
7
7
  if (typeParameters != null) {
8
- return map((typeParameter) => (new GlueTypeParameter(typeParameter.name.getText(), map_1((typNode) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](typNode), typeParameter.constraint), void 0)), toList(typeParameters));
8
+ return map((typeParameter) => (new GlueTypeParameter(typeParameter.name.getText(), map_1((typNode) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](typNode), typeParameter.constraint), map_1((typNode_1) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](typNode_1), typeParameter.default))), toList(typeParameters));
9
9
  }
10
10
  else {
11
11
  return empty();
@@ -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,8BACsC,mBAAW,AAAAC,iFAAAC,UAA3C,AAAAF,2BACH,UALf,OADHD;;;AAFM,eAAA","file":null,"sourcesContent":null,"sourceRoot":null}
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,2BAC0B,qBAAW,AAAAC,iFAAAC,YAAxC,AAAAF,0BALf,OADHD;;;AAFM,eAAA","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -24,7 +24,7 @@ export function readTypeQueryNode(reader, typeQueryNode) {
24
24
  const matchValue_6 = declaration_1.kind | 0;
25
25
  switch (matchValue_6) {
26
26
  case 263:
27
- return new GlueType(12, [new GlueClassDeclaration(symbol.name, empty(), empty(), empty(), empty())]);
27
+ return new GlueType(12, [new GlueClassDeclaration(empty(), symbol.name, empty(), empty(), empty(), empty())]);
28
28
  case 267:
29
29
  return new GlueType(0, []);
30
30
  default:
@@ -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", 29);
40
+ const error = Report_readerError_Z19516DCE("type node (TypeQuery)", "Missing symbol", typeQueryNode, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/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", 39);
49
+ const error_2 = Report_readerError_Z19516DCE("type node (TypeQuery)", "Missing declarations", typeQueryNode, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/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", 48)])) : (new FSharpResult$2(0, [declarations[0]]));
57
+ const input_5 = (declarations.length !== 1) ? (new FSharpResult$2(1, [Report_readerError_Z19516DCE("type node (TypeQuery)", "Expected exactly one declaration", typeQueryNode, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/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", 64)])));
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, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/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", 74);
72
+ const error_4 = Report_readerError_Z19516DCE("type node (TypeQuery)", "Missing type", typeQueryNode, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/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", 84)]));
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, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/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", 100);
102
+ const warning_1 = Report_readerError_Z19516DCE("type node (TypeQuery)", "Expected an Identifier", typeQueryNode, "/home/mmangel/Workspaces/Github/glutinum-org/cli/main/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
  }