precedence property

PatternPrecedence precedence

Return the precedence of this pattern.

The precedence is a positive integer value that defines how the source code is parsed into an AST. For example a | b & c is parsed as a | (b & c) because the precedence of & is greater than the precedence of |.

Implementation

PatternPrecedence get precedence;