Skip to content

Commit

Permalink
make sharedContextCache optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvergnaud committed Feb 25, 2024
1 parent 2d9fb6e commit 9c125e4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public open class LexerATNSimulator(
protected val recog: Lexer?,
atn: ATN,
public val decisionToDFA: Array<DFA>,
sharedContextCache: PredictionContextCache,
sharedContextCache: PredictionContextCache?,
) : ATNSimulator(atn, sharedContextCache) {
public companion object {
@Suppress("ConstPropertyName")
Expand Down Expand Up @@ -106,7 +106,7 @@ public open class LexerATNSimulator(
public constructor(
atn: ATN,
decisionToDFA: Array<DFA>,
sharedContextCache: PredictionContextCache,
sharedContextCache: PredictionContextCache?,
) : this(null, atn, decisionToDFA, sharedContextCache)

public open fun copyState(simulator: LexerATNSimulator) {
Expand Down

0 comments on commit 9c125e4

Please sign in to comment.