Commit bc0a7990 authored by Vitja Makarov's avatar Vitja Makarov

Track closure variables too

parent e749f4f4
...@@ -144,7 +144,8 @@ class ControlFlow(object): ...@@ -144,7 +144,8 @@ class ControlFlow(object):
return False return False
if entry.type.is_array or entry.type.is_struct_or_union: if entry.type.is_array or entry.type.is_struct_or_union:
return False return False
return entry.is_local or entry.is_pyclass_attr or entry.is_arg return (entry.is_local or entry.is_pyclass_attr or entry.is_arg or
entry.from_closure or entry.in_closure)
def mark_position(self, node): def mark_position(self, node):
"""Mark position, will be used to draw graph nodes.""" """Mark position, will be used to draw graph nodes."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment