classBisonTypeDeclaration
final class BisonTypeDeclaration
implements BisonDeclaration
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Represents a %type declaration.
Example: %type <item> expr literal
Properties§
public string $typeTagpublic list<string> $symbolsMethods§
public function __construct(public string $typeTag, public list<string> $symbols)Parameters
$typeTag | string | |
$symbols | list<string> |
Test cases 10§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
BisonTypeDeclarationTest::testSymbolscovers and callsBisonTypeDeclarationTest::testTypeTagcovers and calls
Other tests reaching this symbol 8
BisonDeclarationTest::testEveryDeclarationKindCanBeCarriedByAnAstcallsBisonParserTest::testParseComplexGrammarcoversBisonParserTest::testParseTypeDirectivecovers and callsBisonParserTest::testParseTypeDirectiveSkipsNonIdentifierscovers and callsBisonPreambleReaderTestcallsBisonDirectiveReaderChainTest::providerDirectivecallsTypeDirectiveReaderTest::testReadSkipsWhatIsNotARuleNamecallsTypeDirectiveReaderTest::testReadTakesTheTypeTagAndTheRulesItAppliesTocalls