mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
I GIVE UP
This commit is contained in:
@@ -1370,7 +1370,6 @@ static void varDecl(Parser* parser, Node** nodeHandle) {
|
||||
//TODO: static type checking?
|
||||
|
||||
//declare it
|
||||
freeNode(*nodeHandle); //free the initial node
|
||||
emitNodeVarDecl(nodeHandle, identifier, typeLiteral, expressionNode);
|
||||
|
||||
consume(parser, TOKEN_SEMICOLON, "Expected ';' at end of var declaration");
|
||||
@@ -1515,7 +1514,6 @@ static void fnDecl(Parser* parser, Node** nodeHandle) {
|
||||
blockStmt(parser, &blockNode);
|
||||
|
||||
//declare it
|
||||
freeNode(*nodeHandle); //free the initial node, because WTF?
|
||||
emitNodeFnDecl(nodeHandle, identifier, argumentNode, returnNode, blockNode);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user