classParam
final class Param
implements Declaration
Public API: explicitly declared with
@visibility public.A %param, %lex-param or %parse-param directive and its braced arguments.
$file = (new \BisonParser\Parser())->parse("%parse-param {int *nastiness} {int *randomness}\n%%\ns: 'a';\n");
$file->declarations[0]->kind->value // => 'parse-param'
$file->declarations[0]->codes // => ['int *nastiness', 'int *randomness']Properties§
public ParamKind $kindpublic list<string> $codespublic Location $locationMethods§
public function location(): LocationAnswers where the declaration begins.
Returns
Location Line and column of the percent signTest cases 1
ParamTest::testLocationcalls
Test cases 6§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ParamTest::testLocationcalls