Dropping now unused head variable names.
This commit is contained in:
parent
8214d7837a
commit
59fbc473df
@ -61,10 +61,7 @@ struct StatementVisitor
|
|||||||
|
|
||||||
for (size_t i = 0; i < ruleContext.headTerms.size(); i++)
|
for (size_t i = 0; i < ruleContext.headTerms.size(); i++)
|
||||||
{
|
{
|
||||||
// TODO: drop name
|
auto variableDeclaration = std::make_unique<ast::VariableDeclaration>(ast::VariableDeclaration::Type::Head);
|
||||||
auto variableName = "#" + std::string(HeadVariablePrefix) + std::to_string(ruleContext.freeVariables.size() + 1);
|
|
||||||
auto variableDeclaration = std::make_unique<ast::VariableDeclaration>(ast::VariableDeclaration::Type::Head, std::move(variableName));
|
|
||||||
|
|
||||||
ruleContext.freeVariables.emplace_back(std::move(variableDeclaration));
|
ruleContext.freeVariables.emplace_back(std::move(variableDeclaration));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user