Skip to content

Commit

Permalink
[flow][EZ] Rename parameter in Type_sig_utils.parse_lib
Browse files Browse the repository at this point in the history
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
  • Loading branch information
SamChou19815 authored and facebook-github-bot committed Apr 16, 2024
1 parent 25ad16e commit a9e0acb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser_utils/type_sig/type_sig_utils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9e0acb

Please sign in to comment.