classEmptyItem
final class EmptyItem
implements RhsItem
Public API: explicitly declared with
@visibility public.The %empty marker that documents an empty right-hand side.
$file = (new \BisonParser\Parser())->parse("%%\nopt: %empty | 'a' ;\n");
$file->rules()[0]->alternatives[0]->items[0] instanceof \BisonParser\Ast\Rule\EmptyItem // => trueProperties§
public Location $locationMethods§
public function __construct(public Location $location)Parameters
$location | Location | Where the marker is written |
Test cases 9§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.