Skip to content

Commit 061d486

Browse files
committed
Remove Ocaml_parse module
1 parent 5b26150 commit 061d486

File tree

5 files changed

+6151
-6296
lines changed

5 files changed

+6151
-6296
lines changed

jscomp/core/js_implementation.ml

+12-2
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,19 @@ let after_parsing_sig ppf outputprefix ast =
7878
initial_env sg ;
7979
end
8080
end
81+
82+
let parse_interface ppf sourcefile =
83+
Ppx_entry.rewrite_signature (Pparse.parse_interface ~tool_name:Js_config.tool_name ppf sourcefile)
84+
85+
let parse_implementation ppf sourcefile =
86+
Ppx_entry.rewrite_implementation
87+
(
88+
Pparse.parse_implementation ~tool_name:Js_config.tool_name ppf sourcefile
89+
)
90+
8191
let interface ppf sourcefile outputprefix =
8292
Compmisc.init_path false;
83-
Ocaml_parse.parse_interface ppf sourcefile
93+
parse_interface ppf sourcefile
8494
|> print_if ppf Clflags.dump_parsetree Printast.interface
8595
|> print_if ppf Clflags.dump_source Pprintast.signature
8696
|> after_parsing_sig ppf outputprefix
@@ -142,7 +152,7 @@ let after_parsing_impl ppf outputprefix ast =
142152
end
143153
let implementation ppf fname outputprefix =
144154
Compmisc.init_path false;
145-
Ocaml_parse.parse_implementation ppf fname
155+
parse_implementation ppf fname
146156
|> print_if ppf Clflags.dump_parsetree Printast.implementation
147157
|> print_if ppf Clflags.dump_source Pprintast.structure
148158
|> after_parsing_impl ppf outputprefix

jscomp/core/ocaml_parse.ml

-45
This file was deleted.

jscomp/core/ocaml_parse.mli

-36
This file was deleted.

0 commit comments

Comments
 (0)