From a8255f28b97b80cb25619903e514475912d62adb Mon Sep 17 00:00:00 2001
From: Xun Yang <x299yang@uwaterloo.ca>
Date: Mon, 13 Apr 2020 11:54:20 -0400
Subject: [PATCH] init forInit as local var

---
 MemberNodes.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/MemberNodes.py b/MemberNodes.py
index 938292a..f44c24d 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
-- 
GitLab