evalPrecedence method

SemanticContext? evalPrecedence(
  1. Recognizer<ATNSimulator> parser,
  2. RuleContext? parserCallStack
)

Evaluate the precedence predicates for the context and reduce the result.

@param parser The parser instance. @param parserCallStack @return The simplified semantic context after precedence predicates are evaluated, which will be one of the following values.

  • {@link #NONE}in if the predicate simplifies to [true] after precedence predicates are evaluated.
  • nullin if the predicate simplifies to [false] after precedence predicates are evaluated.
  • [this]in if the semantic context is not changed as a result of precedence predicate evaluation.
  • A non-null [SemanticContext]in the new simplified semantic context after precedence predicates are evaluated.

Implementation

SemanticContext? evalPrecedence(
  Recognizer parser,
  RuleContext? parserCallStack,
) {
  return this;
}