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

The rank and associativity a grammar declares for one terminal.

Ranks are numbered from one in the order the declarations appear, so a later declaration binds tighter than an earlier one.

Properties§

public int $level
public Associativity $associativity

Methods§

public function __construct(public int $level, public Associativity $associativity)

Parameters

$levelintRank of the declaration group, higher binds tighter
$associativityAssociativityHow ties within the rank are settled

Test cases 15§

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 14

Relations§

Instantiated in 1
Type checks 1
Type declarations 3