[retain cycles] Make the id in dotty files include the field, in case the type is not unique in the cycle

Reviewed By: da319

Differential Revision: D7085245

fbshipit-source-id: eea11e7
master
Dulma Churchill 7 years ago committed by Facebook Github Bot
parent 3534838b73
commit 56db965738

@ -113,7 +113,9 @@ let pp_dotty fmt cycle =
let pp_dotty_id fmt element = let pp_dotty_id fmt element =
match element with match element with
| Object obj -> | Object obj ->
Format.fprintf fmt "%s" (Typ.to_string obj.rc_from.rc_node_typ) Format.fprintf fmt "%s_%a"
(Typ.to_string obj.rc_from.rc_node_typ)
Typ.Fieldname.pp obj.rc_field.rc_field_name
| Block name -> | Block name ->
Format.fprintf fmt "%s" (Typ.Procname.to_unique_id name) Format.fprintf fmt "%s" (Typ.Procname.to_unique_id name)
in in

Loading…
Cancel
Save