@@ -847,9 +847,9 @@ module Emit =
847
847
// Emit plurals. For example, "Events", "MutationEvents"
848
848
let hasPlurals = [ " Event" ; " MutationEvent" ; " MouseEvent" ; " SVGZoomEvent" ; " UIEvent" ]
849
849
for x in distinctETypeList do
850
- Pt.Printl " createEvent(eventInterface:\" %s \" ): %s ;" x x
850
+ Pt.Printl " createEvent(eventInterface: \" %s \" ): %s ;" x x
851
851
if List.contains x hasPlurals then
852
- Pt.Printl " createEvent(eventInterface:\" %s s\" ): %s ;" x x
852
+ Pt.Printl " createEvent(eventInterface: \" %s s\" ): %s ;" x x
853
853
Pt.Printl " createEvent(eventInterface: string): Event;"
854
854
855
855
/// Generate the parameters string for function signatures
@@ -1012,7 +1012,7 @@ module Emit =
1012
1012
if m.Name.IsSome then
1013
1013
// If there are added overloads from the json files, print them first
1014
1014
match getAddedItemByName m.Name.Value ItemKind.SignatureOverload i.Name with
1015
- | Some ol -> ol.Signatures |> Array.iter ( printLine " %s " )
1015
+ | Some ol -> ol.Signatures |> Array.iter ( printLine " %s ; " )
1016
1016
| _ -> ()
1017
1017
1018
1018
let overloads = GetOverloads ( Function.Method m) false
@@ -1119,7 +1119,7 @@ module Emit =
1119
1119
EmitMembers flavor prefix EmitScope.StaticOnly i
1120
1120
1121
1121
Pt.DecreaseIndent()
1122
- Pt.Printl " }"
1122
+ Pt.Printl " }; "
1123
1123
Pt.Printl " "
1124
1124
1125
1125
/// Emit all the named constructors at root level
@@ -1132,7 +1132,7 @@ module Emit =
1132
1132
let ncParams =
1133
1133
[ for p in nc.Params do
1134
1134
yield { Type = p.Type; Name = p.Name; Optional = p.Optional.IsSome; Variadic = p.Variadic.IsSome; Nullable = p.Nullable.IsSome}]
1135
- Pt.Printl " declare var %s : {new(%s ): %s ; };" nc.Name ( ParamsToString ncParams) i.Name)
1135
+ Pt.Printl " declare var %s : { new(%s ): %s ; };" nc.Name ( ParamsToString ncParams) i.Name)
1136
1136
1137
1137
let EmitInterfaceDeclaration ( i : Browser.Interface ) =
1138
1138
let processIName iName =
@@ -1336,7 +1336,7 @@ module Emit =
1336
1336
EmitMembers flavor prefix EmitScope.StaticOnly i
1337
1337
emitAddedConstructor ()
1338
1338
Pt.DecreaseIndent()
1339
- Pt.Printl " }"
1339
+ Pt.Printl " }; "
1340
1340
Pt.Printl " "
1341
1341
1342
1342
let emitPureStaticInterface () =
@@ -1440,7 +1440,7 @@ module Emit =
1440
1440
| Some comment -> Pt.PrintWithAddedIndent " %s " comment
1441
1441
| _ -> ()
1442
1442
ai.ConstructorSignatures |> Array.iter ( Pt.PrintWithAddedIndent " %s ;" )
1443
- Pt.Printl " }"
1443
+ Pt.Printl " }; "
1444
1444
Pt.Printl " "
1445
1445
1446
1446
let EmitTypeDefs flavor =
0 commit comments