File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ namespace TypedocConverter.Test
149
149
"A" => UnionStr.A,
150
150
"B" => UnionStr.B,
151
151
"C" => UnionStr.C,
152
- "Other " => UnionStr.Other,
152
+ "other " => UnionStr.Other,
153
153
_ => throw new System.Exception("Cannot unmarshal type UnionStr")
154
154
},
155
155
_ => throw new System.Exception("Cannot unmarshal type UnionStr")
@@ -163,7 +163,7 @@ namespace TypedocConverter.Test
163
163
case UnionStr.A: serializer.Serialize(writer, "A"); return;
164
164
case UnionStr.B: serializer.Serialize(writer, "B"); return;
165
165
case UnionStr.C: serializer.Serialize(writer, "C"); return;
166
- case UnionStr.Other: serializer.Serialize(writer, "Other "); return;
166
+ case UnionStr.Other: serializer.Serialize(writer, "other "); return;
167
167
default: break;
168
168
}
169
169
throw new System.Exception("Cannot marshal type UnionStr");
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ let parseEnum (section: string) (node: Reflection): Entity =
45
45
| _ -> " "
46
46
let mutable intValue = 0 L
47
47
match x.DefaultValue with
48
- | Some value -> if Int64.TryParse( value, & intValue) then { Comment = comment; Name = toPascalCase x.Name; Value = Some intValue; }
48
+ | Some value -> if Int64.TryParse( value, & intValue) then { Comment = comment; Name = x.Name; Value = Some intValue; }
49
49
else match getEnumReferencedValue values value x.Name with
50
50
| Some t -> { Comment = comment; Name = x.Name; Value = Some ( int64 t); }
51
51
| _ -> { Comment = comment; Name = x.Name; Value = None; }
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ and getGenericTypeParameters (nodes: Reflection list) = // TODO: generate consta
198
198
|> List.map ( fun x -> x.Name)
199
199
types |> List.map ( fun x -> {| Type = x; Constraint = " " |})
200
200
and typeSorter typeA typeB =
201
- let typesOrder = [ " array" ; " tuple" ; " reference" ; " intrinsic" ]
201
+ let typesOrder = [ " array" ; " tuple" ; " reference" ; " reflection " ; " stringLiteral " ; " intrinsic" ]
202
202
let indexA = typesOrder |> List.tryFindIndex ( fun x -> x = typeA.Type)
203
203
let indexB = typesOrder |> List.tryFindIndex ( fun x -> x = typeB.Type)
204
204
match ( indexA, indexB) with
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ let parseUnionTypeAlias (section: string) (node: Reflection) (nodes: Type list):
18
18
match x.Value with
19
19
| Some value ->
20
20
[{
21
- Name = toPascalCase value
21
+ Name = value
22
22
Comment = " ///<summary>\n " + toCommentText value + " \n ///</summary>"
23
23
Value = None
24
24
}]
You can’t perform that action at this time.
0 commit comments