@glutinum/cli 0.14.1 → 1.0.0-beta.10

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 (64) hide show
  1. package/README.md +16 -0
  2. package/dist/Glutinum.Converter/Abbreviations.js +9 -32
  3. package/dist/Glutinum.Converter/DelegateExtensions.js +378 -0
  4. package/dist/Glutinum.Converter/FreeTypeParameters.js +211 -0
  5. package/dist/Glutinum.Converter/FsharpAST.js +154 -69
  6. package/dist/Glutinum.Converter/Generate.js +44 -23
  7. package/dist/Glutinum.Converter/GlueAST.js +122 -74
  8. package/dist/Glutinum.Converter/Hosting.js +892 -0
  9. package/dist/Glutinum.Converter/Merge.js +469 -301
  10. package/dist/Glutinum.Converter/Packages.js +403 -77
  11. package/dist/Glutinum.Converter/Printer.js +455 -388
  12. package/dist/Glutinum.Converter/Read.js +366 -104
  13. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +9 -9
  14. package/dist/Glutinum.Converter/Reader/ConditionalTypeNode.js +90 -0
  15. package/dist/Glutinum.Converter/Reader/Declaration.js +24 -30
  16. package/dist/Glutinum.Converter/Reader/Deferred.js +706 -0
  17. package/dist/Glutinum.Converter/Reader/Documentation.js +56 -67
  18. package/dist/Glutinum.Converter/Reader/ExportAssignment.js +105 -38
  19. package/dist/Glutinum.Converter/Reader/ExportDeclaration.js +52 -55
  20. package/dist/Glutinum.Converter/Reader/ExpressionWithTypeArguments.js +59 -0
  21. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js +28 -16
  22. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js +46 -45
  23. package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js +48 -5
  24. package/dist/Glutinum.Converter/Reader/IntersectionTypeNode.js +178 -0
  25. package/dist/Glutinum.Converter/Reader/MappedTypeNode.js +82 -4
  26. package/dist/Glutinum.Converter/Reader/MemberTypes.js +126 -0
  27. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js +55 -7
  28. package/dist/Glutinum.Converter/Reader/Node.js +23 -26
  29. package/dist/Glutinum.Converter/Reader/Parameters.js +39 -30
  30. package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js +5 -5
  31. package/dist/Glutinum.Converter/Reader/TypeNode.js +410 -1545
  32. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js +78 -51
  33. package/dist/Glutinum.Converter/Reader/TypeQueryNode.js +116 -71
  34. package/dist/Glutinum.Converter/Reader/TypeScriptReader.js +25 -7
  35. package/dist/Glutinum.Converter/Reader/Types.js +296 -16
  36. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +21 -34
  37. package/dist/Glutinum.Converter/Reader/UtilityType.js +811 -0
  38. package/dist/Glutinum.Converter/Reader/Utils.js +584 -148
  39. package/dist/Glutinum.Converter/Reader/VariableStatement.js +2 -3
  40. package/dist/Glutinum.Converter/Transform.js +2971 -6875
  41. package/dist/Glutinum.Converter/Transformer/AnyFunctionOverloads.js +116 -0
  42. package/dist/Glutinum.Converter/Transformer/CallableProperties.js +454 -0
  43. package/dist/Glutinum.Converter/Transformer/Comment.js +136 -0
  44. package/dist/Glutinum.Converter/Transformer/Conditionals.js +1087 -0
  45. package/dist/Glutinum.Converter/Transformer/Context.js +678 -0
  46. package/dist/Glutinum.Converter/Transformer/Enum.js +80 -0
  47. package/dist/Glutinum.Converter/Transformer/Exports.js +704 -0
  48. package/dist/Glutinum.Converter/Transformer/Heritage.js +493 -0
  49. package/dist/Glutinum.Converter/Transformer/KeyOfMaps.js +488 -0
  50. package/dist/Glutinum.Converter/Transformer/ParamObjectCandidate.js +460 -0
  51. package/dist/Glutinum.Converter/Transformer/TypeParameter.js +219 -0
  52. package/dist/Glutinum.Converter/Transformer/TypeParameters.js +448 -0
  53. package/dist/Glutinum.Converter/Transformer/UnionOverloads.js +356 -0
  54. package/dist/Glutinum.Converter/Transformer/Utils.js +341 -0
  55. package/dist/Glutinum.Converter/TypeScript.Extensions.js +193 -211
  56. package/dist/Glutinum.Converter/Utils/Naming.js +7 -0
  57. package/dist/Glutinum.Converter/Utils/String.js +15 -4
  58. package/dist/Program.js +107 -232
  59. package/package.json +4 -3
  60. package/dist/Glutinum.Converter/TypeScript.js +0 -12
  61. package/src/Glutinum.Converter/js/bootstrap.js +0 -123
  62. package/src/Glutinum.Converter/js/host.js +0 -144
  63. package/src/Glutinum.Converter/js/npm.js +0 -137
  64. package/src/Glutinum.Converter/js/resolve.js +0 -402
