From 8dcc6526cfb154d688497f31cf1e0904801c6df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Sim=C3=B5es?= <104087721+cxambs@users.noreply.github.com> Date: Mon, 20 Mar 2023 11:48:22 +0000 Subject: [PATCH] Update LexerATNSimulator.cs with virutal Consume MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow user to subclass and consume differently. Useful for CR handling as suggested in https://github.com/antlr/antlr4/pull/2519 Signed-off-by: Alberto Simões --- runtime/CSharp/src/Atn/LexerATNSimulator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/CSharp/src/Atn/LexerATNSimulator.cs b/runtime/CSharp/src/Atn/LexerATNSimulator.cs index 3c9479ca80..4644decd4f 100644 --- a/runtime/CSharp/src/Atn/LexerATNSimulator.cs +++ b/runtime/CSharp/src/Atn/LexerATNSimulator.cs @@ -779,7 +779,7 @@ public int Column } - public void Consume(ICharStream input) + public virtual void Consume(ICharStream input) { int curChar = input.LA(1); if (curChar == '\n')