Cleaned up
This commit is contained in:
@@ -215,11 +215,11 @@ shared_ptr<Statement> Parser::matchStatementVariable() {
|
||||
if (resultsGroup.getKind() != ParseeResultsGroupKind::SUCCESS)
|
||||
return nullptr;
|
||||
|
||||
string name = resultsGroup.getResults().at(0).getToken()->getLexme();
|
||||
string identifier = resultsGroup.getResults().at(0).getToken()->getLexme();
|
||||
shared_ptr<ValueType> valueType = resultsGroup.getResults().at(1).getValueType();
|
||||
shared_ptr<Expression> expression = resultsGroup.getResults().at(2).getExpression();
|
||||
|
||||
return make_shared<StatementVariable>(name, valueType, expression);
|
||||
return make_shared<StatementVariable>(identifier, valueType, expression);
|
||||
}
|
||||
|
||||
shared_ptr<Statement> Parser::matchStatementFunction() {
|
||||
|
||||
Reference in New Issue
Block a user