File tree Expand file tree Collapse file tree 6 files changed +7
-11
lines changed Expand file tree Collapse file tree 6 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -687,7 +687,7 @@ module UntypedRunner (C : UNTYPED_RUNNER_CONFIG) : STEP_RUNNER = struct
687
687
Profiling_js. with_profiling_lwt ~label: " Codemod" ~should_print_summary (fun _profiling ->
688
688
let file_options = Options. file_options options in
689
689
let all = Options. all options in
690
- let (_ordered_libs, libs) = Files. init file_options in
690
+ let (_ordered_libs, libs) = Files. ordered_and_unordered_lib_paths file_options in
691
691
692
692
(* creates a closure that lists all files in the given root, returned in chunks *)
693
693
let filename_set = get_target_filename_set ~options: file_options ~libs ~all roots in
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ let main
248
248
let options =
249
249
make_options ~flowconfig ~root ~ignore_flag ~include_flag ~untyped_flag ~declaration_flag
250
250
in
251
- let (_, libs) = Files. init options in
251
+ let (_, libs) = Files. ordered_and_unordered_lib_paths options in
252
252
(* `flow ls` and `flow ls dir` will list out all the flow files. We want to include lib files, so
253
253
* we pass in ~libs:SSet.empty, which means we won't filter out any lib files *)
254
254
let next_files =
Original file line number Diff line number Diff line change @@ -92,8 +92,6 @@ let implicitly_include_root options = options.implicitly_include_root
92
92
93
93
let includes options = options.includes
94
94
95
- let lib_paths options = options.lib_paths
96
-
97
95
let module_declaration_dirnames options = options.module_declaration_dirnames
98
96
99
97
let module_file_exts options = options.module_file_exts
@@ -546,7 +544,7 @@ let is_in_flowlib (options : options) : string -> bool =
546
544
let root = File_path. make root_str in
547
545
is_prefix (File_path. to_string root)
548
546
549
- let init (options : options ) =
547
+ let ordered_and_unordered_lib_paths (options : options ) =
550
548
let node_module_filter = is_node_module options in
551
549
let libs = options.lib_paths in
552
550
let (libs, filter) =
Original file line number Diff line number Diff line change @@ -43,8 +43,6 @@ val implicitly_include_root : options -> bool
43
43
44
44
val includes : options -> Path_matcher .t
45
45
46
- val lib_paths : options -> File_path .t list
47
-
48
46
val module_declaration_dirnames : options -> string list
49
47
50
48
val module_file_exts : options -> string list
@@ -108,7 +106,7 @@ val is_in_flowlib : options -> string -> bool
108
106
109
107
val get_all_watched_extensions : options -> SSet .t
110
108
111
- val init : options -> string list * SSet .t
109
+ val ordered_and_unordered_lib_paths : options -> string list * SSet .t
112
110
113
111
(* regexp for Filename constants *)
114
112
val dir_sep : Str .regexp
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ let process_updates ?(skip_incompatible = false) ~options ~libs updates =
202
202
let file_options = Options. file_options options in
203
203
let all_libs =
204
204
let known_libs = libs in
205
- let (_, maybe_new_libs) = Files. init file_options in
205
+ let (_, maybe_new_libs) = Files. ordered_and_unordered_lib_paths file_options in
206
206
SSet. union known_libs maybe_new_libs
207
207
in
208
208
let root = Options. root options in
Original file line number Diff line number Diff line change @@ -2164,7 +2164,7 @@ let init_from_scratch ~profiling ~workers options =
2164
2164
* However making this change is likely going to be a breaking change for people with conflicting
2165
2165
* libraries
2166
2166
*)
2167
- let (ordered_libs, libs) = Files. init file_options in
2167
+ let (ordered_libs, libs) = Files. ordered_and_unordered_lib_paths file_options in
2168
2168
let next_files_for_parse =
2169
2169
make_next_files ~libs ~file_options ~include_libdef: true (Options. root options)
2170
2170
in
@@ -2413,7 +2413,7 @@ let reinit_full_check
2413
2413
let % lwt env =
2414
2414
with_transaction " partial-reinit" @@ fun transaction reader ->
2415
2415
let file_options = Options. file_options options in
2416
- let (ordered_libs, _) = Files. init file_options in
2416
+ let (ordered_libs, _) = Files. ordered_and_unordered_lib_paths file_options in
2417
2417
2418
2418
let % lwt (env, libs_ok) =
2419
2419
init_with_initial_state
You can’t perform that action at this time.
0 commit comments