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