@glutinum/cli 0.3.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +169 -1
- package/dist/Glutinum.Converter/FsharpAST.js +152 -20
- package/dist/Glutinum.Converter/FsharpAST.js.map +1 -1
- package/dist/Glutinum.Converter/Generate.js +17 -5
- package/dist/Glutinum.Converter/Generate.js.map +1 -1
- package/dist/Glutinum.Converter/GlueAST.js +97 -17
- package/dist/Glutinum.Converter/GlueAST.js.map +1 -1
- package/dist/Glutinum.Converter/Log.js +9 -5
- package/dist/Glutinum.Converter/Log.js.map +1 -1
- package/dist/Glutinum.Converter/Printer.js +486 -132
- package/dist/Glutinum.Converter/Printer.js.map +1 -1
- package/dist/Glutinum.Converter/Read.js +8 -5
- package/dist/Glutinum.Converter/Read.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +14 -6
- package/dist/Glutinum.Converter/Reader/ClassDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Declaration.js +50 -0
- package/dist/Glutinum.Converter/Reader/Declaration.js.map +1 -0
- package/dist/Glutinum.Converter/Reader/Documentation.js +119 -0
- package/dist/Glutinum.Converter/Reader/Documentation.js.map +1 -0
- package/dist/Glutinum.Converter/Reader/EnumDeclaration.js +13 -11
- package/dist/Glutinum.Converter/Reader/EnumDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/ExportAssignment.js +42 -0
- package/dist/Glutinum.Converter/Reader/ExportAssignment.js.map +1 -0
- package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js +15 -5
- package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/IndexedAccessType.js +4 -2
- package/dist/Glutinum.Converter/Reader/IndexedAccessType.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js +3 -3
- package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js +3 -3
- package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Node.js +24 -10
- package/dist/Glutinum.Converter/Reader/Node.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Parameters.js +3 -3
- package/dist/Glutinum.Converter/Reader/Parameters.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js +5 -5
- package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/TypeNode.js +151 -18
- package/dist/Glutinum.Converter/Reader/TypeNode.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js +29 -20
- package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/TypeParameters.js +2 -2
- package/dist/Glutinum.Converter/Reader/TypeScriptReader.js +102 -77
- package/dist/Glutinum.Converter/Reader/TypeScriptReader.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +17 -11
- package/dist/Glutinum.Converter/Reader/UnionTypeNode.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Utils.js +80 -5
- package/dist/Glutinum.Converter/Reader/Utils.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/VariableStatement.js +14 -7
- package/dist/Glutinum.Converter/Reader/VariableStatement.js.map +1 -1
- package/dist/Glutinum.Converter/Transform.js +559 -193
- package/dist/Glutinum.Converter/Transform.js.map +1 -1
- package/dist/Glutinum.Converter/TypeScript.js +1 -1
- package/dist/Glutinum.Converter/Utils/Keywords.js +3 -3
- package/dist/Glutinum.Converter/Utils/List.js +62 -0
- package/dist/Glutinum.Converter/Utils/List.js.map +1 -0
- package/dist/Glutinum.Converter/Utils/Naming.js +73 -6
- package/dist/Glutinum.Converter/Utils/Naming.js.map +1 -1
- package/dist/Glutinum.Converter/Utils/String.js +6 -1
- package/dist/Glutinum.Converter/Utils/String.js.map +1 -1
- package/dist/Program.js +9 -10
- package/dist/Program.js.map +1 -1
- package/package.json +22 -3
- package/dist/Glutinum.Converter/Reader/NamedDeclaration.js +0 -34
- package/dist/Glutinum.Converter/Reader/NamedDeclaration.js.map +0 -1
- package/dist/Glutinum.Converter/Reader/Types.js +0 -16
- package/dist/Glutinum.Converter/Reader/Types.js.map +0 -1
- package/dist/fable_modules/fable-library.4.5.0/Array.d.ts +0 -120
- package/dist/fable_modules/fable-library.4.5.0/Array.js +0 -1204
- package/dist/fable_modules/fable-library.4.5.0/Async.d.ts +0 -32
- package/dist/fable_modules/fable-library.4.5.0/Async.js +0 -158
- package/dist/fable_modules/fable-library.4.5.0/AsyncBuilder.d.ts +0 -59
- package/dist/fable_modules/fable-library.4.5.0/AsyncBuilder.js +0 -183
- package/dist/fable_modules/fable-library.4.5.0/BigInt.d.ts +0 -115
- package/dist/fable_modules/fable-library.4.5.0/BigInt.js +0 -282
- package/dist/fable_modules/fable-library.4.5.0/BitConverter.d.ts +0 -27
- package/dist/fable_modules/fable-library.4.5.0/BitConverter.js +0 -138
- package/dist/fable_modules/fable-library.4.5.0/Boolean.d.ts +0 -3
- package/dist/fable_modules/fable-library.4.5.0/Boolean.js +0 -21
- package/dist/fable_modules/fable-library.4.5.0/CHANGELOG.md +0 -11
- package/dist/fable_modules/fable-library.4.5.0/Char.d.ts +0 -65
- package/dist/fable_modules/fable-library.4.5.0/Char.js +0 -169
- package/dist/fable_modules/fable-library.4.5.0/Choice.d.ts +0 -138
- package/dist/fable_modules/fable-library.4.5.0/Choice.js +0 -227
- package/dist/fable_modules/fable-library.4.5.0/Date.d.ts +0 -70
- package/dist/fable_modules/fable-library.4.5.0/Date.js +0 -451
- package/dist/fable_modules/fable-library.4.5.0/DateOffset.d.ts +0 -63
- package/dist/fable_modules/fable-library.4.5.0/DateOffset.js +0 -268
- package/dist/fable_modules/fable-library.4.5.0/DateOnly.d.ts +0 -18
- package/dist/fable_modules/fable-library.4.5.0/DateOnly.js +0 -124
- package/dist/fable_modules/fable-library.4.5.0/Decimal.d.ts +0 -45
- package/dist/fable_modules/fable-library.4.5.0/Decimal.js +0 -212
- package/dist/fable_modules/fable-library.4.5.0/Double.d.ts +0 -11
- package/dist/fable_modules/fable-library.4.5.0/Double.js +0 -46
- package/dist/fable_modules/fable-library.4.5.0/Encoding.d.ts +0 -12
- package/dist/fable_modules/fable-library.4.5.0/Encoding.js +0 -173
- package/dist/fable_modules/fable-library.4.5.0/Event.d.ts +0 -31
- package/dist/fable_modules/fable-library.4.5.0/Event.js +0 -93
- package/dist/fable_modules/fable-library.4.5.0/FSharp.Collections.d.ts +0 -7
- package/dist/fable_modules/fable-library.4.5.0/FSharp.Collections.js +0 -27
- package/dist/fable_modules/fable-library.4.5.0/FSharp.Core.d.ts +0 -17
- package/dist/fable_modules/fable-library.4.5.0/FSharp.Core.js +0 -69
- package/dist/fable_modules/fable-library.4.5.0/Global.d.ts +0 -24
- package/dist/fable_modules/fable-library.4.5.0/Global.js +0 -8
- package/dist/fable_modules/fable-library.4.5.0/Guid.d.ts +0 -10
- package/dist/fable_modules/fable-library.4.5.0/Guid.js +0 -142
- package/dist/fable_modules/fable-library.4.5.0/Int32.d.ts +0 -28
- package/dist/fable_modules/fable-library.4.5.0/Int32.js +0 -135
- package/dist/fable_modules/fable-library.4.5.0/List.d.ts +0 -143
- package/dist/fable_modules/fable-library.4.5.0/List.js +0 -1273
- package/dist/fable_modules/fable-library.4.5.0/Long.d.ts +0 -3
- package/dist/fable_modules/fable-library.4.5.0/Long.js +0 -46
- package/dist/fable_modules/fable-library.4.5.0/MailboxProcessor.d.ts +0 -25
- package/dist/fable_modules/fable-library.4.5.0/MailboxProcessor.js +0 -93
- package/dist/fable_modules/fable-library.4.5.0/Map.d.ts +0 -178
- package/dist/fable_modules/fable-library.4.5.0/Map.js +0 -1396
- package/dist/fable_modules/fable-library.4.5.0/MapUtil.d.ts +0 -10
- package/dist/fable_modules/fable-library.4.5.0/MapUtil.js +0 -112
- package/dist/fable_modules/fable-library.4.5.0/MutableMap.d.ts +0 -52
- package/dist/fable_modules/fable-library.4.5.0/MutableMap.js +0 -326
- package/dist/fable_modules/fable-library.4.5.0/MutableSet.d.ts +0 -39
- package/dist/fable_modules/fable-library.4.5.0/MutableSet.js +0 -232
- package/dist/fable_modules/fable-library.4.5.0/Native.d.ts +0 -2
- package/dist/fable_modules/fable-library.4.5.0/Native.js +0 -8
- package/dist/fable_modules/fable-library.4.5.0/Numeric.d.ts +0 -19
- package/dist/fable_modules/fable-library.4.5.0/Numeric.js +0 -71
- package/dist/fable_modules/fable-library.4.5.0/Observable.d.ts +0 -32
- package/dist/fable_modules/fable-library.4.5.0/Observable.js +0 -113
- package/dist/fable_modules/fable-library.4.5.0/Option.d.ts +0 -28
- package/dist/fable_modules/fable-library.4.5.0/Option.js +0 -96
- package/dist/fable_modules/fable-library.4.5.0/README.md +0 -3
- package/dist/fable_modules/fable-library.4.5.0/Random.d.ts +0 -37
- package/dist/fable_modules/fable-library.4.5.0/Random.js +0 -170
- package/dist/fable_modules/fable-library.4.5.0/Range.d.ts +0 -12
- package/dist/fable_modules/fable-library.4.5.0/Range.js +0 -45
- package/dist/fable_modules/fable-library.4.5.0/Reflection.d.ts +0 -119
- package/dist/fable_modules/fable-library.4.5.0/Reflection.js +0 -461
- package/dist/fable_modules/fable-library.4.5.0/RegExp.d.ts +0 -10
- package/dist/fable_modules/fable-library.4.5.0/RegExp.js +0 -132
- package/dist/fable_modules/fable-library.4.5.0/Seq.d.ts +0 -165
- package/dist/fable_modules/fable-library.4.5.0/Seq.js +0 -1379
- package/dist/fable_modules/fable-library.4.5.0/Seq2.d.ts +0 -18
- package/dist/fable_modules/fable-library.4.5.0/Seq2.js +0 -111
- package/dist/fable_modules/fable-library.4.5.0/Set.d.ts +0 -190
- package/dist/fable_modules/fable-library.4.5.0/Set.js +0 -1789
- package/dist/fable_modules/fable-library.4.5.0/String.d.ts +0 -49
- package/dist/fable_modules/fable-library.4.5.0/String.js +0 -540
- package/dist/fable_modules/fable-library.4.5.0/System.Collections.Generic.d.ts +0 -71
- package/dist/fable_modules/fable-library.4.5.0/System.Collections.Generic.js +0 -307
- package/dist/fable_modules/fable-library.4.5.0/System.Text.d.ts +0 -30
- package/dist/fable_modules/fable-library.4.5.0/System.Text.js +0 -110
- package/dist/fable_modules/fable-library.4.5.0/SystemException.d.ts +0 -5
- package/dist/fable_modules/fable-library.4.5.0/SystemException.js +0 -5
- package/dist/fable_modules/fable-library.4.5.0/TimeOnly.d.ts +0 -15
- package/dist/fable_modules/fable-library.4.5.0/TimeOnly.js +0 -122
- package/dist/fable_modules/fable-library.4.5.0/TimeSpan.d.ts +0 -34
- package/dist/fable_modules/fable-library.4.5.0/TimeSpan.js +0 -177
- package/dist/fable_modules/fable-library.4.5.0/Timer.d.ts +0 -19
- package/dist/fable_modules/fable-library.4.5.0/Timer.js +0 -67
- package/dist/fable_modules/fable-library.4.5.0/Types.d.ts +0 -58
- package/dist/fable_modules/fable-library.4.5.0/Types.js +0 -208
- package/dist/fable_modules/fable-library.4.5.0/Unicode.13.0.0.d.ts +0 -2
- package/dist/fable_modules/fable-library.4.5.0/Unicode.13.0.0.js +0 -4
- package/dist/fable_modules/fable-library.4.5.0/Uri.d.ts +0 -29
- package/dist/fable_modules/fable-library.4.5.0/Uri.js +0 -142
- package/dist/fable_modules/fable-library.4.5.0/Util.d.ts +0 -207
- package/dist/fable_modules/fable-library.4.5.0/Util.js +0 -781
- package/dist/fable_modules/fable-library.4.5.0/lib/big.d.ts +0 -5
- package/dist/fable_modules/fable-library.4.5.0/lib/big.js +0 -826
- package/dist/fable_modules/fable-library.4.5.0/package.json +0 -23
- package/dist/fable_modules/project_cracked.json +0 -1
|
@@ -1,18 +1,46 @@
|
|
|
1
|
-
import { toString, Union, Record } from "../fable_modules/fable-library.4.
|
|
2
|
-
import { float64_type, int32_type, union_type, list_type,
|
|
3
|
-
import { int32ToString } from "../fable_modules/fable-library.4.
|
|
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 {
|
|
@@ -323,12 +391,12 @@ export class GlueType extends Union {
|
|
|
323
391
|
this.fields = fields;
|
|
324
392
|
}
|
|
325
393
|
cases() {
|
|
326
|
-
return ["Discard", "Interface", "Variable", "Primitive", "Enum", "TypeAliasDeclaration", "FunctionDeclaration", "Union", "Literal", "KeyOf", "IndexedAccessType", "ModuleDeclaration", "ClassDeclaration", "TypeReference", "Partial", "Array", "FunctionType", "TypeParameter"];
|
|
394
|
+
return ["Discard", "Interface", "Variable", "Primitive", "Enum", "TypeAliasDeclaration", "FunctionDeclaration", "Union", "Literal", "KeyOf", "IndexedAccessType", "ModuleDeclaration", "ClassDeclaration", "TypeReference", "Partial", "Array", "FunctionType", "TypeParameter", "ThisType", "TupleType", "IntersectionType", "TypeLiteral", "OptionalType", "Unknown", "ExportDefault"];
|
|
327
395
|
}
|
|
328
396
|
}
|
|
329
397
|
|
|
330
398
|
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]]]);
|
|
399
|
+
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", list_type(GlueMember_$reflection())]], [["Item", GlueTypeLiteral_$reflection()]], [["Item", GlueType_$reflection()]], [], [["Item", GlueType_$reflection()]]]);
|
|
332
400
|
}
|
|
333
401
|
|
|
334
402
|
export function GlueLiteral__ToText(this$) {
|
|
@@ -339,6 +407,8 @@ export function GlueLiteral__ToText(this$) {
|
|
|
339
407
|
return this$.fields[0].toString();
|
|
340
408
|
case 3:
|
|
341
409
|
return toString(this$.fields[0]);
|
|
410
|
+
case 4:
|
|
411
|
+
return "null";
|
|
342
412
|
default:
|
|
343
413
|
return this$.fields[0];
|
|
344
414
|
}
|
|
@@ -367,6 +437,8 @@ export function GlueType__get_Name(this$) {
|
|
|
367
437
|
return "obj option";
|
|
368
438
|
case 8:
|
|
369
439
|
return "obj";
|
|
440
|
+
case 9:
|
|
441
|
+
return "obj";
|
|
370
442
|
default:
|
|
371
443
|
return "string";
|
|
372
444
|
}
|
|
@@ -391,11 +463,19 @@ export function GlueType__get_Name(this$) {
|
|
|
391
463
|
return this$.fields[0].Name;
|
|
392
464
|
case 15:
|
|
393
465
|
return `ResizeArray<${GlueType__get_Name(this$.fields[0])}>`;
|
|
466
|
+
case 18:
|
|
467
|
+
return this$.fields[0];
|
|
468
|
+
case 21:
|
|
469
|
+
case 20:
|
|
394
470
|
case 10:
|
|
395
471
|
case 7:
|
|
396
472
|
case 14:
|
|
397
473
|
case 16:
|
|
474
|
+
case 19:
|
|
475
|
+
case 22:
|
|
398
476
|
case 0:
|
|
477
|
+
case 24:
|
|
478
|
+
case 23:
|
|
399
479
|
return "obj";
|
|
400
480
|
default:
|
|
401
481
|
return this$.fields[0].Name;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Glutinum.Converter/GlueAST.fs"],"names":["this","value","info","ToText","Name"],"mappings":"
|
|
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;;;;;YAiGZA;;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;;;;;;;;;;;;mBAWV;;AAnCO,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.
|
|
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.
|
|
13
|
+
console.info(some(chalk.blueBright(text)));
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
export function warn(text) {
|
|
13
|
-
console.
|
|
17
|
+
console.warn(some(chalk.yellowBright(text)));
|
|
14
18
|
}
|
|
15
19
|
|
|
16
20
|
export function error(text) {
|
|
17
|
-
console.
|
|
21
|
+
console.error(some(chalk.redBright(text)));
|
|
18
22
|
}
|
|
19
23
|
|
|
20
24
|
export function debug(text) {
|
|
21
|
-
console.
|
|
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;;;;
|
|
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}
|