interface RhsItem
Public API: explicitly declared with @visibility public.

One thing written on the right-hand side of a rule.

Every item knows where it was writtendoctest
$file = (new \BisonParser\Parser())->parse("%%\ns: 'a' %empty ;\n");
    (string) $file->rules()[0]->alternatives[0]->items[1]->location() // => '2:8'

Methods§

public function location(): Location

Answers where the item begins.

Returns

Location Line and column of its first character

Test cases 4§

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

Dedicated tests 1
Other tests reaching this symbol 3

Relations§

Implemented by 9
Type declarations 3