precedence property

  1. @override
Precedence precedence
override

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

@override
// TODO(brianwilkerson) Remove this and implement it in subclasses when we
//  have constants for pattern-related precedence values.
Precedence get precedence => throw UnimplementedError();