final class BisonDeclarationBoundary
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Decides where one declaration stops and the next thing starts.

Bison declarations are not terminated: %token A B C runs until something that can only begin something else appears. Every reader that consumes a list of symbols needs that judgement, and it has to be the same judgement in all of them, or two readers would disagree about which declaration a symbol belongs to.

Methods§

public function continuesWith(BisonLexeme $lexeme): bool

Reports whether a lexeme still belongs to the declaration being read.

Parameters

$lexemeBisonLexemeLexeme waiting at the front of the stream

Returns

bool True while the declaration continues, false where it ends
Test cases 15
Called from 4
Calls 13

Test cases 25§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 15
Other tests reaching this symbol 10

Relations§

Instantiated in 5
Method calls 4
Type declarations 8