Lines Matching refs:context
498 if ($config->context === null || $config->context->hasEmptyPath()) {
499 if ($config->context === null || $config->context->isEmpty()) {
509 if ($config->context !== null && !$config->context->isEmpty()) {
510 for ($i = 0; $i < $config->context->getLength(); $i++) {
511 if ($config->context->getReturnState($i) !== PredictionContext::EMPTY_RETURN_STATE) {
512 $newContext = $config->context->getParent($i);// "pop" return state
513 $returnState = $this->atn->states[$config->context->getReturnState($i)];
574 $newContext = SingletonPredictionContext::create($config->context, $t->followState->stateNumber);
618 if ($config->context === null || $config->context->hasEmptyPath()) {
783 throw new \RuntimeException('ATN Config Set cannot have semantic context.');