File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -245,14 +245,16 @@ let format ~path =
245
245
in
246
246
if List. length diagnostics > 0 then " "
247
247
else
248
- Res_printer. printImplementation ! Res_cli.ResClflags. width structure
249
- comments
248
+ Res_printer. printImplementation ~width: ! Res_cli.ResClflags. width ~comments
249
+ structure
250
250
else if Filename. check_suffix path " .resi" then
251
251
let {Res_driver. parsetree = signature; comments; diagnostics} =
252
252
Res_driver. parsingEngine.parseInterface ~for Printer:true ~filename: path
253
253
in
254
254
if List. length diagnostics > 0 then " "
255
- else Res_printer. printInterface ! Res_cli.ResClflags. width signature comments
255
+ else
256
+ Res_printer. printInterface ~width: ! Res_cli.ResClflags. width ~comments
257
+ signature
256
258
else " "
257
259
258
260
let test ~path =
Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ let printSignature ~extractor ~signature =
108
108
let rec processSignature ~indent (signature : Types.signature ) : unit =
109
109
match signature with
110
110
| Sig_value
111
- ( makePropsId (* makeProps *) ,
111
+ ( makePropsId
112
+ (* makeProps *) ,
112
113
{val_loc = makePropsLoc; val_type = makePropsType} )
113
114
:: Sig_value (makeId (* make *) , makeValueDesc) :: rest
114
115
when Ident. name makePropsId = Ident. name makeId ^ " Props"
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ let relpath base path =
41
41
let maybeStat path =
42
42
try Some (Unix. stat path) with Unix. Unix_error (Unix. ENOENT, _ , _ ) -> None
43
43
44
- let readFile ~ filename =
44
+ let readFile filename =
45
45
try
46
46
(* windows can't use open_in *)
47
47
let chan = open_in_bin filename in
@@ -51,6 +51,7 @@ let readFile ~filename =
51
51
with _ -> None
52
52
53
53
let exists path = match maybeStat path with None -> false | Some _ -> true
54
+
54
55
let ifExists path = if exists path then Some path else None
55
56
56
57
let readDirectory dir =
Original file line number Diff line number Diff line change 4
4
; The main module that will become the binary.
5
5
(name Cli)
6
6
(flags
7
- (-w "+26+27+32+33+39")
7
+ (-w "+6+ 26+27+32+33+39")
8
8
(-open Compilerlibs406)
9
9
(-open Jsonlib)
10
10
(-open Outcomeprinter))
You can’t perform that action at this time.
0 commit comments