Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | public function exitEveryRule(ParserRuleContext $context) : void |
||
43 | { |
||
44 | $stream = $this->parser->getTokenStream(); |
||
45 | $token = $stream !== null ? $stream->LT(1) : null; |
||
46 | |||
47 | echo \sprintf( |
||
48 | 'exit %s, LT(1)=%s', |
||
49 | $this->parser->getRuleNames()[$context->getRuleIndex()], |
||
50 | $token === null? '' : $token->getText() ?? '' |
||
51 | ); |
||
58 |