Skip to content
Snippets Groups Projects
Commit eae61772 authored by dgelessus's avatar dgelessus
Browse files

Deprecate Lexer.unread because of hard to fix newline counting problems

We don't use Lexer.unread anywhere, so it's not worth putting in the
effort to fix this properly.
parent a2e63b46
No related branches found
No related tags found
No related merge requests found
Pipeline #124340 passed
...@@ -593,6 +593,12 @@ public class Lexer ...@@ -593,6 +593,12 @@ public class Lexer
} }
} }
/**
* @deprecated This method doesn't restore line/column info correctly in some cases
* (if a token begins in the middle of a CRLF newline pair).
* There is no planned replacement.
*/
@Deprecated
protected void unread(Token token) throws IOException protected void unread(Token token) throws IOException
{ {
String text = token.getText(); String text = token.getText();
......
...@@ -292,6 +292,12 @@ Macro:LexerBody ...@@ -292,6 +292,12 @@ Macro:LexerBody
} }
} }
/**
* @deprecated This method doesn't restore line/column info correctly in some cases
* (if a token begins in the middle of a CRLF newline pair).
* There is no planned replacement.
*/
@Deprecated
protected void unread(Token token) throws IOException protected void unread(Token token) throws IOException
{ {
String text = token.getText(); String text = token.getText();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment