27 instantiations of 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);
224 references to UnaryExpression
System.Activities (19)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (4)
608
UnaryExpression
unary = (
UnaryExpression
)expression;
619
UnaryExpression
unaryExpression = (
UnaryExpression
)expression;
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (6)
1067
UnaryExpression
unary = (
UnaryExpression
)expression;
1077
UnaryExpression
unaryPlus = (
UnaryExpression
)expression;
1314
UnaryExpression
unary = (
UnaryExpression
)expression;
System\Activities\Expressions\ExpressionServices.cs (5)
55
UnaryExpression
unaryExpressionBody = body as
UnaryExpression
;
956
static string TryConvertUnaryExpression<TResult>(
UnaryExpression
unaryExpressionBody, Type operandType, bool throwOnError, out Activity<TResult> result)
972
static string TryConvertUnaryExpressionWorker<TOperand, TResult>(
UnaryExpression
unaryExpressionBody, bool throwOnError, out Activity<TResult> result)
1185
static string TryConvertOverloadingUnaryOperator<TOperand, TResult>(
UnaryExpression
unaryExpression, Activity<TOperand> operand, bool throwOnError, out Activity<TResult> result)
System\Activities\Expressions\UnaryExpressionHelper.cs (1)
34
UnaryExpression
unaryExpression = Expression.MakeUnary(operatorType, operandParameter, typeof(TResult));
System\Activities\ExpressionUtilities.cs (3)
896
UnaryExpression
unaryExpression = null;
1140
unaryExpression = (
UnaryExpression
)expression;
1155
unaryExpression = (
UnaryExpression
)expression;
System.Core (126)
Microsoft\Scripting\Actions\CallSite.cs (1)
484
var
incrementIndex = Expression.PreIncrementAssign(index);
Microsoft\Scripting\Actions\DynamicObject.cs (1)
494
var
convert = Expression.Convert(resultMO.Expression, binder.ReturnType);
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
863
protected internal override Expression VisitUnary(
UnaryExpression
node) {
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (2)
436
private readonly
UnaryExpression
_node;
438
public UnaryExpressionProxy(
UnaryExpression
node) {
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (1)
622
protected internal override Expression VisitUnary(
UnaryExpression
node) {
Microsoft\Scripting\Ast\ExpressionVisitor.cs (5)
527
/// Visits the children of the <see cref="
UnaryExpression
" />.
532
protected internal virtual Expression VisitUnary(
UnaryExpression
node) {
630
private static
UnaryExpression
ValidateUnary(
UnaryExpression
before,
UnaryExpression
after) {
Microsoft\Scripting\Ast\InvocationExpression.cs (1)
123
? (LambdaExpression)((
UnaryExpression
)_lambda).Operand
Microsoft\Scripting\Ast\UnaryExpression.cs (86)
160
private
UnaryExpression
FunctionalOp(Expression operand) {
283
public
UnaryExpression
Update(Expression operand) {
294
/// Creates a <see cref="
UnaryExpression
"></see>, given an operand, by calling the appropriate factory method.
299
/// <returns>The <see cref="
UnaryExpression
"></see> that results from calling the appropriate factory method.</returns>
302
public static
UnaryExpression
MakeUnary(ExpressionType unaryType, Expression operand, Type type) {
307
/// Creates a <see cref="
UnaryExpression
"></see>, given an operand and implementing method, by calling the appropriate factory method.
313
/// <returns>The <see cref="
UnaryExpression
"></see> that results from calling the appropriate factory method.</returns>
317
public static
UnaryExpression
MakeUnary(ExpressionType unaryType, Expression operand, Type type, MethodInfo method) {
364
private static
UnaryExpression
GetUserDefinedUnaryOperatorOrThrow(ExpressionType unaryType, string name, Expression operand) {
365
UnaryExpression
u = GetUserDefinedUnaryOperator(unaryType, name, operand);
373
private static
UnaryExpression
GetUserDefinedUnaryOperator(ExpressionType unaryType, string name, Expression operand) {
393
private static
UnaryExpression
GetMethodBasedUnaryOperator(ExpressionType unaryType, Expression operand, MethodInfo method) {
413
private static
UnaryExpression
GetUserDefinedCoercionOrThrow(ExpressionType coercionType, Expression expression, Type convertToType) {
414
UnaryExpression
u = GetUserDefinedCoercion(coercionType, expression, convertToType);
421
private static
UnaryExpression
GetUserDefinedCoercion(ExpressionType coercionType, Expression expression, Type convertToType) {
430
private static
UnaryExpression
GetMethodBasedCoercionOperator(ExpressionType unaryType, Expression operand, Type convertToType, MethodInfo method) {
450
/// Creates a <see cref="
UnaryExpression
"></see> that represents an arithmetic negation operation.
453
/// <returns>A <see cref="
UnaryExpression
"></see> that has the <see cref="P:Expression.NodeType"></see> property equal to <see cref="P:ExpressionType.Negate"></see> and the <see cref="P:UnaryExpression.Operand"></see> properties set to the specified value.</returns>
456
public static
UnaryExpression
Negate(Expression expression) {
461
/// Creates a <see cref="
UnaryExpression
"></see> that represents an arithmetic negation operation.
465
/// <returns>A <see cref="
UnaryExpression
"></see> that has the <see cref="P:Expression.NodeType"></see> property equal to <see cref="P:ExpressionType.Negate"></see> and the <see cref="P:UnaryExpression.Operand"></see> and <see cref="P:UnaryExpression.Method"></see> properties set to the specified value.</returns>
469
public static
UnaryExpression
Negate(Expression expression, MethodInfo method) {
481
/// Creates a <see cref="
UnaryExpression
"></see> that represents a unary plus operation.
483
/// <param name="expression">An <see cref="Expression"></see> to set the <see cref="
UnaryExpression
.Operand"></see> property equal to.</param>
484
/// <returns>A <see cref="
UnaryExpression
"></see> that has the <see cref="Expression.NodeType"></see> property equal to <see cref="ExpressionType.UnaryPlus"></see> and the <see cref="
UnaryExpression
.Operand"></see> property set to the specified value.</returns>
487
public static
UnaryExpression
UnaryPlus(Expression expression) {
492
/// Creates a <see cref="
UnaryExpression
"></see> that represents a unary plus operation.
494
/// <param name="expression">An <see cref="Expression"></see> to set the <see cref="
UnaryExpression
.Operand"></see> property equal to.</param>
495
/// <param name="method">A <see cref="MethodInfo"></see> to set the <see cref="
UnaryExpression
.Method"></see> property equal to.</param>
496
/// <returns>A <see cref="
UnaryExpression
"></see> that has the <see cref="Expression.NodeType"></see> property equal to <see cref="ExpressionType.UnaryPlus"></see> and the <see cref="
UnaryExpression
.Operand"></see> and <see cref="
UnaryExpression
.Method"></see>property set to the specified value.</returns>
500
public static
UnaryExpression
UnaryPlus(Expression expression, MethodInfo method) {
517
public static
UnaryExpression
NegateChecked(Expression expression) {
531
public static
UnaryExpression
NegateChecked(Expression expression, MethodInfo method) {
548
public static
UnaryExpression
Not(Expression expression) {
562
public static
UnaryExpression
Not(Expression expression, MethodInfo method) {
568
UnaryExpression
u = GetUserDefinedUnaryOperator(ExpressionType.Not, "op_LogicalNot", expression);
581
/// <returns>An instance of <see cref="
UnaryExpression
"/>.</returns>
582
public static
UnaryExpression
IsFalse(Expression expression) {
591
/// <returns>An instance of <see cref="
UnaryExpression
"/>.</returns>
592
public static
UnaryExpression
IsFalse(Expression expression, MethodInfo method) {
607
/// <returns>An instance of <see cref="
UnaryExpression
"/>.</returns>
608
public static
UnaryExpression
IsTrue(Expression expression) {
617
/// <returns>An instance of <see cref="
UnaryExpression
"/>.</returns>
618
public static
UnaryExpression
IsTrue(Expression expression, MethodInfo method) {
633
/// <returns>An instance of <see cref="
UnaryExpression
"/>.</returns>
634
public static
UnaryExpression
OnesComplement(Expression expression) {
643
/// <returns>An instance of <see cref="
UnaryExpression
"/>.</returns>
644
public static
UnaryExpression
OnesComplement(Expression expression, MethodInfo method) {
661
public static
UnaryExpression
TypeAs(Expression expression, Type type) {
677
/// <returns>An instance of <see cref="
UnaryExpression
"/>.</returns>
678
public static
UnaryExpression
Unbox(Expression expression, Type type) {
696
public static
UnaryExpression
Convert(Expression expression, Type type) {
711
public static
UnaryExpression
Convert(Expression expression, Type type, MethodInfo method) {
733
public static
UnaryExpression
ConvertChecked(Expression expression, Type type) {
748
public static
UnaryExpression
ConvertChecked(Expression expression, Type type, MethodInfo method) {
772
public static
UnaryExpression
ArrayLength(Expression array) {
788
public static
UnaryExpression
Quote(Expression expression) {
802
public static
UnaryExpression
Rethrow() {
811
public static
UnaryExpression
Rethrow(Type type) {
820
public static
UnaryExpression
Throw(Expression value) {
830
public static
UnaryExpression
Throw(Expression value, Type type) {
846
public static
UnaryExpression
Increment(Expression expression) {
856
public static
UnaryExpression
Increment(Expression expression, MethodInfo method) {
872
public static
UnaryExpression
Decrement(Expression expression) {
882
public static
UnaryExpression
Decrement(Expression expression, MethodInfo method) {
894
/// Creates a <see cref="
UnaryExpression
"/> that increments the expression by 1
899
public static
UnaryExpression
PreIncrementAssign(Expression expression) {
905
/// Creates a <see cref="
UnaryExpression
"/> that increments the expression by 1
911
public static
UnaryExpression
PreIncrementAssign(Expression expression, MethodInfo method) {
916
/// Creates a <see cref="
UnaryExpression
"/> that decrements the expression by 1
921
public static
UnaryExpression
PreDecrementAssign(Expression expression) {
926
/// Creates a <see cref="
UnaryExpression
"/> that decrements the expression by 1
932
public static
UnaryExpression
PreDecrementAssign(Expression expression, MethodInfo method) {
937
/// Creates a <see cref="
UnaryExpression
"/> that represents the assignment of the expression
942
public static
UnaryExpression
PostIncrementAssign(Expression expression) {
947
/// Creates a <see cref="
UnaryExpression
"/> that represents the assignment of the expression
953
public static
UnaryExpression
PostIncrementAssign(Expression expression, MethodInfo method) {
958
/// Creates a <see cref="
UnaryExpression
"/> that represents the assignment of the expression
963
public static
UnaryExpression
PostDecrementAssign(Expression expression) {
968
/// Creates a <see cref="
UnaryExpression
"/> that represents the assignment of the expression
974
public static
UnaryExpression
PostDecrementAssign(Expression expression, MethodInfo method) {
978
private static
UnaryExpression
MakeOpAssignUnary(ExpressionType kind, Expression expression, MethodInfo method) {
982
UnaryExpression
result;
Microsoft\Scripting\Compiler\LambdaCompiler.Address.cs (2)
60
AddressOf((
UnaryExpression
)node, type);
197
private void AddressOf(
UnaryExpression
node, Type type) {
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (1)
107
EmitThrow((
UnaryExpression
)node, CompilationFlags.EmitAsVoidType);
Microsoft\Scripting\Compiler\LambdaCompiler.Logical.cs (4)
484
EmitBranchNot(branchValue, (
UnaryExpression
)node, label);
510
private void EmitBranchNot(bool branch,
UnaryExpression
node, Label label) {
572
var
convert = (
UnaryExpression
)expression;
Microsoft\Scripting\Compiler\LambdaCompiler.Unary.cs (12)
35
EmitQuote((
UnaryExpression
)expr);
39
private void EmitQuote(
UnaryExpression
quote) {
58
EmitThrow((
UnaryExpression
)expr, CompilationFlags.EmitAsDefaultType);
61
private void EmitThrow(
UnaryExpression
expr, CompilationFlags flags) {
75
EmitUnary((
UnaryExpression
)expr, flags);
78
private void EmitUnary(
UnaryExpression
node, CompilationFlags flags) {
271
var
node = (
UnaryExpression
)expr;
280
EmitConvert((
UnaryExpression
)expr, flags);
283
private void EmitConvert(
UnaryExpression
node, CompilationFlags flags) {
309
UnaryExpression
e = Expression.Convert(
335
private void EmitUnaryMethod(
UnaryExpression
node, CompilationFlags flags) {
Microsoft\Scripting\Compiler\StackSpiller.cs (4)
534
UnaryExpression
node = (
UnaryExpression
)expr;
557
UnaryExpression
node = (
UnaryExpression
)expr;
Microsoft\Scripting\Compiler\VariableBinder.cs (1)
79
protected internal override Expression VisitUnary(
UnaryExpression
node) {
System\Linq\Expressions\ExpressionVisitor.cs (2)
31
return this.VisitUnary((
UnaryExpression
)exp);
108
internal virtual Expression VisitUnary(
UnaryExpression
u) {
System\Linq\SequenceQuery.cs (2)
253
expr = ((
UnaryExpression
)expr).Operand;
364
arg = ((
UnaryExpression
)arg).Operand;
System.Data.Entity (24)
System\Data\Objects\ELinq\EntityExpressionVisitor.cs (2)
40
return this.VisitUnary((
UnaryExpression
)exp);
123
internal virtual Expression VisitUnary(
UnaryExpression
u)
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
892
return GetLambdaExpression(((
UnaryExpression
)argument).Operand);
System\Data\Objects\ELinq\Funcletizer.cs (2)
467
var
ue = (
UnaryExpression
)expression;
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (3)
116
input = ((
UnaryExpression
)input).Operand;
394
UnaryExpression
quote = (
UnaryExpression
)expression;
System\Data\Objects\ELinq\MethodCallTranslator.cs (4)
347
UnaryExpression
convertExpression = (
UnaryExpression
)queryExpression;
704
UnaryExpression
convertExpression = (
UnaryExpression
)expression;
System\Data\Objects\ELinq\Translator.cs (11)
1055
input = ((
UnaryExpression
)input).Operand;
1148
protected override DbExpression TranslateUnary(ExpressionConverter parent, System.Linq.Expressions.
UnaryExpression
unary, DbExpression operand)
1157
protected override DbExpression TranslateUnary(ExpressionConverter parent,
UnaryExpression
unary, DbExpression operand)
1223
private sealed class NotTranslator : TypedTranslator<
UnaryExpression
>
1227
protected override DbExpression TypedTranslate(ExpressionConverter parent, System.Linq.Expressions.
UnaryExpression
linq)
1241
: TypedTranslator<System.Linq.Expressions.
UnaryExpression
>
1245
protected override DbExpression TypedTranslate(ExpressionConverter parent, System.Linq.Expressions.
UnaryExpression
linq)
1249
protected abstract DbExpression TranslateUnary(ExpressionConverter parent, System.Linq.Expressions.
UnaryExpression
unary, DbExpression operand);
1255
protected override DbExpression TranslateUnary(ExpressionConverter parent, System.Linq.Expressions.
UnaryExpression
unary, DbExpression operand)
1266
protected override DbExpression TranslateUnary(ExpressionConverter parent, System.Linq.Expressions.
UnaryExpression
unary, DbExpression operand)
1278
protected override DbExpression TranslateUnary(ExpressionConverter parent, System.Linq.Expressions.
UnaryExpression
unary, DbExpression operand)
System\Data\Objects\ObjectContext.cs (1)
849
body = ((
UnaryExpression
)body).Operand;
System.Data.Linq (22)
DataServices.cs (2)
496
UnaryExpression
quote = mc.Arguments[1] as
UnaryExpression
;
DataShape.cs (2)
67
op = ((
UnaryExpression
)op).Operand;
169
body = ((
UnaryExpression
)body).Operand;
SqlClient\Query\Funcletizer.cs (5)
46
UnaryExpression
ue = (
UnaryExpression
)e;
158
return this.VisitUnary((
UnaryExpression
)exp);
211
return this.VisitUnary((
UnaryExpression
)exp);
239
internal virtual Expression VisitUnary(
UnaryExpression
u) {
SqlClient\Query\QueryConverter.cs (13)
162
return this.VisitUnary((
UnaryExpression
)node);
165
return this.VisitUnary((
UnaryExpression
)node);
195
return this.VisitCast((
UnaryExpression
)node);
197
return this.VisitAs((
UnaryExpression
)node);
209
return this.VisitArrayLength((
UnaryExpression
)node);
215
return this.Visit(((
UnaryExpression
)node).Operand);
325
? (LambdaExpression)((
UnaryExpression
)invoke.Expression).Operand
636
private SqlNode VisitAs(
UnaryExpression
a) {
650
private SqlNode VisitArrayLength(
UnaryExpression
c) {
685
private SqlNode VisitCast(
UnaryExpression
c) {
1266
private SqlNode VisitUnary(
UnaryExpression
u) {
1974
expression = ((
UnaryExpression
)expression).Operand;
2507
exp = ((
UnaryExpression
)exp).Operand;
System.Data.Services (9)
parent\Client\System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (2)
117
return this.VisitUnary((
UnaryExpression
)exp);
216
internal virtual Expression VisitUnary(
UnaryExpression
u)
System\Data\Services\Parsing\RequestQueryParser.cs (4)
1241
return ((
UnaryExpression
)input).Method != null && ((
UnaryExpression
)input).Method.DeclaringType == typeof(OpenTypeMethods);
1284
UnaryExpression
inner = (
UnaryExpression
)input;
System\Data\Services\Providers\BasicExpandProvider.cs (2)
1157
(LambdaExpression)((
UnaryExpression
)call.Arguments[1]).Operand :
1915
internal override Expression VisitUnary(
UnaryExpression
u)
System\Data\Services\RequestUriProcessor.cs (1)
1139
UnaryExpression
body =
System.Data.Services.Client (24)
System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (2)
117
return this.VisitUnary((
UnaryExpression
)exp);
216
internal virtual Expression VisitUnary(
UnaryExpression
u)
System\Data\Services\Client\ALinq\ExpressionNormalizer.cs (6)
153
internal override Expression VisitUnary(
UnaryExpression
u)
155
UnaryExpression
visited = (
UnaryExpression
)base.VisitUnary(u);
210
input = ((
UnaryExpression
)input).Operand;
474
UnaryExpression
quote = (
UnaryExpression
)expression;
System\Data\Services\Client\ALinq\ExpressionWriter.cs (2)
311
internal override Expression VisitUnary(
UnaryExpression
u)
511
if (e is BinaryExpression || e is
UnaryExpression
)
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (3)
242
result = ((
UnaryExpression
)result).Operand;
343
internal override Expression VisitUnary(
UnaryExpression
u)
558
internal override Expression VisitUnary(
UnaryExpression
u)
System\Data\Services\Client\ALinq\ResourceBinder.cs (7)
827
UnaryExpression
ue = e as
UnaryExpression
;
993
UnaryExpression
unary = e as
UnaryExpression
;
1022
expression = expression.NodeType == ExpressionType.Quote ? ((
UnaryExpression
)expression).Operand : expression;
1345
internal static bool MatchConvertToAssignable(
UnaryExpression
expression)
2106
expression = ((
UnaryExpression
)expression).Operand;
System\Data\Services\Client\ALinq\UriWriter.cs (1)
87
internal override Expression VisitUnary(
UnaryExpression
u)
System\Data\Services\Client\ProjectionPlanCompiler.cs (3)
161
internal override Expression VisitUnary(
UnaryExpression
u)
168
UnaryExpression
unaryResult = result as
UnaryExpression
;