add simple isValid() function to PhantomNodes
This commit is contained in:
parent
bddad0c57c
commit
acab77f4f8
@ -115,6 +115,12 @@ struct PhantomNode
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isValid() const
|
||||||
|
{
|
||||||
|
return location.isValid() &&
|
||||||
|
(name_id != std::numeric_limits<unsigned>::max());
|
||||||
|
}
|
||||||
|
|
||||||
bool operator==(const PhantomNode & other) const
|
bool operator==(const PhantomNode & other) const
|
||||||
{
|
{
|
||||||
return location == other.location;
|
return location == other.location;
|
||||||
|
Loading…
Reference in New Issue
Block a user