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
|
enum class Domain
|
||||||
{
|
{
|
||||||
|
Unknown,
|
||||||
General,
|
General,
|
||||||
Integer
|
Integer
|
||||||
};
|
};
|
||||||
|
|
||||||
explicit VariableDeclaration(Type type)
|
explicit VariableDeclaration(Type type)
|
||||||
: type{type},
|
: type{type},
|
||||||
domain{Domain::General}
|
domain{Domain::Unknown}
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
explicit VariableDeclaration(Type type, std::string &&name)
|
explicit VariableDeclaration(Type type, std::string &&name)
|
||||||
: type{type},
|
: type{type},
|
||||||
domain{Domain::General},
|
domain{Domain::Unknown},
|
||||||
name{std::move(name)}
|
name{std::move(name)}
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user