call `Typing_check_job.check_module` in Typing_check_utils.type_file
Summary:
This is a utility that's meant to hook into `hh_single_type_check`, `hh --lint`, and `ServerCoverageMetric`. We have, yet again, fallen victim to projecting off of `FileInfo.t` rather than destructuring against it, meaning we have forgotten to process modules.
Let's pattern match on `FileInfo.t` (plus lift out the `List.map ~f:snd |> List.filter_map ~f` pattern into a helper).
Reviewed By: jamesjwu
Differential Revision:
D35033667
fbshipit-source-id:
4497be806780af9a265ccadd5260fd03a4bba0a8