27 references to UnaryExpression
System.Core (27)
Microsoft\Scripting\Ast\UnaryExpression.cs (26)
167
return new
UnaryExpression
(functional, operand, operand.Type, _method);
380
return new
UnaryExpression
(unaryType, operand, method.ReturnType, method);
387
return new
UnaryExpression
(unaryType, operand, TypeUtils.GetNullableType(method.ReturnType), method);
401
return new
UnaryExpression
(unaryType, operand, method.ReturnType, method);
407
return new
UnaryExpression
(unaryType, operand, TypeUtils.GetNullableType(method.ReturnType), method);
424
return new
UnaryExpression
(coercionType, expression, convertToType, method);
438
return new
UnaryExpression
(unaryType, operand, method.ReturnType, method);
444
return new
UnaryExpression
(unaryType, operand, convertToType, method);
473
return new
UnaryExpression
(ExpressionType.Negate, expression, expression.Type, null);
504
return new
UnaryExpression
(ExpressionType.UnaryPlus, expression, expression.Type, null);
535
return new
UnaryExpression
(ExpressionType.NegateChecked, expression, expression.Type, null);
566
return new
UnaryExpression
(ExpressionType.Not, expression, expression.Type, null);
596
return new
UnaryExpression
(ExpressionType.IsFalse, expression, expression.Type, null);
622
return new
UnaryExpression
(ExpressionType.IsTrue, expression, expression.Type, null);
648
return new
UnaryExpression
(ExpressionType.OnesComplement, expression, expression.Type, null);
669
return new
UnaryExpression
(ExpressionType.TypeAs, expression, type, null);
686
return new
UnaryExpression
(ExpressionType.Unbox, expression, type, null);
719
return new
UnaryExpression
(ExpressionType.Convert, expression, type, null);
755
return new
UnaryExpression
(ExpressionType.ConvertChecked, expression, type, null);
758
return new
UnaryExpression
(ExpressionType.Convert, expression, type, null);
780
return new
UnaryExpression
(ExpressionType.ArrayLength, array, typeof(int), null);
795
return new
UnaryExpression
(ExpressionType.Quote, expression, expression.GetType(), null);
838
return new
UnaryExpression
(ExpressionType.Throw, value, type, null);
860
return new
UnaryExpression
(ExpressionType.Increment, expression, expression.Type, null);
886
return new
UnaryExpression
(ExpressionType.Decrement, expression, expression.Type, null);
985
return new
UnaryExpression
(kind, expression, expression.Type, null);
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
570
expr = new
UnaryExpression
(node.NodeType, expression.Node, node.Type, node.Method);