Clean out a few TODOs.

This commit is contained in:
Bob Nystrom
2013-12-23 15:38:00 -08:00
parent 5a2fde0c2c
commit a30a5daa29
3 changed files with 9 additions and 11 deletions
-2
View File
@@ -1127,7 +1127,6 @@ static void parameterList(Compiler* compiler, char* name, int* length)
// Add a space in the name for the parameter.
if (name != NULL) name[(*length)++] = ' ';
// TODO: Check for length overflow.
}
while (match(compiler, TOKEN_COMMA));
consume(compiler, TOKEN_RIGHT_PAREN, "Expect ')' after parameters.");
@@ -1179,7 +1178,6 @@ static void namedCall(Compiler* compiler, bool allowAssignment,
name[length++] = ' ';
// Compile the assigned value.
// TODO: Allow assignment here.
expression(compiler);
int symbol = ensureSymbol(&compiler->parser->vm->methods, name, length);