Lines Matching refs:context
47 $context = $recognizer->getContext();
49 while ($context !== null) {
50 if (!$context instanceof ParserRuleContext) {
51 throw new \RuntimeException('Unexpected context type.');
54 $context->exception = $e;
55 $context = $context->getParent();
71 for ($context = $recognizer->getContext(); $context; $context = $context->getParent()) {
72 if (!$context instanceof ParserRuleContext) {
73 throw new \RuntimeException('Unexpected context type.');
76 $context->exception = $e;