Made effect variant more concise.

This commit is contained in:
2017-06-27 17:50:42 +02:00
parent 4622f31fa4
commit 0beab67bd4
3 changed files with 11 additions and 12 deletions

View File

@@ -72,7 +72,7 @@ std::experimental::optional<ast::Effect> parseEffectBody(Context &context, ASTCo
// Now, test supported expressions
std::experimental::optional<ast::Effect> effect;
if ((effect = parseNot<ast::Effect>(context, astContext, variableStack, parseAtomicFormula))
if ((effect = parseNot<ast::AtomicFormula>(context, astContext, variableStack, parseAtomicFormula))
|| (effect = parseAtomicFormula(context, astContext, variableStack)))
{
return std::move(effect.value());