From a9e0acb272ec8cb80ddf3517a82bf496f133656b Mon Sep 17 00:00:00 2001 From: Sam Zhou Date: Mon, 15 Apr 2024 18:43:47 -0700 Subject: [PATCH] [flow][EZ] Rename parameter in `Type_sig_utils.parse_lib` Summary: Get this driveby cleanup out first before larger refactors in this file. We are not passed just locs table, but all type sig tables, including local_defs, remote_refs, etc. Changelog: [internal] Reviewed By: panagosg7 Differential Revision: D56160507 fbshipit-source-id: a6dd3d2d646468839525c8cd774b50795f94fa23 --- src/parser_utils/type_sig/type_sig_utils.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser_utils/type_sig/type_sig_utils.ml b/src/parser_utils/type_sig/type_sig_utils.ml index d343d11e5bc..c678de6b799 100644 --- a/src/parser_utils/type_sig/type_sig_utils.ml +++ b/src/parser_utils/type_sig/type_sig_utils.ml @@ -15,10 +15,10 @@ module Pack = Type_sig_pack proceses of combining deals with overridden definitions. Finally, the resolved builtins are merged. Declared modules can depend on each other, so they are treated like a cycle. *) -let parse_lib opts scope locs ast = +let parse_lib opts scope tbls ast = let open Parse in let (_, { Flow_ast.Program.statements = stmts; _ }) = ast in - List.iter (statement opts scope locs) stmts + List.iter (statement opts scope tbls) stmts let parse_libs opts ordered_asts = let open Parse in