@glutinum/cli 0.4.0 → 0.6.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 (173) hide show
  1. package/README.md +74 -7
  2. package/dist/Glutinum.Converter/FsharpAST.js +152 -20
  3. package/dist/Glutinum.Converter/FsharpAST.js.map +1 -1
  4. package/dist/Glutinum.Converter/Generate.js +17 -5
  5. package/dist/Glutinum.Converter/Generate.js.map +1 -1
  6. package/dist/Glutinum.Converter/GlueAST.js +110 -17
  7. package/dist/Glutinum.Converter/GlueAST.js.map +1 -1
  8. package/dist/Glutinum.Converter/Log.js +9 -5
  9. package/dist/Glutinum.Converter/Log.js.map +1 -1
  10. package/dist/Glutinum.Converter/Printer.js +486 -132
  11. package/dist/Glutinum.Converter/Printer.js.map +1 -1
  12. package/dist/Glutinum.Converter/Read.js +8 -5
  13. package/dist/Glutinum.Converter/Read.js.map +1 -1
  14. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +14 -6
  15. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js.map +1 -1
  16. package/dist/Glutinum.Converter/Reader/Declaration.js +50 -0
  17. package/dist/Glutinum.Converter/Reader/Declaration.js.map +1 -0
  18. package/dist/Glutinum.Converter/Reader/Documentation.js +119 -0
  19. package/dist/Glutinum.Converter/Reader/Documentation.js.map +1 -0
  20. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js +9 -8
  21. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js.map +1 -1
  22. package/dist/Glutinum.Converter/Reader/ExportAssignment.js +42 -0
  23. package/dist/Glutinum.Converter/Reader/ExportAssignment.js.map +1 -0
  24. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js +13 -4
  25. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js.map +1 -1
  26. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js +4 -2
  27. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js.map +1 -1
  28. package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js +3 -3
  29. package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js.map +1 -1
  30. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js +3 -3
  31. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js.map +1 -1
  32. package/dist/Glutinum.Converter/Reader/NamedTupleMember.js +7 -0
  33. package/dist/Glutinum.Converter/Reader/NamedTupleMember.js.map +1 -0
  34. package/dist/Glutinum.Converter/Reader/Node.js +23 -11
  35. package/dist/Glutinum.Converter/Reader/Node.js.map +1 -1
  36. package/dist/Glutinum.Converter/Reader/Parameters.js +3 -3
  37. package/dist/Glutinum.Converter/Reader/Parameters.js.map +1 -1
  38. package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js +5 -5
  39. package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js.map +1 -1
  40. package/dist/Glutinum.Converter/Reader/TypeNode.js +160 -18
  41. package/dist/Glutinum.Converter/Reader/TypeNode.js.map +1 -1
  42. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js +32 -21
  43. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js.map +1 -1
  44. package/dist/Glutinum.Converter/Reader/TypeParameters.js +2 -2
  45. package/dist/Glutinum.Converter/Reader/TypeScriptReader.js +107 -77
  46. package/dist/Glutinum.Converter/Reader/TypeScriptReader.js.map +1 -1
  47. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +14 -8
  48. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js.map +1 -1
  49. package/dist/Glutinum.Converter/Reader/Utils.js +73 -7
  50. package/dist/Glutinum.Converter/Reader/Utils.js.map +1 -1
  51. package/dist/Glutinum.Converter/Reader/VariableStatement.js +13 -7
  52. package/dist/Glutinum.Converter/Reader/VariableStatement.js.map +1 -1
  53. package/dist/Glutinum.Converter/Transform.js +599 -203
  54. package/dist/Glutinum.Converter/Transform.js.map +1 -1
  55. package/dist/Glutinum.Converter/TypeScript.js +1 -1
  56. package/dist/Glutinum.Converter/Utils/Keywords.js +3 -3
  57. package/dist/Glutinum.Converter/Utils/List.js +62 -0
  58. package/dist/Glutinum.Converter/Utils/List.js.map +1 -0
  59. package/dist/Glutinum.Converter/Utils/Naming.js +96 -17
  60. package/dist/Glutinum.Converter/Utils/Naming.js.map +1 -1
  61. package/dist/Glutinum.Converter/Utils/String.js +6 -1
  62. package/dist/Glutinum.Converter/Utils/String.js.map +1 -1
  63. package/dist/Program.js +9 -10
  64. package/dist/Program.js.map +1 -1
  65. package/package.json +22 -3
  66. package/dist/Glutinum.Converter/Reader/NamedDeclaration.js +0 -36
  67. package/dist/Glutinum.Converter/Reader/NamedDeclaration.js.map +0 -1
  68. package/dist/Glutinum.Converter/Reader/Types.js +0 -16
  69. package/dist/Glutinum.Converter/Reader/Types.js.map +0 -1
  70. package/dist/fable_modules/fable-library.4.5.0/Array.d.ts +0 -120
  71. package/dist/fable_modules/fable-library.4.5.0/Array.js +0 -1204
  72. package/dist/fable_modules/fable-library.4.5.0/Async.d.ts +0 -32
  73. package/dist/fable_modules/fable-library.4.5.0/Async.js +0 -158
  74. package/dist/fable_modules/fable-library.4.5.0/AsyncBuilder.d.ts +0 -59
  75. package/dist/fable_modules/fable-library.4.5.0/AsyncBuilder.js +0 -183
  76. package/dist/fable_modules/fable-library.4.5.0/BigInt.d.ts +0 -115
  77. package/dist/fable_modules/fable-library.4.5.0/BigInt.js +0 -282
  78. package/dist/fable_modules/fable-library.4.5.0/BitConverter.d.ts +0 -27
  79. package/dist/fable_modules/fable-library.4.5.0/BitConverter.js +0 -138
  80. package/dist/fable_modules/fable-library.4.5.0/Boolean.d.ts +0 -3
  81. package/dist/fable_modules/fable-library.4.5.0/Boolean.js +0 -21
  82. package/dist/fable_modules/fable-library.4.5.0/CHANGELOG.md +0 -11
  83. package/dist/fable_modules/fable-library.4.5.0/Char.d.ts +0 -65
  84. package/dist/fable_modules/fable-library.4.5.0/Char.js +0 -169
  85. package/dist/fable_modules/fable-library.4.5.0/Choice.d.ts +0 -138
  86. package/dist/fable_modules/fable-library.4.5.0/Choice.js +0 -227
  87. package/dist/fable_modules/fable-library.4.5.0/Date.d.ts +0 -70
  88. package/dist/fable_modules/fable-library.4.5.0/Date.js +0 -451
  89. package/dist/fable_modules/fable-library.4.5.0/DateOffset.d.ts +0 -63
  90. package/dist/fable_modules/fable-library.4.5.0/DateOffset.js +0 -268
  91. package/dist/fable_modules/fable-library.4.5.0/DateOnly.d.ts +0 -18
  92. package/dist/fable_modules/fable-library.4.5.0/DateOnly.js +0 -124
  93. package/dist/fable_modules/fable-library.4.5.0/Decimal.d.ts +0 -45
  94. package/dist/fable_modules/fable-library.4.5.0/Decimal.js +0 -212
  95. package/dist/fable_modules/fable-library.4.5.0/Double.d.ts +0 -11
  96. package/dist/fable_modules/fable-library.4.5.0/Double.js +0 -46
  97. package/dist/fable_modules/fable-library.4.5.0/Encoding.d.ts +0 -12
  98. package/dist/fable_modules/fable-library.4.5.0/Encoding.js +0 -173
  99. package/dist/fable_modules/fable-library.4.5.0/Event.d.ts +0 -31
  100. package/dist/fable_modules/fable-library.4.5.0/Event.js +0 -93
  101. package/dist/fable_modules/fable-library.4.5.0/FSharp.Collections.d.ts +0 -7
  102. package/dist/fable_modules/fable-library.4.5.0/FSharp.Collections.js +0 -27
  103. package/dist/fable_modules/fable-library.4.5.0/FSharp.Core.d.ts +0 -17
  104. package/dist/fable_modules/fable-library.4.5.0/FSharp.Core.js +0 -69
  105. package/dist/fable_modules/fable-library.4.5.0/Global.d.ts +0 -24
  106. package/dist/fable_modules/fable-library.4.5.0/Global.js +0 -8
  107. package/dist/fable_modules/fable-library.4.5.0/Guid.d.ts +0 -10
  108. package/dist/fable_modules/fable-library.4.5.0/Guid.js +0 -142
  109. package/dist/fable_modules/fable-library.4.5.0/Int32.d.ts +0 -28
  110. package/dist/fable_modules/fable-library.4.5.0/Int32.js +0 -135
  111. package/dist/fable_modules/fable-library.4.5.0/List.d.ts +0 -143
  112. package/dist/fable_modules/fable-library.4.5.0/List.js +0 -1273
  113. package/dist/fable_modules/fable-library.4.5.0/Long.d.ts +0 -3
  114. package/dist/fable_modules/fable-library.4.5.0/Long.js +0 -46
  115. package/dist/fable_modules/fable-library.4.5.0/MailboxProcessor.d.ts +0 -25
  116. package/dist/fable_modules/fable-library.4.5.0/MailboxProcessor.js +0 -93
  117. package/dist/fable_modules/fable-library.4.5.0/Map.d.ts +0 -178
  118. package/dist/fable_modules/fable-library.4.5.0/Map.js +0 -1396
  119. package/dist/fable_modules/fable-library.4.5.0/MapUtil.d.ts +0 -10
  120. package/dist/fable_modules/fable-library.4.5.0/MapUtil.js +0 -112
  121. package/dist/fable_modules/fable-library.4.5.0/MutableMap.d.ts +0 -52
  122. package/dist/fable_modules/fable-library.4.5.0/MutableMap.js +0 -326
  123. package/dist/fable_modules/fable-library.4.5.0/MutableSet.d.ts +0 -39
  124. package/dist/fable_modules/fable-library.4.5.0/MutableSet.js +0 -232
  125. package/dist/fable_modules/fable-library.4.5.0/Native.d.ts +0 -2
  126. package/dist/fable_modules/fable-library.4.5.0/Native.js +0 -8
  127. package/dist/fable_modules/fable-library.4.5.0/Numeric.d.ts +0 -19
  128. package/dist/fable_modules/fable-library.4.5.0/Numeric.js +0 -71
  129. package/dist/fable_modules/fable-library.4.5.0/Observable.d.ts +0 -32
  130. package/dist/fable_modules/fable-library.4.5.0/Observable.js +0 -113
  131. package/dist/fable_modules/fable-library.4.5.0/Option.d.ts +0 -28
  132. package/dist/fable_modules/fable-library.4.5.0/Option.js +0 -96
  133. package/dist/fable_modules/fable-library.4.5.0/README.md +0 -3
  134. package/dist/fable_modules/fable-library.4.5.0/Random.d.ts +0 -37
  135. package/dist/fable_modules/fable-library.4.5.0/Random.js +0 -170
  136. package/dist/fable_modules/fable-library.4.5.0/Range.d.ts +0 -12
  137. package/dist/fable_modules/fable-library.4.5.0/Range.js +0 -45
  138. package/dist/fable_modules/fable-library.4.5.0/Reflection.d.ts +0 -119
  139. package/dist/fable_modules/fable-library.4.5.0/Reflection.js +0 -461
  140. package/dist/fable_modules/fable-library.4.5.0/RegExp.d.ts +0 -10
  141. package/dist/fable_modules/fable-library.4.5.0/RegExp.js +0 -132
  142. package/dist/fable_modules/fable-library.4.5.0/Seq.d.ts +0 -165
  143. package/dist/fable_modules/fable-library.4.5.0/Seq.js +0 -1379
  144. package/dist/fable_modules/fable-library.4.5.0/Seq2.d.ts +0 -18
  145. package/dist/fable_modules/fable-library.4.5.0/Seq2.js +0 -111
  146. package/dist/fable_modules/fable-library.4.5.0/Set.d.ts +0 -190
  147. package/dist/fable_modules/fable-library.4.5.0/Set.js +0 -1789
  148. package/dist/fable_modules/fable-library.4.5.0/String.d.ts +0 -49
  149. package/dist/fable_modules/fable-library.4.5.0/String.js +0 -540
  150. package/dist/fable_modules/fable-library.4.5.0/System.Collections.Generic.d.ts +0 -71
  151. package/dist/fable_modules/fable-library.4.5.0/System.Collections.Generic.js +0 -307
  152. package/dist/fable_modules/fable-library.4.5.0/System.Text.d.ts +0 -30
  153. package/dist/fable_modules/fable-library.4.5.0/System.Text.js +0 -110
  154. package/dist/fable_modules/fable-library.4.5.0/SystemException.d.ts +0 -5
  155. package/dist/fable_modules/fable-library.4.5.0/SystemException.js +0 -5
  156. package/dist/fable_modules/fable-library.4.5.0/TimeOnly.d.ts +0 -15
  157. package/dist/fable_modules/fable-library.4.5.0/TimeOnly.js +0 -122
  158. package/dist/fable_modules/fable-library.4.5.0/TimeSpan.d.ts +0 -34
  159. package/dist/fable_modules/fable-library.4.5.0/TimeSpan.js +0 -177
  160. package/dist/fable_modules/fable-library.4.5.0/Timer.d.ts +0 -19
  161. package/dist/fable_modules/fable-library.4.5.0/Timer.js +0 -67
  162. package/dist/fable_modules/fable-library.4.5.0/Types.d.ts +0 -58
  163. package/dist/fable_modules/fable-library.4.5.0/Types.js +0 -208
  164. package/dist/fable_modules/fable-library.4.5.0/Unicode.13.0.0.d.ts +0 -2
  165. package/dist/fable_modules/fable-library.4.5.0/Unicode.13.0.0.js +0 -4
  166. package/dist/fable_modules/fable-library.4.5.0/Uri.d.ts +0 -29
  167. package/dist/fable_modules/fable-library.4.5.0/Uri.js +0 -142
  168. package/dist/fable_modules/fable-library.4.5.0/Util.d.ts +0 -207
  169. package/dist/fable_modules/fable-library.4.5.0/Util.js +0 -781
  170. package/dist/fable_modules/fable-library.4.5.0/lib/big.d.ts +0 -5
  171. package/dist/fable_modules/fable-library.4.5.0/lib/big.js +0 -826
  172. package/dist/fable_modules/fable-library.4.5.0/package.json +0 -23
  173. package/dist/fable_modules/project_cracked.json +0 -1
