@@ -163,7 +163,6 @@ module ResClflags : sig
163163 val interface : bool ref
164164 val jsx_version : int ref
165165 val jsx_module : string ref
166- val jsx_mode : string ref
167166 val typechecker : bool ref
168167 val test_ast_conversion : bool ref
169168
@@ -176,7 +175,6 @@ end = struct
176175 let interface = ref false
177176 let jsx_version = ref (- 1 )
178177 let jsx_module = ref " react"
179- let jsx_mode = ref " automatic"
180178 let file = ref " "
181179 let typechecker = ref false
182180 let test_ast_conversion = ref false
@@ -210,9 +208,6 @@ end = struct
210208 ( " -jsx-module" ,
211209 Arg. String (fun txt -> jsx_module := txt),
212210 " Specify the jsx module. Default: react" );
213- ( " -jsx-mode" ,
214- Arg. String (fun txt -> jsx_mode := txt),
215- " Specify the jsx mode, classic or automatic. Default: automatic" );
216211 ( " -typechecker" ,
217212 Arg. Unit (fun () -> typechecker := true ),
218213 " Parses the ast as it would be passed to the typechecker and not the \
@@ -230,7 +225,7 @@ module CliArgProcessor = struct
230225 [@@ unboxed]
231226
232227 let process_file ~is_interface ~width ~recover ~target ~jsx_version
233- ~jsx_module ~jsx_mode ~ typechecker ~test_ast_conversion filename =
228+ ~jsx_module ~typechecker ~test_ast_conversion filename =
234229 let len = String. length filename in
235230 let process_interface =
236231 is_interface
@@ -282,7 +277,7 @@ module CliArgProcessor = struct
282277 Ast_mapper_from0. default_mapper tree0
283278 in
284279 let parsetree =
285- Jsx_ppx. rewrite_signature ~jsx_version ~jsx_module ~jsx_mode parsetree
280+ Jsx_ppx. rewrite_signature ~jsx_version ~jsx_module parsetree
286281 in
287282 print_engine.print_interface ~width ~filename
288283 ~comments: parse_result.comments parsetree
@@ -307,8 +302,7 @@ module CliArgProcessor = struct
307302 Ast_mapper_from0. default_mapper tree0
308303 in
309304 let parsetree =
310- Jsx_ppx. rewrite_implementation ~jsx_version ~jsx_module ~jsx_mode
311- parsetree
305+ Jsx_ppx. rewrite_implementation ~jsx_version ~jsx_module parsetree
312306 in
313307 print_engine.print_implementation ~width ~filename
314308 ~comments: parse_result.comments parsetree
@@ -321,7 +315,7 @@ let () =
321315 CliArgProcessor. process_file ~is_interface: ! ResClflags. interface
322316 ~width: ! ResClflags. width ~recover: ! ResClflags. recover
323317 ~target: ! ResClflags. print ~jsx_version: ! ResClflags. jsx_version
324- ~jsx_module: ! ResClflags. jsx_module ~jsx_mode : ! ResClflags. jsx_mode
325- ~typechecker: ! ResClflags. typechecker ! ResClflags. file
318+ ~jsx_module: ! ResClflags. jsx_module ~typechecker : ! ResClflags. typechecker
319+ ! ResClflags. file
326320 ~test_ast_conversion: ! ResClflags. test_ast_conversion)
327321[@@ raises exit]
0 commit comments