classBisonStartDeclaration
final class BisonStartDeclaration
implements BisonDeclaration
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Represents a %start declaration.
Example: %start sql_statement
Properties§
public string $symbolMethods§
public function __construct(public string $symbol)Parameters
$symbol | string | Rule a derivation begins from |
Test cases 9
BisonAstTest::testExposesEveryPartOfTheGrammarFilecoversBisonStartDeclarationTest::testSymbolcoversBisonParserTest::testParseComplexGrammarcoversBisonParserTest::testParseEmptyTokenDirectivecoversBisonParserTest::testParseMultipleDeclarationscoversBisonParserTest::testParsePrologueAfterDeclarationscoversBisonParserTest::testParseStartDirectivecoversGrammarCompilerTest::testCompileIgnoresNonTokenDeclarationscoversGrammarCompilerTest::testDeclarationsIndexesTokensAndIgnoresStartDeclarationscovers
Test cases 18§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
BisonStartDeclarationTest::testSymbolcovers and calls
Other tests reaching this symbol 17
BisonAstTest::testExposesEveryPartOfTheGrammarFilecovers and callsBisonDeclarationTest::testEveryDeclarationKindCanBeCarriedByAnAstcallsBisonParserTest::testParseComplexGrammarcoversBisonParserTest::testParseEmptyTokenDirectivecoversBisonParserTest::testParseMultipleDeclarationscoversBisonParserTest::testParsePrologueAfterDeclarationscoversBisonParserTest::testParseStartDirectivecovers and callsBisonPreambleReaderTest::testReadTakesThePrologueAndTheDeclarationscallsBisonPreambleReaderTest::testReadUsesTheDirectiveChainItWasGivencallsBisonPreambleTest::testItKeepsThePrologueAndTheDeclarationsApartcallsBisonStartSymbolTest::testFromPrefersTheDeclaredStartRulecallsBisonStartSymbolTest::testFromTakesTheFirstStartDeclarationWhenSeveralAreWrittencallsBisonDirectiveReaderChainTest::providerDirectivecallsBisonDirectiveReaderChainTest::testForBisonGrammarConsultsTheUnknownReaderLastcallsStartDirectiveReaderTest::testReadTakesTheRuleNamecallsGrammarCompilerTest::testCompileIgnoresNonTokenDeclarationscovers and callsGrammarCompilerTest::testDeclarationsIndexesTokensAndIgnoresStartDeclarationscovers and calls