mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibCpp: Move Cpp::Token to a separate file
This commit is contained in:
@@ -791,17 +791,4 @@ Vector<Token> Lexer::lex()
|
||||
return tokens;
|
||||
}
|
||||
|
||||
bool Position::operator<(const Position& other) const
|
||||
{
|
||||
return line < other.line || (line == other.line && column < other.column);
|
||||
}
|
||||
bool Position::operator>(const Position& other) const
|
||||
{
|
||||
return !(*this < other) && !(*this == other);
|
||||
}
|
||||
bool Position::operator==(const Position& other) const
|
||||
{
|
||||
return line == other.line && column == other.column;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user