@uml
Computes the set of input symbols which could follow ATN state number
{@code stateNumber} in the specified full {@code context}. This method
considers the complete parser context, but does not evaluate semantic
predicates (i.e. all predicates encountered during the calculation are
assumed true). If a path in the ATN exists from the starting state to the
{@link RuleStopState} of the outermost context without matching any
symbols, {@link Token#EOF} is added to the returned set.
<p>If {@code context} is {@code null}, it is treated as
{@link ParserRuleContext#EMPTY}.</p>
@param stateNumber the ATN state number
@param context the full parse context
@return The set of potentially valid input symbols which could follow the
specified state in the specified context.
@throws IllegalArgumentException if the ATN does not contain a state with
number {@code stateNumber}
@uml Computes the set of input symbols which could follow ATN state number {@code stateNumber} in the specified full {@code context}. This method considers the complete parser context, but does not evaluate semantic predicates (i.e. all predicates encountered during the calculation are assumed true). If a path in the ATN exists from the starting state to the {@link RuleStopState} of the outermost context without matching any symbols, {@link Token#EOF} is added to the returned set.
<p>If {@code context} is {@code null}, it is treated as {@link ParserRuleContext#EMPTY}.</p>
@param stateNumber the ATN state number @param context the full parse context @return The set of potentially valid input symbols which could follow the specified state in the specified context. @throws IllegalArgumentException if the ATN does not contain a state with number {@code stateNumber}