isUnaryPrefixOperator property

bool isUnaryPrefixOperator

Return true if this type of token represents a unary prefix operator.

Implementation

bool get isUnaryPrefixOperator =>
    precedence == PREFIX_PRECEDENCE ||
    this == TokenType.MINUS ||
    this == TokenType.PLUS_PLUS ||
    this == TokenType.MINUS_MINUS;