Skip to content

Commit

Permalink
Fix typo in check_and_postprocess
Browse files Browse the repository at this point in the history
Summary:
I think I accidentally named this `check_and_preprocess` when I was working on
overlays. Whoops.

Reviewed By: MaggieMoss

Differential Revision: D58706846

fbshipit-source-id: bf6418f0f80a7dc26056f020439abab96a563e12
  • Loading branch information
stroxler authored and facebook-github-bot committed Jun 20, 2024
1 parent c34fb10 commit 1f08d39
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions source/analysis/errorsEnvironment.ml
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,10 @@ let create_with_ast_environment controls =
environment


let check_and_preprocess ~scheduler ~scheduler_policies environment qualifiers =
let check_and_postprocess ~scheduler ~scheduler_policies environment qualifiers =
(AssumeDownstreamNeverNeedsUpdates.type_environment environment
|> TypeEnvironment.populate_for_modules ~scheduler ~scheduler_policies)
qualifiers;
populate_for_modules ~scheduler environment qualifiers;
PyreProfiling.track_shared_memory_usage ~name:"After checking and preprocessing" ();
PyreProfiling.track_shared_memory_usage ~name:"After checking and postprocess" ();
()
2 changes: 1 addition & 1 deletion source/analysis/errorsEnvironment.mli
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module Testing : sig
end
end

val check_and_preprocess
val check_and_postprocess
: scheduler:Scheduler.t ->
scheduler_policies:Configuration.SchedulerPolicies.t ->
t ->
Expand Down
2 changes: 1 addition & 1 deletion source/command/checkCommand.ml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ let do_check configuration =
read_write_environment
|> Analysis.GlobalModulePathsApi.type_check_qualifiers
in
Analysis.ErrorsEnvironment.check_and_preprocess
Analysis.ErrorsEnvironment.check_and_postprocess
read_write_environment
~scheduler
~scheduler_policies:Configuration.SchedulerPolicies.empty
Expand Down
2 changes: 1 addition & 1 deletion source/server/start.ml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ let initialize_server_state
else
Analysis.ErrorsEnvironment.AssumeGlobalModuleListing.global_module_paths_api environment
|> Analysis.GlobalModulePathsApi.type_check_qualifiers
|> Analysis.ErrorsEnvironment.check_and_preprocess
|> Analysis.ErrorsEnvironment.check_and_postprocess
environment
~scheduler
~scheduler_policies:Configuration.SchedulerPolicies.empty
Expand Down

0 comments on commit 1f08d39

Please sign in to comment.