diff --git a/MemberNodes.py b/MemberNodes.py index 938292a61840d65207cc0f25045b05e00c4558f3..f44c24d1a6be542c9fde90525dead74cae4ca415 100644 --- a/MemberNodes.py +++ b/MemberNodes.py @@ -364,4 +364,7 @@ def getVarDclNodes(node): if s.__class__.__name__ == 'BlockNode': result += getVarDclNodes(node) + if s.__class__.__name__ == 'ForNode' and s.forInit: + result += [s.forInit] + return result