@@ -1,15 +1,15 @@
1
1
 
2
- import { map, choose, partition } from "../../fable_modules/fable-library-js.5.17.2/List.js";
2
+ import { filter, map, choose, partition } from "../../fable_modules/fable-library-js.5.17.2/List.js";
3
3
  import { toList } from "../../fable_modules/fable-library-js.5.17.2/Seq.js";
4
4
  import { GlueType, GlueClassDeclaration, GlueConstructor } from "../GlueAST.js";
5
- import { isExportAssignmentTarget, isExportedDeclaration, readHeritageClauses, getFullNameOrEmpty, ModifierUtil_HasModifier_Z687DC302 } from "./Utils.js";
5
+ import { isExportAssignmentTarget, isExportedDeclaration, readHeritageClauses, getFullNameOrEmpty, isDefaultInExportList, ModifierUtil_HasModifier_742AC9D } from "./Utils.js";
6
6
  import { singleton } from "../../fable_modules/fable-library-js.5.17.2/Set.js";
7
7
  import { comparePrimitives } from "../../fable_modules/fable-library-js.5.17.2/Util.js";
8
8
 
9
9
  export function readClassDeclaration(reader, classDeclaration) {
10
10
  const name = classDeclaration.name;
11
11
  const patternInput = partition((m) => {
12
- if (m.kind === 176) {
12
+ if (m.kind === 177) {
13
13
  return true;
14
14
  }
15
15
  else {
@@ -17,23 +17,23 @@ export function readClassDeclaration(reader, classDeclaration) {
17
17
  }
18
18
  }, toList(classDeclaration.members));
19
19
  const constructors_1 = choose((m_1) => {
20
- if (m_1.kind === 176) {
20
+ if (m_1.kind === 177) {
21
21
  const constructor = m_1;
22
- return new GlueConstructor(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromSignature61B89E55"](constructor), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](constructor.parameters));
22
+ return new GlueConstructor(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromSignature61B89E55"](constructor), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParameters716C1F42"](constructor.parameters));
23
23
  }
24
24
  else {
25
25
  return undefined;
26
26
  }
27
27
  }, patternInput[0]);
28
- const members_2 = map((declaration) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](declaration), toList(patternInput[1]));
29
- const isDefaultExport = ModifierUtil_HasModifier_Z687DC302(classDeclaration.modifiers, 90);
30
- const classDeclaration_1 = new GlueType(/* ClassDeclaration */ 12, [new GlueClassDeclaration(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](classDeclaration), getFullNameOrEmpty(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](), classDeclaration), name.getText(), constructors_1, members_2, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](classDeclaration.typeParameters), readHeritageClauses(reader, classDeclaration.heritageClauses), (isDefaultExport ? true : isExportedDeclaration(classDeclaration, singleton(name.getText(), {
28
+ const members_2 = map((declaration) => reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](declaration), filter((classElement) => !ModifierUtil_HasModifier_742AC9D(classElement.modifiers, 124), patternInput[1]));
29
+ const isDefaultExport = ModifierUtil_HasModifier_742AC9D(classDeclaration.modifiers, 90) ? true : isDefaultInExportList(classDeclaration, name.getText());
30
+ const classDeclaration_1 = new GlueType(/* ClassDeclaration */ 12, [new GlueClassDeclaration(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](classDeclaration), getFullNameOrEmpty(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](), classDeclaration), name.getText(), constructors_1, members_2, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4BD418D9"](classDeclaration.typeParameters), readHeritageClauses(reader, classDeclaration.heritageClauses), (isDefaultExport ? true : isExportedDeclaration(classDeclaration, singleton(name.getText(), {
31
31
  Compare: (x, y) => (comparePrimitives(x, y) | 0),
32
32
  }))) ? true : isExportAssignmentTarget(classDeclaration, singleton(name.getText(), {
33
33
  Compare: (x_1, y_1) => (comparePrimitives(x_1, y_1) | 0),
34
34
  })))]);