@@ -1,18 +1,46 @@
1
- import { toString, Union, Record } from "../fable_modules/fable-library.4.5.0/Types.js";
2
- import { float64_type, int32_type, union_type, list_type, option_type, record_type, bool_type, string_type } from "../fable_modules/fable-library.4.5.0/Reflection.js";
3
- import { int32ToString } from "../fable_modules/fable-library.4.5.0/Util.js";
1
+ import { toString, Union, Record } from "../fable_modules/fable-library-js.4.14.0/Types.js";
2
+ import { float64_type, int32_type, bool_type, union_type, list_type, record_type, option_type, string_type } from "../fable_modules/fable-library-js.4.14.0/Reflection.js";
3
+ import { int32ToString } from "../fable_modules/fable-library-js.4.14.0/Util.js";
4
+
5
+ export class GlueCommentParam extends Record {
6
+ constructor(Name, Content) {
7
+ super();
8
+ this.Name = Name;
9
+ this.Content = Content;
10
+ }
11
+ }
12
+
13
+ export function GlueCommentParam_$reflection() {
14
+ return record_type("Glutinum.Converter.GlueAST.GlueCommentParam", [], GlueCommentParam, () => [["Name", string_type], ["Content", option_type(string_type)]]);
15
+ }
16
+
17
+ export class GlueComment extends Union {
18
+ constructor(tag, fields) {
19
+ super();
20
+ this.tag = tag;
21
+ this.fields = fields;
22
+ }
23
+ cases() {
24
+ return ["Summary", "Returns", "Param", "Deprecated", "Remarks", "DefaultValue", "Example"];
25
+ }
26
+ }
27
+
28
+ export function GlueComment_$reflection() {
29
+ return union_type("Glutinum.Converter.GlueAST.GlueComment", [], GlueComment, () => [[["Item", list_type(string_type)]], [["Item", string_type]], [["Item", GlueCommentParam_$reflection()]], [["Item", option_type(string_type)]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]]]);
30
+ }
4
31
 
