@@ -163,7 +163,6 @@ module ResClflags : sig
163
163
val interface : bool ref
164
164
val jsx_version : int ref
165
165
val jsx_module : string ref
166
- val jsx_mode : string ref
167
166
val typechecker : bool ref
168
167
val test_ast_conversion : bool ref
169
168
@@ -176,7 +175,6 @@ end = struct
176
175
let interface = ref false
177
176
let jsx_version = ref (- 1 )
178
177
let jsx_module = ref " react"
179
- let jsx_mode = ref " automatic"
180
178
let file = ref " "
181
179
let typechecker = ref false
182
180
let test_ast_conversion = ref false
@@ -210,9 +208,6 @@ end = struct
210
208
( " -jsx-module" ,
211
209
Arg. String (fun txt -> jsx_module := txt),
212
210
" 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" );
216
211
( " -typechecker" ,
217
212
Arg. Unit (fun () -> typechecker := true ),
218
213
" Parses the ast as it would be passed to the typechecker and not the \
@@ -230,7 +225,7 @@ module CliArgProcessor = struct
230
225
[@@ unboxed]
231
226
232
227
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 =
234
229
let len = String. length filename in
235
230
let process_interface =
236
231
is_interface
@@ -282,7 +277,7 @@ module CliArgProcessor = struct
282
277
Ast_mapper_from0. default_mapper tree0
283
278
in
284
279
let parsetree =
285
- Jsx_ppx. rewrite_signature ~jsx_version ~jsx_module ~jsx_mode parsetree
280
+ Jsx_ppx. rewrite_signature ~jsx_version ~jsx_module parsetree
286
281
in
287
282
print_engine.print_interface ~width ~filename
288
283
~comments: parse_result.comments parsetree
@@ -307,8 +302,7 @@ module CliArgProcessor = struct
307
302
Ast_mapper_from0. default_mapper tree0
308
303
in
309
304
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
312
306
in
313
307
print_engine.print_implementation ~width ~filename
314
308
~comments: parse_result.comments parsetree
@@ -321,7 +315,7 @@ let () =
321
315
CliArgProcessor. process_file ~is_interface: ! ResClflags. interface
322
316
~width: ! ResClflags. width ~recover: ! ResClflags. recover
323
317
~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
326
320
~test_ast_conversion: ! ResClflags. test_ast_conversion)
327
321
[@@ raises exit]
0 commit comments