35
35
  if (isDefaultExport) {
36
- return new GlueType(/* ExportDefault */ 24, [classDeclaration_1]);
36
+ return new GlueType(/* ExportDefault */ 25, [classDeclaration_1]);
37
37
  }
38
38
  else {
39
39
  return classDeclaration_1;
@@ -0,0 +1,90 @@
1
+
2
+ import { readTypeUsingFlags, inferTypeNodes, inferredConstraint, tryResolveDeferred, isAnyTypeParameter, isDeferredConditional } from "./Deferred.js";
3
+ import { GlueLiteral, GlueConditionalType, GlueTypeParameter, GlueTypeUnion, GlueType, GluePrimitive } from "../GlueAST.js";
4
+ import { stringHash, equals } from "../../fable_modules/fable-library-js.5.17.2/Util.js";
5
+ import { map, ofArray } from "../../fable_modules/fable-library-js.5.17.2/List.js";
6
+ import { List_distinctBy } from "../../fable_modules/fable-library-js.5.17.2/Seq2.js";
7
+ import { $007CHasTypeFlags$007C_$007C } from "./Utils.js";
8
+
9
+ export function readConditionalType(reader, typeNode) {
10
+ let branch, trueType, falseType;
11
+ const checker = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]();
12
+ const conditionalTypeNode = typeNode;
13
+ const typ = checker.getTypeAtLocation(conditionalTypeNode);
14
+ if (isDeferredConditional(typ)) {
15
+ const resolved = isAnyTypeParameter(reader, conditionalTypeNode.checkType) ? ((branch = ((node) => {
16
+ const matchValue = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](node);
17
+ let matchResult, glueType;
18
+ if (matchValue.tag === 8) {
19
+ if (matchValue.fields[0].tag === 4) {
20
+ matchResult = 0;
21
+ }
22
+ else {
23
+ matchResult = 1;
24
+ glueType = matchValue;
25
+ }
26
+ }
27
+ else {
28
+ matchResult = 1;
29
+ glueType = matchValue;
30
+ }
31
+ switch (matchResult) {
32
+ case 0:
33
+ return new GlueType(/* Primitive */ 3, [GluePrimitive.Null]);
34
+ default:
35
+ return glueType;
36
+ }
37
+ }), (trueType = branch(conditionalTypeNode.trueType), (falseType = branch(conditionalTypeNode.falseType), equals(trueType, falseType) ? trueType : (new GlueType(/* Union */ 7, [new GlueTypeUnion(ofArray([trueType, falseType]))])))))) : tryResolveDeferred(reader, typeNode);
38
+ if (resolved == null) {
39
+ const warningsCount = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().length | 0;
40
+ const inferred = List_distinctBy((_arg) => _arg.Name, map((inferTypeNode) => (new GlueTypeParameter(inferTypeNode.typeParameter.name.getText(), inferredConstraint(reader, inferTypeNode), undefined)), inferTypeNodes(conditionalTypeNode.extendsType)), {
41
+ Equals: (x, y) => (x === y),
42
+ GetHashCode: (x) => (stringHash(x) | 0),
43
+ });
44
+ const conditionalType = new GlueConditionalType(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](conditionalTypeNode.checkType), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](conditionalTypeNode.extendsType), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](conditionalTypeNode.trueType), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](conditionalTypeNode.falseType), inferred);
45
+ if (reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().length > warningsCount) {
46
+ reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().splice(warningsCount, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().length - warningsCount);
47
+ return new GlueType(/* Primitive */ 3, [GluePrimitive.Any]);
48
+ }
49
+ else {
50
+ return new GlueType(/* ConditionalType */ 33, [conditionalType]);
51
+ }
52
+ }
53
+ else {
54
+ return resolved;
55
+ }
56
+ }
57
+ else {
58
+ const matchValue_1 = typ.flags;
59
+ if ($007CHasTypeFlags$007C_$007C(524288, matchValue_1) != null) {
60
+ return new GlueType(/* TypeParameter */ 16, [typ.symbol.name]);
61
+ }
62
+ else if ($007CHasTypeFlags$007C_$007C(8192, matchValue_1) != null) {
63
+ return new GlueType(/* Literal */ 8, [new GlueLiteral(/* Bool */ 3, [typ.intrinsicName === "true"])]);
64
+ }
65
+ else {
66
+ const matchValue_2 = readTypeUsingFlags(reader, typ);
67
+ let matchResult_1, forward;
68
+ if (matchValue_2.tag === 3) {
69
+ if (matchValue_2.fields[0].tag === 6) {
70
+ matchResult_1 = 0;
71
+ }
72
+ else {
73
+ matchResult_1 = 1;
74
+ forward = matchValue_2;
75
+ }
76
+ }
77
+ else {
78
+ matchResult_1 = 1;
79
+ forward = matchValue_2;
80
+ }
81
+ switch (matchResult_1) {
82
+ case 0:
83
+ return reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](conditionalTypeNode.checkType);
84
+ default:
85
+ return forward;
86
+ }
87
+ }
88
+ }
89
+ }
90
+
@@ -1,7 +1,7 @@
1
1
 
