classBisonParamDeclaration
final class BisonParamDeclaration
implements BisonDeclaration
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Represents a %parse-param or %lex-param declaration.
Example: %parse-param { THD *thd }
Properties§
public 'parse-param'|'lex-param' $kindpublic string $codeMethods§
public function __construct(public 'parse-param'|'lex-param' $kind, public string $code)Parameters
$kind | 'parse-param'|'lex-param' | |
$code | string |
Test cases 4
Test cases 9§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
BisonParamDeclarationTest::testCodecovers and callsBisonParamDeclarationTest::testKindcovers and calls
Other tests reaching this symbol 7
BisonDeclarationTest::testEveryDeclarationKindCanBeCarriedByAnAstcallsBisonParserTest::testParseLexParamDirectivecovers and callsBisonParserTest::testParseParseParamDirectivecovers and callsBisonPreambleReaderTestcallsBisonDirectiveReaderChainTest::providerDirectivecallsParamDirectiveReaderTest::testReadDistinguishesTheScannerDirectivecallsParamDirectiveReaderTest::testReadTakesTheBracedArgumentAndTheDirectiveKindcalls