LexerAction.isPositionDependent

Gets whether the lexer action is position-dependent. Position-dependent actions may have different semantics depending on the {@link CharStream} index at the time the action is executed.

<p>Many lexer commands, including {@code type}, {@code skip}, and {@code more}, do not check the input index during their execution. Actions like this are position-independent, and may be stored more efficiently as part of the {@link LexerATNConfig#lexerActionExecutor}.</p>

@return {@code true} if the lexer action semantics can be affected by the position of the input {@link CharStream} at the time it is executed; otherwise, {@code false}.

interface LexerAction
bool
isPositionDependent
()

Meta