Skip to content

Commit

Permalink
Update LexerATNSimulator.cs with virutal Consume
Browse files Browse the repository at this point in the history
Allow user to subclass and consume differently. Useful for CR handling as suggested in #2519

Signed-off-by: Alberto Simões <Alberto.Simoes@checkmarx.com>
  • Loading branch information
cxambs authored and parrt committed Mar 21, 2023
1 parent 8188dc5 commit 8dcc652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/CSharp/src/Atn/LexerATNSimulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 8dcc652

Please sign in to comment.