Skip to content

Commit

Permalink
Lexer: add offset getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Duermael committed Feb 25, 2025
1 parent c1e2f65 commit 5cfaf41
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Ast/include/Luau/Lexer.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ class Lexer
static bool fixupQuotedString(std::string& data);
static void fixupMultilineString(std::string& data);

unsigned int getOffset() const
{
return offset;
}

private:
char peekch() const;
char peekch(unsigned int lookahead) const;
Expand Down

0 comments on commit 5cfaf41

Please sign in to comment.