2
2
  import { Operators_IsNull } from "../../fable_modules/fable-library-js.5.17.2/FSharp.Core.js";
3
3
  import { Exception, defaultOf } from "../../fable_modules/fable-library-js.5.17.2/Util.js";
4
- import { resolveAlias, readMemberTypeParameters, ModifierUtil_GetAccessor_Z9A9AE16, identifierText, ModifierUtil_HasModifier_Z687DC302, ModifierUtil_GetAccessor_693AB805 } from "./Utils.js";
4
+ import { resolveAlias, readMemberTypeParameters, isPrivateMember, ModifierUtil_GetAccessor_2944DA29, ModifierUtil_HasModifier_742AC9D, identifierText, ModifierUtil_GetAccessor_Z1CCFC6BA } from "./Utils.js";
5
5
  import { GlueAccessor, GlueType, GluePrimitive, GlueIndexSignature, GlueConstructSignature, GlueCallSignature, GlueSetAccessor, GlueGetAccessor, GlueMethod, GlueMethodSignature, GlueMember, GlueProperty } from "../GlueAST.js";
6
6
  import { defaultArg } from "../../fable_modules/fable-library-js.5.17.2/Option.js";
7
7
  import { exists } from "../../fable_modules/fable-library-js.5.17.2/Seq.js";
