Precedence.forTokenType constructor Null safety

Precedence.forTokenType(
  1. TokenType type
)

Constructs the precedence for a unary or binary expression constructed from an operator of the given type.

Implementation

Precedence.forTokenType(TokenType type) : this._(type.precedence);