Skip to content

Commit 5cfaf41

Browse files
committed
Lexer: add offset getter
1 parent c1e2f65 commit 5cfaf41

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Ast/include/Luau/Lexer.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ class Lexer
187187
static bool fixupQuotedString(std::string& data);
188188
static void fixupMultilineString(std::string& data);
189189

190+
unsigned int getOffset() const
191+
{
192+
return offset;
193+
}
194+
190195
private:
191196
char peekch() const;
192197
char peekch(unsigned int lookahead) const;

0 commit comments

Comments
 (0)