We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3e733c7 + 14b0836 commit fb96e54Copy full SHA for fb96e54
dumpast.ml
@@ -57,10 +57,10 @@ let show_file fn =
57
Compenv.readenv Format.err_formatter Compenv.Before_compile;
58
let v =
59
if Filename.check_suffix fn ".mli" then
60
- let ast = Pparse.parse_interface Format.err_formatter fn in
+ let ast = Pparse.parse_interface ~tool_name:"ocamlc" Format.err_formatter fn in
61
lift # lift_Parsetree_signature ast
62
else if Filename.check_suffix fn ".ml" then
63
- let ast = Pparse.parse_implementation Format.err_formatter fn in
+ let ast = Pparse.parse_implementation ~tool_name:"ocamlc" Format.err_formatter fn in
64
lift # lift_Parsetree_structure ast
65
else
66
failwith (Printf.sprintf "Don't know what to do with file %s" fn)
0 commit comments