[eradicate] remove the check extension flag which was always false

Reviewed By: mbouaziz

Differential Revision: D9130163

fbshipit-source-id: 4510eb4a5
master
Jeremy Dubreil 7 years ago committed by Facebook Github Bot
parent 277fd06782
commit ed638de189

@ -139,7 +139,7 @@ module MkCallback (Extension : ExtensionT) : CallBackT = struct
in
let checks', calls_this' =
if do_checks then (checks, calls_this)
else ({TypeCheck.eradicate= false; check_extension= false; check_ret_type= []}, ref false)
else ({TypeCheck.eradicate= false; check_ret_type= []}, ref false)
in
callback1 tenv find_canonical_duplicate calls_this' checks' idenv_pn pname pdesc ann_sig
linereader loc
@ -349,13 +349,11 @@ end
(** Eradicate checker for Java @Nullable annotations. *)
let callback_eradicate =
let checks = {TypeCheck.eradicate= true; check_extension= false; check_ret_type= []} in
let checks = {TypeCheck.eradicate= true; check_ret_type= []} in
Main.callback checks
(** Call the given check_return_type at the end of every procedure. *)
let callback_check_return_type check_return_type callback_args =
let checks =
{TypeCheck.eradicate= false; check_extension= false; check_ret_type= [check_return_type]}
in
let checks = {TypeCheck.eradicate= false; check_ret_type= [check_return_type]} in
Main.callback checks callback_args

@ -136,7 +136,7 @@ type check_return_type =
type find_canonical_duplicate = Procdesc.Node.t -> Procdesc.Node.t
type checks = {eradicate: bool; check_extension: bool; check_ret_type: check_return_type list}
type checks = {eradicate: bool; check_ret_type: check_return_type list}
(** Typecheck an expression. *)
let rec typecheck_expr find_canonical_duplicate visited checks tenv node instr_ref

@ -14,7 +14,7 @@ type check_return_type =
type find_canonical_duplicate = Procdesc.Node.t -> Procdesc.Node.t
type checks = {eradicate: bool; check_extension: bool; check_ret_type: check_return_type list}
type checks = {eradicate: bool; check_ret_type: check_return_type list}
val typecheck_node :
Tenv.t -> bool ref -> checks -> Idenv.t -> Typ.Procname.t -> Procdesc.t

Loading…
Cancel
Save