//Operation doesn't changes the operand type public SemanticUnaryOperator(TokenType tokenKind, SemanticUnaryOperatorKind kind, Type operandType, Type resultType) { TokenType = tokenKind; Kind = kind; OperandType = operandType; ResultType = resultType; }
//Operation doesn't change the operand type public SemanticUnaryOperator(TokenType tokenKind, SemanticUnaryOperatorKind kind, Type operandType) : this(tokenKind, kind, operandType, operandType) { }