add some missing operators to LineAndColumn
This commit is contained in:
parent
3dd82a2b85
commit
60fb523d62
|
@ -51,10 +51,29 @@ struct LineAndColumn
|
|||
return column <= other.column;
|
||||
}
|
||||
|
||||
bool operator> (const EffectiveType& other) const
|
||||
{
|
||||
if (line != other.line)
|
||||
return line > other.line;
|
||||
return column > other.column;
|
||||
}
|
||||
|
||||
bool operator>= (const EffectiveType& other) const
|
||||
{
|
||||
if (line != other.line)
|
||||
return line > other.line;
|
||||
return column >= other.column;
|
||||
}
|
||||
|
||||
bool operator== (const EffectiveType& other) const
|
||||
{
|
||||
return line == other.line and column == other.column;
|
||||
}
|
||||
|
||||
bool operator!= (const EffectiveType& other) const
|
||||
{
|
||||
return line != other.line or column != other.column;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user