File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -614,21 +614,24 @@ let rec of_result res =
614
614
| EitherResult ress ->
615
615
" [" ^ String. concat " , " (List. map of_result ress) ^ " ]"
616
616
617
+ let of_module bs =
618
+ " module(" ^ of_bytes bs ^ " )"
619
+
617
620
let rec of_definition def =
618
621
match def.it with
619
- | Textual (m , _ ) -> of_bytes (Encode. encode m)
620
- | Encoded (_ , bs ) -> of_bytes bs.it
622
+ | Textual (m , _ ) -> of_module (Encode. encode m)
623
+ | Encoded (_ , bs ) -> of_module bs.it
621
624
| Quoted (_ , s ) ->
622
625
try of_definition (snd (Parse.Module. parse_string ~offset: s.at s.it))
623
- with Parse. Syntax _ | Custom. Syntax _ -> of_bytes " <malformed quote>"
626
+ with Parse. Syntax _ | Custom. Syntax _ -> of_module " <malformed quote>"
624
627
625
628
let of_instance env x_opt =
626
629
" instance(" ^ of_mod_opt env x_opt ^ " )"
627
630
628
631
let of_wrapper env x_opt name wrap_action wrap_assertion at =
629
632
let x = of_inst_opt env x_opt in
630
633
let bs = wrap name wrap_action wrap_assertion at in
631
- " call(instance(module( " ^ of_bytes bs ^ " ) , " ^
634
+ " call(instance(" ^ of_module bs ^ " , " ^
632
635
" exports(" ^ x ^ " )), " ^ " \" run\" , [])"
633
636
634
637
let of_action env act =
You can’t perform that action at this time.
0 commit comments