final class UnknownSymbolException
    extends RuntimeException
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Thrown when a symbol in the AST is neither a rule name nor a declared token.

The AST is read from a grammar file this package generated from upstream source, so a symbol nothing declares says the file and the parser that wrote it disagree. That is a condition of the input, not a mistake in the code reading it, so it is reported rather than declared.

Methods§

public function __construct(string $symbolName)

Parameters

$symbolNamestringSymbol the grammar never declares
Test cases 3
Calls 1
  • static-call RuntimeException::__construct() line 27

Test cases 3§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 2

Relations§

Instantiated in 1