127 references to Operand
System.Activities (9)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (2)
609
FindTypeReferences(unary.
Operand
, typeReferences);
620
FindTypeReferences(unaryExpression.
Operand
, typeReferences);
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (3)
1068
expr1 = Rewrite(unary.
Operand
, lambdaParameters, out abort);
1078
expr1 = Rewrite(unaryPlus.
Operand
, lambdaParameters, out abort);
1315
return FindParameter(unary.
Operand
);
System\Activities\Expressions\ExpressionServices.cs (2)
58
Type operandType = unaryExpressionBody.
Operand
.Type;
977
string operandError = TryConvert<TOperand>(unaryExpressionBody.
Operand
, throwOnError, out operand);
System\Activities\ExpressionUtilities.cs (2)
1142
hasChanged |= TryRewriteLambdaExpression(unaryExpression.
Operand
, out left, publicAccessor);
1157
hasChanged |= TryRewriteLambdaExpression(unaryExpression.
Operand
, out left, publicAccessor);
System.Core (50)
Microsoft\Scripting\Ast\DebugViewWriter.cs (2)
894
if (node.
Operand
== null) {
923
ParenthesizedVisit(node, node.
Operand
);
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (1)
448
public Expression Operand { get { return _node.
Operand
; } }
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (1)
663
Visit(node.
Operand
);
Microsoft\Scripting\Ast\ExpressionVisitor.cs (5)
533
return ValidateUnary(node, node.Update(Visit(node.
Operand
)));
637
if (before.
Operand
!= null && after.
Operand
!= null) {
638
ValidateChildType(before.
Operand
.Type, after.
Operand
.Type, "VisitUnary");
Microsoft\Scripting\Ast\InvocationExpression.cs (1)
123
? (LambdaExpression)((UnaryExpression)_lambda).
Operand
Microsoft\Scripting\Ast\UnaryExpression.cs (6)
281
/// <param name="operand">The <see cref="
Operand
" /> property of the result.</param>
284
if (operand ==
Operand
) {
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>
494
/// <param name="expression">An <see cref="Expression"></see> to set the <see cref="UnaryExpression.
Operand
"></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>
Microsoft\Scripting\Compiler\LambdaCompiler.Address.cs (1)
202
EmitExpression(node.
Operand
);
Microsoft\Scripting\Compiler\LambdaCompiler.Logical.cs (3)
516
EmitExpressionAndBranch(!branch, node.
Operand
, label);
573
if (TypeUtils.AreReferenceAssignable(convert.Type, convert.
Operand
.Type)) {
574
return convert.
Operand
;
Microsoft\Scripting\Compiler\LambdaCompiler.Unary.cs (22)
41
EmitConstant(quote.
Operand
, quote.Type);
62
if (expr.
Operand
== null) {
67
EmitExpression(expr.
Operand
);
81
} else if (node.NodeType == ExpressionType.NegateChecked && TypeUtils.IsInteger(node.
Operand
.Type)) {
82
EmitExpression(node.
Operand
);
83
LocalBuilder loc = GetLocal(node.
Operand
.Type);
86
_ilg.EmitConvertToType(typeof(int), node.
Operand
.Type, false);
89
EmitBinaryOperator(ExpressionType.SubtractChecked, node.
Operand
.Type, node.
Operand
.Type, node.Type, false);
91
EmitExpression(node.
Operand
);
92
EmitUnaryOperator(node.NodeType, node.
Operand
.Type, node.Type);
275
EmitExpression(node.
Operand
);
301
if (node.IsLifted && (!node.Type.IsValueType || !node.
Operand
.Type.IsValueType)) {
312
Expression.Convert(node.
Operand
, pis[0].ParameterType)
322
EmitExpressionAsVoid(node.
Operand
, flags);
324
if (TypeUtils.AreEquivalent(node.
Operand
.Type, node.Type)) {
325
EmitExpression(node.
Operand
, flags);
328
EmitExpression(node.
Operand
);
329
_ilg.EmitConvertToType(node.
Operand
.Type, node.Type, node.NodeType == ExpressionType.ConvertChecked);
337
ParameterExpression v = Expression.Variable(TypeUtils.GetNonNullableType(node.
Operand
.Type), null);
341
EmitLift(node.NodeType, resultType, mc, new ParameterExpression[] { v }, new Expression[] { node.
Operand
});
344
EmitMethodCallExpression(Expression.Call(node.Method, node.
Operand
), flags);
Microsoft\Scripting\Compiler\StackSpiller.cs (2)
541
Result value = RewriteExpressionFreeTemps(node.
Operand
, Stack.Empty);
563
Result expression = RewriteExpression(node.
Operand
, stack);
Microsoft\Scripting\Compiler\VariableBinder.cs (2)
83
Visit(node.
Operand
);
86
Visit(node.
Operand
);
System\Linq\Expressions\ExpressionVisitor.cs (2)
109
Expression operand = this.Visit(u.
Operand
);
110
if (operand != u.
Operand
) {
System\Linq\SequenceQuery.cs (2)
253
expr = ((UnaryExpression)expr).
Operand
;
364
arg = ((UnaryExpression)arg).
Operand
;
System.Data.Entity (17)
System\Data\Objects\ELinq\EntityExpressionVisitor.cs (2)
125
Expression operand = this.Visit(u.
Operand
);
126
if (operand != u.
Operand
)
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
892
return GetLambdaExpression(((UnaryExpression)argument).
Operand
);
System\Data\Objects\ELinq\Funcletizer.cs (3)
473
&& ue.
Operand
.NodeType == ExpressionType.Constant
474
&& typeof(IQueryable).IsAssignableFrom(ue.
Operand
.Type))
476
value = ((ConstantExpression)ue.
Operand
).Value;
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (2)
116
input = ((UnaryExpression)input).
Operand
;
395
if (TryMatchCoalescePattern(quote.
Operand
, out normalized))
System\Data\Objects\ELinq\MethodCallTranslator.cs (3)
348
Type argumentType = convertExpression.
Operand
.Type;
352
queryExpression = convertExpression.
Operand
;
708
Expression operand = UnwrapNoOpConverts(convertExpression.
Operand
);
System\Data\Objects\ELinq\Translator.cs (5)
1055
input = ((UnaryExpression)input).
Operand
;
1229
DbExpression operand = parent.TranslateExpression(linq.
Operand
);
1247
return TranslateUnary(parent, linq, parent.TranslateExpression(linq.
Operand
));
1269
Type fromClrType = unary.
Operand
.Type;
1281
TypeUsage toType = parent.GetIsOrAsTargetType(fromType, ExpressionType.TypeAs, unary.Type, unary.
Operand
.Type);
System\Data\Objects\ObjectContext.cs (1)
849
body = ((UnaryExpression)body).
Operand
;
System.Data.Linq (19)
DataServices.cs (1)
499
LambdaExpression pred = quote.
Operand
as LambdaExpression;
DataShape.cs (2)
67
op = ((UnaryExpression)op).
Operand
;
169
body = ((UnaryExpression)body).
Operand
;
SqlClient\Query\Funcletizer.cs (5)
48
Expression local = MakeLocal(ue.
Operand
);
52
if (ue.
Operand
.NodeType == ExpressionType.Constant) {
53
ConstantExpression c = (ConstantExpression)ue.
Operand
;
240
Expression operand = this.Visit(u.
Operand
);
241
if (operand != u.
Operand
) {
SqlClient\Query\QueryConverter.cs (11)
215
return this.Visit(((UnaryExpression)node).
Operand
);
325
? (LambdaExpression)((UnaryExpression)invoke.Expression).
Operand
637
SqlNode node = this.Visit(a.
Operand
);
651
SqlExpression exp = this.VisitExpression(c.
Operand
);
687
SqlExpression exp = this.VisitExpression(c.
Operand
);
690
return this.VisitChangeType(c.
Operand
, c.Type);
1267
SqlExpression exp = this.VisitExpression(u.
Operand
);
1280
if (u.
Operand
.Type == typeof(bool) || u.
Operand
.Type == typeof(bool?)) {
1974
expression = ((UnaryExpression)expression).
Operand
;
2507
exp = ((UnaryExpression)exp).
Operand
;
System.Data.Services (5)
parent\Client\System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (2)
218
Expression operand = this.Visit(u.
Operand
);
219
if (operand != u.
Operand
)
System\Data\Services\Parsing\RequestQueryParser.cs (1)
1285
input = inner.
Operand
;
System\Data\Services\Providers\BasicExpandProvider.cs (2)
1157
(LambdaExpression)((UnaryExpression)call.Arguments[1]).
Operand
:
1925
ExpandNode operandAnnotation = this.GetExpandNodeAnnotation(u.
Operand
);
System.Data.Services.Client (27)
System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (2)
218
Expression operand = this.Visit(u.
Operand
);
219
if (operand != u.
Operand
)
System\Data\Services\Client\ALinq\ExpressionNormalizer.cs (8)
170
if ((visited.NodeType == ExpressionType.Convert || visited.NodeType == ExpressionType.TypeAs) && visited.Type.IsAssignableFrom(visited.
Operand
.Type))
173
if (!ClientConvert.IsKnownNullableType(visited.
Operand
.Type) && !ClientConvert.IsKnownNullableType(visited.Type) || visited.
Operand
.Type == visited.Type)
176
if(!(ClientType.CheckElementTypeIsEntity(visited.
Operand
.Type) && ProjectionAnalyzer.IsCollectionProducingExpression(visited.
Operand
)))
178
result = visited.
Operand
;
210
input = ((UnaryExpression)input).
Operand
;
475
if (TryMatchCoalescePattern(quote.
Operand
, out normalized))
System\Data\Services\Client\ALinq\ExpressionWriter.cs (6)
318
this.VisitOperand(u.
Operand
);
324
this.VisitOperand(u.
Operand
);
332
if (!IsInputReference(u.
Operand
))
334
this.Visit(u.
Operand
);
345
if (!IsInputReference(u.
Operand
))
347
this.Visit(u.
Operand
);
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (5)
242
result = ((UnaryExpression)result).
Operand
;
356
Type sourceType = Nullable.GetUnderlyingType(u.
Operand
.Type) ?? u.
Operand
.Type;
362
return base.Visit(u.
Operand
);
564
if (ClientType.CheckElementTypeIsEntity(u.
Operand
.Type))
System\Data\Services\Client\ALinq\ResourceBinder.cs (5)
838
e = ue.
Operand
;
996
result = unary.
Operand
;
1022
expression = expression.NodeType == ExpressionType.Quote ? ((UnaryExpression)expression).
Operand
: expression;
1356
return expression.Type.IsAssignableFrom(expression.
Operand
.Type);
2106
expression = ((UnaryExpression)expression).
Operand
;
System\Data\Services\Client\ProjectionPlanCompiler.cs (1)
172
if (this.annotations.TryGetValue(unaryResult.
Operand
, out annotation))