Skip to content

Commit 32466e5

Browse files
Merge pull request #11 from Pip-Install-Party/officialblake-develop
update call output
2 parents 4cd676e + 154eb05 commit 32466e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ void Tree::printTree(Token* head, Token* prevToken){
107107
isCall = true;
108108
std::cout << "CALL";
109109
while(head->getSibling() != nullptr) {
110-
head = head->getSibling();
111110
if (head->getType() == "IDENTIFIER" || head->getType() == "L_PAREN" || head->getType() == "R_PAREN"){
112111
std::cout << " ----> " << head->getValue();
113112
}
113+
head = head->getSibling();
114114
}
115115
}
116116
} else if (head->getSibling() == nullptr && head->getChild() != nullptr && head->getValue() == ";"){

0 commit comments

Comments
 (0)