File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -87,14 +87,17 @@ def dump(func):
87
87
# edge node
88
88
return
89
89
for ref in calls [func ].keys ():
90
- if calls [func ][ref ] == "call" or indirects :
90
+ if calls [func ][ref ] is not None :
91
91
style = "" if calls [func ][ref ] == "call" else ' [style="dashed"]'
92
- # Invalidate the reference to avoid loops
93
- calls [func ][ref ] = None
94
92
if local and calls .get (ref , None ) is None :
95
93
# non-local function
96
94
continue
95
+ if not indirects and calls [func ][ref ] == "ref" :
96
+ # indirect reference, but not requested
97
+ continue
97
98
if ignore is None or re .match (ignore , ref ) is None :
99
+ # Invalidate the reference to avoid loops
100
+ calls [func ][ref ] = None
98
101
print ('"' + func + '" -> "' + ref + '"' + style + ';' )
99
102
dump (ref )
100
103
You can’t perform that action at this time.
0 commit comments