classBisonUnknownDeclaration
final class BisonUnknownDeclaration
implements BisonDeclaration
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Represents an unknown or unsupported directive.
Used for forward compatibility with new Bison directives.
Properties§
public string $directivepublic string $contentMethods§
public function __construct(public string $directive, public string $content)Parameters
$directive | string | Directive name including its percent sign |
$content | string | Arguments as written, joined by single spaces |
Test cases 1
Test cases 9§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 7
BisonDeclarationTest::testEveryDeclarationKindCanBeCarriedByAnAstcallsBisonParserTest::testParseUnknownDirectivecovers and callsBisonPreambleReaderTest::testReadKeepsADirectiveItHasNoModelForcallsBisonDirectiveReaderChainTest::providerDirectivecallsBisonDirectiveReaderChainTest::testReadFallsBackToTheUnknownReaderRatherThanDroppingADirectivecallsUnknownDirectiveReaderTest::testReadKeepsTheArgumentsAsTextcallsUnknownDirectiveReaderTest::testReadKeepsTheDirectiveWithoutArgumentscalls