Skip to content

Commit

Permalink
Track closure variables too
Browse files Browse the repository at this point in the history
  • Loading branch information
vitek committed May 28, 2011
1 parent e749f4f commit bc0a799
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cython/Compiler/FlowControl.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ def is_tracked(self, entry):
return False
if entry.type.is_array or entry.type.is_struct_or_union:
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):
"""Mark position, will be used to draw graph nodes."""
Expand Down

0 comments on commit bc0a799

Please sign in to comment.