|
@@ -1943,7 +1943,6 @@ module Generator = struct
|
|
(* importing a class from a module *)
|
|
(* importing a class from a module *)
|
|
"from " ^ module_name ^ " import " ^ object_name ^ " as " ^ class_name
|
|
"from " ^ module_name ^ " import " ^ object_name ^ " as " ^ class_name
|
|
in
|
|
in
|
|
- if Buffer.length ctx.buf > 0 then newline ctx;
|
|
|
|
if ignore_error then begin
|
|
if ignore_error then begin
|
|
spr_line ctx "try:";
|
|
spr_line ctx "try:";
|
|
spr ctx "\t";
|
|
spr ctx "\t";
|
|
@@ -2130,7 +2129,8 @@ module Generator = struct
|
|
match mt with
|
|
match mt with
|
|
| TClassDecl c when c.cl_extern -> gen_import ctx c
|
|
| TClassDecl c when c.cl_extern -> gen_import ctx c
|
|
| _ -> ()
|
|
| _ -> ()
|
|
- ) ctx.com.types
|
|
|
|
|
|
+ ) ctx.com.types;
|
|
|
|
+ newline ctx
|
|
|
|
|
|
let gen_types ctx =
|
|
let gen_types ctx =
|
|
let used_paths = Hashtbl.create 0 in
|
|
let used_paths = Hashtbl.create 0 in
|