Skip to content
Snippets Groups Projects
Commit ec03526f authored by Xun Yang's avatar Xun Yang
Browse files

fix getValDcl from if clauses

parent e6508904
No related branches found
No related tags found
2 merge requests!30New new string,!20Master
...@@ -379,5 +379,9 @@ def getVarDclNodes(node): ...@@ -379,5 +379,9 @@ def getVarDclNodes(node):
if s.__class__.__name__ =='WhileNode' and s.whileBody: if s.__class__.__name__ =='WhileNode' and s.whileBody:
result += getVarDclNodes(s.whileBody) result += getVarDclNodes(s.whileBody)
if s.__class__.__name__ == "IfNode":
result += getVarDclNodes(s.ifBody)
if s.elseBody:
result += getVarDclNodes(s.elseBody)
return result return result
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment