ast shadowvar cleanup

This commit is contained in:
Azaezel 2018-03-16 20:04:14 -05:00
parent fe3cd40d1e
commit 7d889a9a56
2 changed files with 6 additions and 6 deletions

View file

@ -140,7 +140,7 @@ void StmtNode::addBreakLine(CodeStream &code)
StmtNode::StmtNode()
{
next = NULL;
mNext = NULL;
dbgFileName = CodeBlock::smCurrentParser->getCurrentFile();
}
@ -151,9 +151,9 @@ void StmtNode::setPackage(StringTableEntry)
void StmtNode::append(StmtNode *next)
{
StmtNode *walk = this;
while (walk->next)
walk = walk->next;
walk->next = next;
while (walk->mNext)
walk = walk->mNext;
walk->mNext = next;
}