@@ -19,55 +19,49 @@ export function readDeclaration(reader, declaration) {
19
19
  let name_1, matchValue_1, Name_1, Documentation_2, Type_1, IsOptional_1, Documentation_1, option_1, matchValue_2, matchValue_5, typeNode, declarations, target_2, matchValue_4;
20
20
  const matchValue = declaration.kind;
21
21
  switch (matchValue) {
22
- case 171: {
22
+ case 172: {
23
23
  const propertySignature = declaration;
24
24
  const name = propertySignature.name;
25
- return new GlueMember(/* Property */ 1, [new GlueProperty((name_1 = propertySignature.name, !Operators_IsNull(name_1.text) ? name_1.text : ((name_1.pos < 0) ? ((matchValue_1 = name_1.escapedText, (matchValue_1 === defaultOf()) ? "computed" : matchValue_1)) : (name_1.getText()))), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](propertySignature.type), false, propertySignature.questionToken != null, ModifierUtil_GetAccessor_693AB805(propertySignature.modifiers), false)]);
25
+ return new GlueMember(/* Property */ 1, [new GlueProperty((name_1 = propertySignature.name, !Operators_IsNull(name_1.text) ? name_1.text : ((name_1.pos < 0) ? ((matchValue_1 = name_1.escapedText, (matchValue_1 === defaultOf()) ? "computed" : matchValue_1)) : (name_1.getText()))), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](propertySignature.type), false, propertySignature.questionToken != null, ModifierUtil_GetAccessor_Z1CCFC6BA(propertySignature.modifiers), false)]);
26
26
  }
27
- case 172: {
27
+ case 173: {
28
28
  const propertyDeclaration = declaration;
29
29
  const name_4 = propertyDeclaration.name;
30
- const hasPrivateModifier = ModifierUtil_HasModifier_Z687DC302(propertyDeclaration.modifiers, 123);
31
- const isPrivateIdentifier = name_4.kind === 81;
32
- return new GlueMember(/* Property */ 1, [(Name_1 = identifierText(name_4), (Documentation_2 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_4), (Type_1 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](propertyDeclaration.type), (IsOptional_1 = (propertyDeclaration.questionToken != null), new GlueProperty(Name_1, Documentation_2, Type_1, ModifierUtil_HasModifier_Z687DC302(propertyDeclaration.modifiers, 126), IsOptional_1, ModifierUtil_GetAccessor_Z9A9AE16(propertyDeclaration.modifiers), hasPrivateModifier ? true : isPrivateIdentifier)))))]);
30
+ return new GlueMember(/* Property */ 1, [(Name_1 = identifierText(name_4), (Documentation_2 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_4), (Type_1 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](propertyDeclaration.type), (IsOptional_1 = (propertyDeclaration.questionToken != null), new GlueProperty(Name_1, Documentation_2, Type_1, ModifierUtil_HasModifier_742AC9D(propertyDeclaration.modifiers, 126), IsOptional_1, ModifierUtil_GetAccessor_2944DA29(propertyDeclaration.modifiers), isPrivateMember(propertyDeclaration.modifiers, name_4))))))]);
33
31
  }
34
- case 173: {
32
+ case 174: {
35
33
  const methodSignature = declaration;
36
34
  const name_3 = methodSignature.name;
37
- return new GlueMember(/* MethodSignature */ 6, [(Documentation_1 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_3), new GlueMethodSignature(identifierText(name_3), Documentation_1, readMemberTypeParameters(reader, methodSignature.typeParameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](methodSignature.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](methodSignature.type)))]);
35
+ return new GlueMember(/* MethodSignature */ 6, [(Documentation_1 = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_3), new GlueMethodSignature(identifierText(name_3), Documentation_1, readMemberTypeParameters(reader, methodSignature.typeParameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParameters716C1F42"](methodSignature.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](methodSignature.type), methodSignature.questionToken != null))]);
38
36
  }
39
- case 174: {
37
+ case 175: {
40
38
  const methodDeclaration = declaration;
41
39
  const name_2 = methodDeclaration.name;
42
- return new GlueMember(/* Method */ 0, [new GlueMethod(identifierText(name_2), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_2), readMemberTypeParameters(reader, methodDeclaration.typeParameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](methodDeclaration.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](methodDeclaration.type), methodDeclaration.questionToken != null, defaultArg((option_1 = methodDeclaration.modifiers, (option_1 != null) ? exists((modifier) => (modifier.kind === 126), option_1) : undefined), false))]);
40
+ return new GlueMember(/* Method */ 0, [new GlueMethod(identifierText(name_2), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_2), readMemberTypeParameters(reader, methodDeclaration.typeParameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParameters716C1F42"](methodDeclaration.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](methodDeclaration.type), methodDeclaration.questionToken != null, defaultArg((option_1 = methodDeclaration.modifiers, (option_1 != null) ? exists((modifier) => (modifier.kind === 126), option_1) : undefined), false))]);
43
41
  }
44
- case 177: {
42
+ case 178: {
45
43
  const getAccessorDeclaration = declaration;
46
44
  const name_5 = getAccessorDeclaration.name;
47
- const hasPrivateModifier_1 = ModifierUtil_HasModifier_Z687DC302(getAccessorDeclaration.modifiers, 123);
48
- const isPrivateIdentifier_1 = name_5.kind === 81;
49
- return new GlueMember(/* GetAccessor */ 2, [new GlueGetAccessor(identifierText(name_5), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_5), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](getAccessorDeclaration.type), ModifierUtil_HasModifier_Z687DC302(getAccessorDeclaration.modifiers, 126), hasPrivateModifier_1 ? true : isPrivateIdentifier_1)]);
45
+ return new GlueMember(/* GetAccessor */ 2, [new GlueGetAccessor(identifierText(name_5), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_5), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](getAccessorDeclaration.type), ModifierUtil_HasModifier_742AC9D(getAccessorDeclaration.modifiers, 126), isPrivateMember(getAccessorDeclaration.modifiers, name_5))]);
50
46
  }
51
- case 178: {
47
+ case 179: {
52
48
  const setAccessorDeclaration = declaration;
53
49
  const name_6 = setAccessorDeclaration.name;
54
- const hasPrivateModifier_2 = ModifierUtil_HasModifier_Z687DC302(setAccessorDeclaration.modifiers, 123);
55
- const isPrivateIdentifier_2 = name_6.kind === 81;
56
- return new GlueMember(/* SetAccessor */ 3, [new GlueSetAccessor(identifierText(name_6), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_6), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](item(0, setAccessorDeclaration.parameters).type), ModifierUtil_HasModifier_Z687DC302(setAccessorDeclaration.modifiers, 126), hasPrivateModifier_2 ? true : isPrivateIdentifier_2)]);
50
+ return new GlueMember(/* SetAccessor */ 3, [new GlueSetAccessor(identifierText(name_6), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_6), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"]((setAccessorDeclaration.parameters[0]).type), ModifierUtil_HasModifier_742AC9D(setAccessorDeclaration.modifiers, 126), isPrivateMember(setAccessorDeclaration.modifiers, name_6))]);
57
51
  }
58
- case 179: {
52
+ case 180: {
59
53
  const callSignature = declaration;
60
- return new GlueMember(/* CallSignature */ 4, [new GlueCallSignature(readMemberTypeParameters(reader, callSignature.typeParameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](callSignature.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](callSignature.type))]);
54
+ return new GlueMember(/* CallSignature */ 4, [new GlueCallSignature(readMemberTypeParameters(reader, callSignature.typeParameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParameters716C1F42"](callSignature.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](callSignature.type))]);
61
55
  }
62
- case 180: {
56
+ case 181: {
63
57
  const constructSignature = declaration;
64
- return new GlueMember(/* ConstructSignature */ 7, [new GlueConstructSignature(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](constructSignature.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](constructSignature.type))]);
58
+ return new GlueMember(/* ConstructSignature */ 7, [new GlueConstructSignature(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParameters716C1F42"](constructSignature.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](constructSignature.type))]);
65
59
  }
66
- case 181: {
60
+ case 182: {
67
61
  const indexSignature = declaration;
68
- return new GlueMember(/* IndexSignature */ 5, [new GlueIndexSignature(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](indexSignature.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](indexSignature.type), (matchValue_2 = indexSignature.modifiers, (matchValue_2 == null) ? false : exists((modifier_1) => (modifier_1.kind === 148), matchValue_2)))]);
62
+ return new GlueMember(/* IndexSignature */ 5, [new GlueIndexSignature(reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParameters716C1F42"](indexSignature.parameters), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](indexSignature.type), (matchValue_2 = indexSignature.modifiers, (matchValue_2 == null) ? false : exists((modifier_1) => (modifier_1.kind === 148), matchValue_2)))]);
69
63
  }
70
- case 260: {
64
+ case 261: {
71
65
  const variableDeclaration = declaration;
72
66
  const name_7 = variableDeclaration.name;
73
67
  let isConst;
@@ -75,7 +69,7 @@ export function readDeclaration(reader, declaration) {
75
69
  isConst = (!Operators_IsNull(parent) && ((parent.flags & 2) !== 0));
76
70
  return new GlueMember(/* Property */ 1, [new GlueProperty(identifierText(name_7), reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](name_7), (matchValue_5 = variableDeclaration.type, (matchValue_5 == null) ? (new GlueType(/* Primitive */ 3, [GluePrimitive.Any])) : ((typeNode = matchValue_5, reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](typeNode)))), false, false, isConst ? GlueAccessor.ReadOnly : GlueAccessor.ReadWrite, false)]);
77
71
  }
78
- case 262: {
72
+ case 263: {
79
73
  const functionDeclaration = reader["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadFunctionDeclarationZ72EBD329"](declaration);
80
74
  if (functionDeclaration.tag === 6) {
81
75
  const info = functionDeclaration.fields[0];
@@ -85,7 +79,7 @@ export function readDeclaration(reader, declaration) {
85
79
  throw new Exception("Expected a function declaration");
86
80
  }
87
81
  }
88
- case 281: {
82
+ case 282: {
89
83
  const exportSpecifier = declaration;
90
84
  let target_1;
91
85
  let option_6;
@@ -125,7 +119,7 @@ export function readDeclaration(reader, declaration) {
125
119
  }
126
120
  let matchResult_1, target_3;
127
121
  if (target_1 != null) {
128
- if ((target_2 = target_1, (matchValue_4 = target_2.kind, (matchValue_4 === 171) ? true : ((matchValue_4 === 172) ? true : ((matchValue_4 === 173) ? true : ((matchValue_4 === 174) ? true : ((matchValue_4 === 260) ? true : (matchValue_4 === 262)))))))) {
122
+ if ((target_2 = target_1, (matchValue_4 = target_2.kind, (matchValue_4 === 172) ? true : ((matchValue_4 === 173) ? true : ((matchValue_4 === 174) ? true : ((matchValue_4 === 175) ? true : ((matchValue_4 === 261) ? true : (matchValue_4 === 263)))))))) {
129
123
  matchResult_1 = 0;
130
124
  target_3 = target_1;
131
125
  }
@@ -144,7 +138,7 @@ export function readDeclaration(reader, declaration) {
144
138
  }
145
139
  }
146
140
  default:
147
- throw new Exception(Report_readerError_Z19516DCE("declaration", concat("Unsupported kind ", TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(declaration.kind)), declaration, "/_//src/Glutinum.Converter/Reader/Declaration.fs", 270));
141
+ throw new Exception(Report_readerError_Z19516DCE("declaration", concat("Unsupported kind ", TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name(declaration.kind)), declaration, "/_//src/Glutinum.Converter/Reader/Declaration.fs", 255));
148
142
  }
149
143
  }
150
144