Handling unsupported preferences in preconditions.
This commit is contained in:
parent
f4c1d65365
commit
14c498c539
@ -39,14 +39,8 @@ std::experimental::optional<ast::Precondition> parsePrecondition(Context &contex
|
|||||||
|
|
||||||
tokenizer.expect<std::string>("(");
|
tokenizer.expect<std::string>("(");
|
||||||
|
|
||||||
const auto expressionIdentifierPosition = tokenizer.position();
|
if (tokenizer.testIdentifierAndReturn("preference"))
|
||||||
|
|
||||||
if (tokenizer.testIdentifierAndSkip("preference"))
|
|
||||||
{
|
{
|
||||||
// TODO: refactor
|
|
||||||
tokenizer.seek(expressionIdentifierPosition);
|
|
||||||
const auto expressionIdentifier = tokenizer.getIdentifier();
|
|
||||||
|
|
||||||
tokenizer.seek(position);
|
tokenizer.seek(position);
|
||||||
return parseUnsupported(context);
|
return parseUnsupported(context);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user