File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,6 @@ let jsx_version = ref (-1)
95
95
96
96
let refmt = ref None
97
97
98
- let is_reason = ref false
99
98
100
99
let js_stdout = ref true
101
100
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ val force_cmj : bool ref
90
90
91
91
val jsx_version : int ref
92
92
val refmt : string option ref
93
- val is_reason : bool ref
93
+
94
94
95
95
val js_stdout : bool ref
96
96
Original file line number Diff line number Diff line change @@ -58,10 +58,11 @@ let after_parsing_sig ppf outputprefix ast =
58
58
end ;
59
59
if ! Js_config. binary_ast then
60
60
begin
61
+ let sourcefile = ! Location. input_name in
61
62
Binary_ast. write_ast
62
63
Mli
63
- ~sourcefile: ! Location. input_name
64
- ~output: (outputprefix ^ if ! Js_config. is_reason then Literals. suffix_reiast else Literals. suffix_mliast )
64
+ ~sourcefile
65
+ ~output: (outputprefix ^ Filename. extension sourcefile ^ " ast " )
65
66
(* to support relocate to another directory *)
66
67
ast
67
68
@@ -165,10 +166,9 @@ let after_parsing_impl ppf outputprefix (ast : Parsetree.structure) =
165
166
close_out oc ;
166
167
end ;
167
168
if ! Js_config. binary_ast then
168
- Binary_ast. write_ast ~sourcefile: ! Location. input_name
169
- Ml ~output: (outputprefix ^
170
- if ! Js_config. is_reason then Literals. suffix_reast else Literals. suffix_mlast
171
- )
169
+ let sourcefile = ! Location. input_name in
170
+ Binary_ast. write_ast ~sourcefile
171
+ Ml ~output: (outputprefix ^ Filename. extension sourcefile ^ " ast" )
172
172
ast ;
173
173
if ! Js_config. syntax_only then
174
174
Warnings. check_fatal ()
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ let process_implementation_file ppf name =
22
22
23
23
24
24
let setup_reason_context () =
25
- Js_config. is_reason := true ;
26
25
Lazy. force Super_main. setup;
27
26
Lazy. force Reason_outcome_printer_main. setup
28
27
You can’t perform that action at this time.
0 commit comments