internal Kind(UnaryOperator operatorType, bool overloaded) { this.operatorType = operatorType.ToExpressionType(); this.overloaded = overloaded; }
private UnaryOperator(Expression <Operator <T, R> > invoker, UnaryOperator type, MethodInfo?overloaded) : base(invoker.Compile(), type.ToExpressionType(), overloaded) { }
internal static ExpressionType ToExpressionType(this UnaryOperator @operator) => (ExpressionType)@operator;
internal static MissingOperatorException Create <T>(UnaryOperator @operator) => new(typeof(T), @operator.ToExpressionType());