5
32
  export class GlueParameter extends Record {
6
- constructor(Name, IsOptional, Type) {
33
+ constructor(Name, IsOptional, IsSpread, Type) {
7
34
  super();
8
35
  this.Name = Name;
9
36
  this.IsOptional = IsOptional;
37
+ this.IsSpread = IsSpread;
10
38
  this.Type = Type;
11
39
  }
12
40
  }
13
41
 
14
42
  export function GlueParameter_$reflection() {
15
- return record_type("Glutinum.Converter.GlueAST.GlueParameter", [], GlueParameter, () => [["Name", string_type], ["IsOptional", bool_type], ["Type", GlueType_$reflection()]]);
43
+ return record_type("Glutinum.Converter.GlueAST.GlueParameter", [], GlueParameter, () => [["Name", string_type], ["IsOptional", bool_type], ["IsSpread", bool_type], ["Type", GlueType_$reflection()]]);
16
44
  }
17
45
 
18
46
  export class GlueTypeParameter extends Record {
@@ -71,17 +99,20 @@ export function GlueAccessor_$reflection() {
71
99
  }
72
100
 
73
101
  export class GlueProperty extends Record {
74
- constructor(Name, Type, IsStatic, Accessor) {
102
+ constructor(Name, Documentation, Type, IsStatic, IsOptional, Accessor, IsPrivate) {
75
103
  super();
76
104
  this.Name = Name;
105
+ this.Documentation = Documentation;
77
106
  this.Type = Type;
78
107
  this.IsStatic = IsStatic;
108
+ this.IsOptional = IsOptional;
79
109
  this.Accessor = Accessor;
110
+ this.IsPrivate = IsPrivate;
80
111
  }
81
112
  }
82
113
 
83
114
  export function GlueProperty_$reflection() {
84
- return record_type("Glutinum.Converter.GlueAST.GlueProperty", [], GlueProperty, () => [["Name", string_type], ["Type", GlueType_$reflection()], ["IsStatic", bool_type], ["Accessor", GlueAccessor_$reflection()]]);
115
+ return record_type("Glutinum.Converter.GlueAST.GlueProperty", [], GlueProperty, () => [["Name", string_type], ["Documentation", list_type(GlueComment_$reflection())], ["Type", GlueType_$reflection()], ["IsStatic", bool_type], ["IsOptional", bool_type], ["Accessor", GlueAccessor_$reflection()], ["IsPrivate", bool_type]]);
85
116
  }
86
117
 
87
118
  export class GlueIndexSignature extends Record {
@@ -96,6 +127,31 @@ export function GlueIndexSignature_$reflection() {
96
127
  return record_type("Glutinum.Converter.GlueAST.GlueIndexSignature", [], GlueIndexSignature, () => [["Parameters", list_type(GlueParameter_$reflection())], ["Type", GlueType_$reflection()]]);
97
128
  }
98
129
 
130
+ export class GlueMethodSignature extends Record {
131
+ constructor(Name, Parameters, Type) {
132
+ super();
133
+ this.Name = Name;
134
+ this.Parameters = Parameters;
135
+ this.Type = Type;
136
+ }
137
+ }
138
+
139
+ export function GlueMethodSignature_$reflection() {
140
+ return record_type("Glutinum.Converter.GlueAST.GlueMethodSignature", [], GlueMethodSignature, () => [["Name", string_type], ["Parameters", list_type(GlueParameter_$reflection())], ["Type", GlueType_$reflection()]]);
141
+ }
142
+
143
+ export class GlueConstructSignature extends Record {
144
+ constructor(Parameters, Type) {
145
+ super();
146
+ this.Parameters = Parameters;
147
+ this.Type = Type;
148
+ }
149
+ }
150
+
151
+ export function GlueConstructSignature_$reflection() {
152
+ return record_type("Glutinum.Converter.GlueAST.GlueConstructSignature", [], GlueConstructSignature, () => [["Parameters", list_type(GlueParameter_$reflection())], ["Type", GlueType_$reflection()]]);
153
+ }
154
+
99
155
  export class GlueMember extends Union {
100
156
  constructor(tag, fields) {
101
157
  super();
@@ -103,12 +159,12 @@ export class GlueMember extends Union {
103
159
  this.fields = fields;
104
160
  }
105
161
  cases() {
106
- return ["Method", "Property", "CallSignature", "IndexSignature"];
162
+ return ["Method", "Property", "CallSignature", "IndexSignature", "MethodSignature", "ConstructSignature"];
107
163
  }
108
164
  }
109
165
 
110
166
  export function GlueMember_$reflection() {
111
- return union_type("Glutinum.Converter.GlueAST.GlueMember", [], GlueMember, () => [[["Item", GlueMethod_$reflection()]], [["Item", GlueProperty_$reflection()]], [["Item", GlueCallSignature_$reflection()]], [["Item", GlueIndexSignature_$reflection()]]]);
167
+ return union_type("Glutinum.Converter.GlueAST.GlueMember", [], GlueMember, () => [[["Item", GlueMethod_$reflection()]], [["Item", GlueProperty_$reflection()]], [["Item", GlueCallSignature_$reflection()]], [["Item", GlueIndexSignature_$reflection()]], [["Item", GlueMethodSignature_$reflection()]], [["Item", GlueConstructSignature_$reflection()]]]);
112
168
  }
113
169
 
114
170
  export class GlueInterface extends Record {
@@ -124,6 +180,17 @@ export function GlueInterface_$reflection() {
124
180
  return record_type("Glutinum.Converter.GlueAST.GlueInterface", [], GlueInterface, () => [["Name", string_type], ["Members", list_type(GlueMember_$reflection())], ["TypeParameters", list_type(GlueTypeParameter_$reflection())]]);
125
181
  }
126
182
 
183
+ export class GlueTypeLiteral extends Record {
184
+ constructor(Members) {
185
+ super();
186
+ this.Members = Members;
187
+ }
188
+ }
189
+
190
+ export function GlueTypeLiteral_$reflection() {
191
+ return record_type("Glutinum.Converter.GlueAST.GlueTypeLiteral", [], GlueTypeLiteral, () => [["Members", list_type(GlueMember_$reflection())]]);
192
+ }
193
+
127
194
  export class GlueVariable extends Record {
128
195
  constructor(Name, Type) {
129
196
  super();
@@ -143,12 +210,12 @@ export class GluePrimitive extends Union {
143
210
  this.fields = fields;
144
211
  }
145
212
  cases() {
146
- return ["String", "Int", "Float", "Bool", "Unit", "Number", "Any", "Null", "Undefined"];
213
+ return ["String", "Int", "Float", "Bool", "Unit", "Number", "Any", "Null", "Undefined", "Object"];
147
214
  }
148
215
  }
149
216
 
150
217
  export function GluePrimitive_$reflection() {
151
- return union_type("Glutinum.Converter.GlueAST.GluePrimitive", [], GluePrimitive, () => [[], [], [], [], [], [], [], [], []]);
218
+ return union_type("Glutinum.Converter.GlueAST.GluePrimitive", [], GluePrimitive, () => [[], [], [], [], [], [], [], [], [], []]);
152
219
  }
153
220
 
154
221
  export class GlueLiteral extends Union {
@@ -158,12 +225,12 @@ export class GlueLiteral extends Union {
158
225
  this.fields = fields;
159
226
  }
160
227
  cases() {
161
- return ["String", "Int", "Float", "Bool"];
228
+ return ["String", "Int", "Float", "Bool", "Null"];
162
229
  }
163
230
  }
164
231
 
165
232
  export function GlueLiteral_$reflection() {
166
- return union_type("Glutinum.Converter.GlueAST.GlueLiteral", [], GlueLiteral, () => [[["Item", string_type]], [["Item", int32_type]], [["Item", float64_type]], [["Item", bool_type]]]);
233
+ return union_type("Glutinum.Converter.GlueAST.GlueLiteral", [], GlueLiteral, () => [[["Item", string_type]], [["Item", int32_type]], [["Item", float64_type]], [["Item", bool_type]], []]);
167
234
  }
168
235
 
169
236
  export class GlueEnumMember extends Record {
@@ -204,8 +271,9 @@ export function GlueTypeAliasDeclaration_$reflection() {
204
271
  }
205
272
 
206
273
  export class GlueFunctionDeclaration extends Record {
207
- constructor(IsDeclared, Name, Type, Parameters, TypeParameters) {
274
+ constructor(Documentation, IsDeclared, Name, Type, Parameters, TypeParameters) {
208
275
  super();
276
+ this.Documentation = Documentation;
209
277
  this.IsDeclared = IsDeclared;
210
278
  this.Name = Name;
211
279
  this.Type = Type;
@@ -215,7 +283,7 @@ export class GlueFunctionDeclaration extends Record {
215
283
  }
216
284
 
217
285
  export function GlueFunctionDeclaration_$reflection() {
218
- return record_type("Glutinum.Converter.GlueAST.GlueFunctionDeclaration", [], GlueFunctionDeclaration, () => [["IsDeclared", bool_type], ["Name", string_type], ["Type", GlueType_$reflection()], ["Parameters", list_type(GlueParameter_$reflection())], ["TypeParameters", list_type(GlueTypeParameter_$reflection())]]);
286
+ return record_type("Glutinum.Converter.GlueAST.GlueFunctionDeclaration", [], GlueFunctionDeclaration, () => [["Documentation", list_type(GlueComment_$reflection())], ["IsDeclared", bool_type], ["Name", string_type], ["Type", GlueType_$reflection()], ["Parameters", list_type(GlueParameter_$reflection())], ["TypeParameters", list_type(GlueTypeParameter_$reflection())]]);
219
287
  }
220
288
 
221
289
  export class GlueModuleDeclaration extends Record {
@@ -316,6 +384,18 @@ export function GlueFunctionType_$reflection() {
316
384
  return record_type("Glutinum.Converter.GlueAST.GlueFunctionType", [], GlueFunctionType, () => [["Type", GlueType_$reflection()], ["Parameters", list_type(GlueParameter_$reflection())]]);
317
385
  }
318
386
 
387
+ export class NamedTupleType extends Record {
388
+ constructor(Name, Type) {
389
+ super();
390
+ this.Name = Name;
391
+ this.Type = Type;
392
+ }
393
+ }
394
+
395
+ export function NamedTupleType_$reflection() {
396
+ return record_type("Glutinum.Converter.GlueAST.NamedTupleType", [], NamedTupleType, () => [["Name", string_type], ["Type", GlueType_$reflection()]]);
397
+ }
398
+
319
399
  export class GlueType extends Union {
320
400
  constructor(tag, fields) {
321
401
  super();
@@ -323,12 +403,12 @@ export class GlueType extends Union {
323
403
  this.fields = fields;
324
404
  }
325
405
  cases() {
326
- return ["Discard", "Interface", "Variable", "Primitive", "Enum", "TypeAliasDeclaration", "FunctionDeclaration", "Union", "Literal", "KeyOf", "IndexedAccessType", "ModuleDeclaration", "ClassDeclaration", "TypeReference", "Partial", "Array", "FunctionType", "TypeParameter"];
406
+ return ["Discard", "Interface", "Variable", "Primitive", "Enum", "TypeAliasDeclaration", "FunctionDeclaration", "Union", "Literal", "KeyOf", "IndexedAccessType", "ModuleDeclaration", "ClassDeclaration", "TypeReference", "Partial", "Array", "FunctionType", "TypeParameter", "ThisType", "TupleType", "NamedTupleType", "IntersectionType", "TypeLiteral", "OptionalType", "Unknown", "ExportDefault"];
327
407
  }
328
408
  }
329
409
 
330
410
  export function GlueType_$reflection() {
331
- return union_type("Glutinum.Converter.GlueAST.GlueType", [], GlueType, () => [[], [["Item", GlueInterface_$reflection()]], [["Item", GlueVariable_$reflection()]], [["Item", GluePrimitive_$reflection()]], [["Item", GlueEnum_$reflection()]], [["Item", GlueTypeAliasDeclaration_$reflection()]], [["Item", GlueFunctionDeclaration_$reflection()]], [["Item", GlueTypeUnion_$reflection()]], [["Item", GlueLiteral_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueModuleDeclaration_$reflection()]], [["Item", GlueClassDeclaration_$reflection()]], [["Item", GlueTypeReference_$reflection()]], [["Item", GlueInterface_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueFunctionType_$reflection()]], [["Item", string_type]]]);
411
+ return union_type("Glutinum.Converter.GlueAST.GlueType", [], GlueType, () => [[], [["Item", GlueInterface_$reflection()]], [["Item", GlueVariable_$reflection()]], [["Item", GluePrimitive_$reflection()]], [["Item", GlueEnum_$reflection()]], [["Item", GlueTypeAliasDeclaration_$reflection()]], [["Item", GlueFunctionDeclaration_$reflection()]], [["Item", GlueTypeUnion_$reflection()]], [["Item", GlueLiteral_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueModuleDeclaration_$reflection()]], [["Item", GlueClassDeclaration_$reflection()]], [["Item", GlueTypeReference_$reflection()]], [["Item", GlueInterface_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueFunctionType_$reflection()]], [["Item", string_type]], [["typeName", string_type]], [["Item", list_type(GlueType_$reflection())]], [["Item", NamedTupleType_$reflection()]], [["Item", list_type(GlueMember_$reflection())]], [["Item", GlueTypeLiteral_$reflection()]], [["Item", GlueType_$reflection()]], [], [["Item", GlueType_$reflection()]]]);
332
412
  }
333
413
 
334
414
  export function GlueLiteral__ToText(this$) {
@@ -339,6 +419,8 @@ export function GlueLiteral__ToText(this$) {
339
419
  return this$.fields[0].toString();
340
420
  case 3:
341
421
  return toString(this$.fields[0]);
422
+ case 4:
423
+ return "null";
342
424
  default:
343
425
  return this$.fields[0];
344
426
  }
@@ -367,6 +449,8 @@ export function GlueType__get_Name(this$) {
367
449
  return "obj option";
368
450
  case 8:
369
451
  return "obj";
452
+ case 9:
453
+ return "obj";
370
454
  default:
371
455
  return "string";
372
456
  }
@@ -391,11 +475,20 @@ export function GlueType__get_Name(this$) {
391
475
  return this$.fields[0].Name;
392
476
  case 15:
393
477
  return `ResizeArray<${GlueType__get_Name(this$.fields[0])}>`;
478
+ case 18:
479
+ return this$.fields[0];
480
+ case 20:
481
+ case 22:
482
+ case 21:
394
483
  case 10:
395
484
  case 7:
396
485
  case 14:
397
486
  case 16:
487
+ case 19:
488
+ case 23:
398
489
  case 0:
490
+ case 25:
491
+ case 24:
399
492
  return "obj";
400
493
  default:
401
494
  return this$.fields[0].Name;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Glutinum.Converter/GlueAST.fs"],"names":["this","value","info","ToText","Name"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAsGcA;;iCAES,AAAAA;;mBACSC,AAAP,AAAAD;;AACD,mBAAA,SAAA,AAAAA;;AAHE,mBAAA,AAAAA;;;;;YA4FZA;;AAEa,mBAAA,AAAAA;;AACPE,2BACF,AAAAF;oBAAAE;;2BAEiB;;2BACE;;2BACD;;2BACA;;2BACE;;2BACH;;2BACC;;2BACK;;2BARH;;;;AASf,mBAAA,AAAAF;;AACgB,mBAAA,AAAAA;;AACP,mBAAA,AAAAA;;AACN,mBAAA,AAAAG,oBAAA,AAAAH;;mBACL;;AACiB,mBAAA,AAAAA;;AACF,mBAAA,AAAAA;;AACD,mBAAA,AAAAA;;AACH,mBAAA,AAAAA;;mBACR,eAAe,AAAAI,mBAAf,AAAAJ;;;;;;mBAKH;;AA3BO,mBAAA,AAAAA","file":null,"sourcesContent":null,"sourceRoot":null}
1
+ {"version":3,"sources":["../../src/Glutinum.Converter/GlueAST.fs"],"names":["this","value","info","ToText","Name"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAsIcA;;iCAES,AAAAA;;mBACSC,AAAP,AAAAD;;AACD,mBAAA,SAAA,AAAAA;;mBACN;;AAJQ,mBAAA,AAAAA;;;;;YAoGZA;;AAEa,mBAAA,AAAAA;;AACPE,2BACF,AAAAF;oBAAAE;;2BAEiB;;2BACE;;2BACD;;2BACA;;2BACE;;2BACH;;2BACC;;2BACK;;2BACH;;2BATA;;;;AAUf,mBAAA,AAAAF;;AACgB,mBAAA,AAAAA;;AACP,mBAAA,AAAAA;;AACN,mBAAA,AAAAG,oBAAA,AAAAH;;mBACL;;AACiB,mBAAA,AAAAA;;AACF,mBAAA,AAAAA;;AACD,mBAAA,AAAAA;;AACH,mBAAA,AAAAA;;mBACR,eAAe,AAAAI,mBAAf,AAAAJ;;AACO,mBAAA,AAAAA;;;;;;;;;;;;;mBAYV;;AApCO,mBAAA,AAAAA","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -1,24 +1,28 @@
1
1
  import chalk from "chalk";
2
- import { some } from "../fable_modules/fable-library.4.5.0/Option.js";
2
+ import { some } from "../fable_modules/fable-library-js.4.14.0/Option.js";
3
3
 
4
4
  export function success(text) {
5
5
  console.log(some(chalk.greenBright(text)));
6
6
  }
7
7
 
8
+ export function log(text) {
9
+ console.log(some(text));
10
+ }
11
+
8
12
  export function info(text) {
9
- console.log(some(chalk.blueBright(text)));
13
+ console.info(some(chalk.blueBright(text)));
10
14
  }
11
15
 
12
16
  export function warn(text) {
13
- console.log(some(chalk.yellowBright(text)));
17
+ console.warn(some(chalk.yellowBright(text)));
14
18
  }
15
19
 
16
20
  export function error(text) {
17
- console.log(some(chalk.redBright(text)));
21
+ console.error(some(chalk.redBright(text)));
18
22
  }
19
23
 
20
24
  export function debug(text) {
21
- console.log(some(text));
25
+ console.debug(chalk.gray(text));
22
26
  }
23
27
 
24
28
  //# sourceMappingURL=Log.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Glutinum.Converter/Log.fs"],"names":["text"],"mappings":";;;;AAMI,gBAAgB,KAAA,kBAAyBA;;;;AAGzC,gBAAgB,KAAA,iBAAwBA;;;;AAGxC,gBAAgB,KAAA,mBAA0BA;;;;AAG1C,gBAAgB,KAAA,gBAAuBA;;;;AAEhB,gBAAe,KAAAA","file":null,"sourcesContent":null,"sourceRoot":null}
1
+ {"version":3,"sources":["../../src/Glutinum.Converter/Log.fs"],"names":["text"],"mappings":";;;;AAMI,gBAAgB,KAAA,kBAAyBA;;;;AAEpB,gBAAe,KAAAA;;;;AAGpC,iBAAiB,KAAA,iBAAwBA;;;;AAGzC,iBAAiB,KAAA,mBAA0BA;;;;AAG3C,kBAAkB,KAAA,gBAAuBA;;;;AAGzC,kBAAkB,WAAkBA","file":null,"sourcesContent":null,"sourceRoot":null}