[infer][nullsafe] cleanup of the Eradicate code 1

Summary: Remove unecessary level of functorisation

Reviewed By: jberdine

Differential Revision: D9387985

fbshipit-source-id: e0bcf1b13
master
Jeremy Dubreil 7 years ago committed by Facebook Github Bot
parent 98c596c546
commit 070f541226

@ -341,15 +341,6 @@ end
(* MkCallback *) (* MkCallback *)
(** Given an extension to the typestate with a check, call the check on each instruction. *)
module Build (Extension : ExtensionT) : CallBackT = struct
module Callback = MkCallback (Extension)
let callback = Callback.callback
end
(* Build *)
module EmptyExtension : ExtensionT = struct module EmptyExtension : ExtensionT = struct
type extension = unit type extension = unit
@ -365,7 +356,11 @@ module EmptyExtension : ExtensionT = struct
{payloads with typestate= typestate_opt} {payloads with typestate= typestate_opt}
end end
module Main = Build (EmptyExtension) module Main = struct
module Callback = MkCallback (EmptyExtension)
let callback = Callback.callback
end
(** Eradicate checker for Java @Nullable annotations. *) (** Eradicate checker for Java @Nullable annotations. *)
let callback_eradicate = let callback_eradicate =

Loading…
Cancel
Save