classCodeProps
final class CodeProps
implements Declaration
Public API: explicitly declared with
@visibility public.A %destructor or %printer directive: code attached to symbols or type tags.
$file = (new \BisonParser\Parser())->parse("%destructor { free (\$\$); } <str> ID\n%%\ns: 'a';\n");
$file->declarations[0]->printer // => false
$file->declarations[0]->targets[0]->name // => 'str'
$file->declarations[0]->targets[1]->value // => 'ID'Properties§
public bool $printerpublic string $codepublic Location $locationMethods§
Test cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.