File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ namespace pl::core {
4949 std::optional<u128 > parseInteger (std::string_view literal);
5050
5151 Token makeToken (const Token& token, size_t length = 1 );
52- Token makeTokenAt (const Token& token, Location& location, size_t length = 1 );
52+ static Token makeTokenAt (const Token& token, Location& location, size_t length = 1 );
5353 void addToken (const Token& token);
5454 bool hasTheLineEnded (const char &ch) {
5555 if (ch == ' \n ' ) {
Original file line number Diff line number Diff line change @@ -458,13 +458,11 @@ namespace pl::core {
458458 Token Lexer::makeToken (const Token &token, const size_t length) {
459459 auto location = this ->location ();
460460 location.length = length;
461- m_longestLineLength = std::max (m_longestLineLength, location.column + location.length );
462461 return { token.type , token.value , location };
463462 }
464463
465464 Token Lexer::makeTokenAt (const Token &token, Location& location, const size_t length) {
466465 location.length = length;
467- m_longestLineLength = std::max (m_longestLineLength, location.column + location.length );
468466 return { token.type , token.value , location };
469467 }
470468
You can’t perform that action at this time.
0 commit comments