Add unknown variable domain

Before being able to tell whether a variable’s domain is general or
integer, it is necessary to flag it as “unknown.”
This commit is contained in:
Patrick Lühne 2018-04-19 15:07:35 +02:00
parent d2b48f9679
commit 504f7da4c3
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
1 changed files with 3 additions and 2 deletions

View File

@ -348,19 +348,20 @@ struct VariableDeclaration
enum class Domain
{
Unknown,
General,
Integer
};
explicit VariableDeclaration(Type type)
: type{type},
domain{Domain::General}
domain{Domain::Unknown}
{
}
explicit VariableDeclaration(Type type, std::string &&name)
: type{type},
domain{Domain::General},
domain{Domain::Unknown},
name{std::move(name)}
{
}