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:
parent
d2b48f9679
commit
504f7da4c3
@ -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)}
|
||||
{
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user