File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -220,13 +220,14 @@ let rename ~path ~line ~col ~newName =
220220
221221let format ~path =
222222 if Filename. check_suffix path " .res" then
223- let {Res_driver. parsetree = structure; comments} =
223+ let {Res_driver. parsetree = structure; comments; diagnostics } =
224224 Res_driver. parsingEngine.parseImplementation ~for Printer:true
225225 ~filename: path
226226 in
227- (* if List.length diagnostics > 0 then ""
228- else *)
229- Res_printer. printImplementation ! Res_cli.ResClflags. width structure comments
227+ if List. length diagnostics > 0 then " "
228+ else
229+ Res_printer. printImplementation ! Res_cli.ResClflags. width structure
230+ comments
230231 else if Filename. check_suffix path " .resi" then
231232 let {Res_driver. parsetree = signature; comments; diagnostics} =
232233 Res_driver. parsingEngine.parseInterface ~for Printer:true ~filename: path
You can’t perform that action at this time.
0 commit comments