This commit is contained in:
@@ -135,7 +135,7 @@ ParsedStatement *Parser::ParseFunctionDeclaration(const IToken *current) {
|
|||||||
}
|
}
|
||||||
auto typeToken = (IdentifierToken*)type;
|
auto typeToken = (IdentifierToken*)type;
|
||||||
auto identifierToken = (IdentifierToken*)identifier;
|
auto identifierToken = (IdentifierToken*)identifier;
|
||||||
parameters.push_back(new TypedVariableIdentifier(typeToken->GetValue(), typeToken->GetValue()));
|
parameters.push_back(new TypedVariableIdentifier(typeToken->GetValue(), identifierToken->GetValue()));
|
||||||
|
|
||||||
auto nextKind = next->GetKind();
|
auto nextKind = next->GetKind();
|
||||||
if (nextKind == TokenKind::CloseParenthesis || nextKind == TokenKind::EndOfFile){
|
if (nextKind == TokenKind::CloseParenthesis || nextKind == TokenKind::EndOfFile){
|
||||||
|
|||||||
Reference in New Issue
Block a user