Parser.isExpectedToken

@uml Checks whether or not {@code symbol} can follow the current state in the ATN. The behavior of this method is equivalent to the following, but is implemented such that the complete context-sensitive follow set does not need to be explicitly constructed.

<pre> return getExpectedTokens().contains(symbol); </pre>

@param symbol the symbol type to check @return {@code true} if {@code symbol} can follow the current state in the ATN, otherwise {@code false}.

class Parser
bool
isExpectedToken
(
int symbol
)

Meta