122 references to Expression
System.Activities (28)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (2)
483if (memberExpression.Expression == null) 489FindTypeReferences(memberExpression.Expression, typeReferences);
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (2)
893expr1 = Rewrite(memberExpression.Expression, lambdaParameters, subTreeIsLocationExpression, out abort); 1264return FindParameter(memberExpression.Expression);
System\Activities\Expressions\ExpressionServices.cs (13)
76Type memberType = memberExpressionBody.Expression == null ? memberExpressionBody.Member.DeclaringType : memberExpressionBody.Expression.Type; 179Type memberType = memberExpressionBody.Expression == null ? memberExpressionBody.Member.DeclaringType : memberExpressionBody.Expression.Type; 367if (member.Expression is ConstantExpression) 369ConstantExpression memberExpression = member.Expression as ConstantExpression; 514if (member.Expression is ConstantExpression) 516ConstantExpression memberExpression = member.Expression as ConstantExpression; 1036if (memberExpressionBody.Expression != null) 1039string operandError = TryConvert<TOperand>(memberExpressionBody.Expression, throwOnError, out operand); 1101if (memberExpressionBody.Expression != null) 1106string operandError = TryConvert<TOperand>(memberExpressionBody.Expression, throwOnError, out operand); 1114string operandError = TryConvertReference<TOperand>(memberExpressionBody.Expression, throwOnError, out operandReference);
System\Activities\ExpressionUtilities.cs (8)
355Expression.Convert(memberExpression.Expression, TypeHelper.ObjectType), expression.Parameters); 361parentFactory = CreateParentReference(memberExpression.Expression, expression.Parameters); 743if (memberExpression.Expression == null) 751Expression.Convert(memberExpression.Expression, TypeHelper.ObjectType), expression.Parameters); 757parentFactory = CreateParentReference(memberExpression.Expression, expression.Parameters); 1012hasChanged |= TryRewriteLambdaExpression(memberExpression.Expression, out other, publicAccessor, subTreeIsLocationExpression); 1580if (memberExpression.Expression != null) 1582CustomMemberResolver(memberExpression.Expression, out memberValue);
System\Activities\XamlIntegration\ExpressionTreeRewriter.cs (3)
28if (node.Expression != null && node.Expression.NodeType == ExpressionType.Constant) 30ConstantExpression constExpr = (ConstantExpression)node.Expression;
System.Core (32)
Microsoft\Scripting\Ast\BinaryExpression.cs (3)
211if (member.Expression == null) { 221ParameterExpression temp1 = Variable(member.Expression.Type, "temp1"); 224Expression e1 = Expression.Assign(temp1, member.Expression);
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
558OutMember(node, node.Expression, node.Member);
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (1)
279public Expression Expression { get { return _node.Expression; } }
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (1)
435OutMember(node.Expression, node.Member);
Microsoft\Scripting\Ast\ExpressionVisitor.cs (1)
388return node.Update(Visit(node.Expression));
Microsoft\Scripting\Ast\MemberExpression.cs (4)
71/// Returns the node type of this <see cref="Expression" />. (Inherited from <see cref="Expression" />.) 94/// <param name="expression">The <see cref="Expression" /> property of the result.</param> 97if (expression == Expression) {
Microsoft\Scripting\Ast\UnaryExpression.cs (3)
193if (member.Expression == null) { 197var temp1 = Parameter(member.Expression.Type, null); 198var initTemp1 = Assign(temp1, member.Expression);
Microsoft\Scripting\Compiler\LambdaCompiler.Address.cs (6)
119if (node.Expression != null) { 120EmitInstance(node.Expression, objectType = node.Expression.Type); 251if (node.Expression != null) { 252EmitInstance(node.Expression, instanceType = node.Expression.Type);
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (6)
654if (lvalue.Expression != null) { 655EmitInstance(lvalue.Expression, objectType = lvalue.Expression.Type); 691if (node.Expression != null) { 692EmitInstance(node.Expression, instanceType = node.Expression.Type);
Microsoft\Scripting\Compiler\StackSpiller.cs (4)
345cr.Add(lvalue.Expression); 350RequireNotRefInstance(lvalue.Expression); 369Result expression = RewriteExpression(node.Expression, stack); 375RequireNotRefInstance(node.Expression);
System\Linq\Expressions\ExpressionVisitor.cs (2)
156Expression exp = this.Visit(m.Expression); 157if (exp != m.Expression) {
System.Data.Entity (19)
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (1)
428var shaper = m.Expression as ParameterExpression;
System\Data\Objects\ELinq\EntityExpressionVisitor.cs (2)
182Expression exp = this.Visit(m.Expression); 183if (exp != m.Expression)
System\Data\Objects\ELinq\Funcletizer.cs (3)
694while ((me = me.Expression as MemberExpression) != null) 699ConstantExpression ce = me.Expression as ConstantExpression; 703if (!TryGetFieldOrPropertyValue(me, ((ConstantExpression)me.Expression).Value, out memberVal))
System\Data\Objects\ELinq\SpatialPropertyTranslator.cs (2)
157Debug.Assert(call.Expression != null, "No static spatial properties currently map to canonical functions"); 158DbExpression result = parent.TranslateIntoCanonicalFunction(canonicalFunctionName, call, call.Expression);
System\Data\Objects\ELinq\Translator.cs (10)
170if (linq.Expression != null) 172DbExpression instance = parent.TranslateExpression(linq.Expression); 448return TranslateCount(parent, _elementType, call.Expression); 560return parent.TranslateIntoCanonicalFunction(call.Member.Name, call, call.Expression); 600if (call.Expression == null) 606result = parent.TranslateIntoCanonicalFunction(canonicalFunctionName, call, call.Expression); 648return MemberAccessTranslator.TranslateCount(parent, call.Member.DeclaringType.GetGenericArguments()[0], call.Expression); 666DbExpression argument = parent.TranslateExpression(call.Expression); 668return parent.CreateIsNullExpression(argument, call.Expression.Type).Not(); 686DbExpression argument = parent.TranslateExpression(call.Expression);
System\Data\Objects\ObjectContext.cs (1)
855bodyAsMember.Expression.NodeType != ExpressionType.Parameter)
System.Data.Linq (16)
DataServices.cs (3)
558if (memex == null || memex.Expression == null || 559memex.Expression.NodeType != ExpressionType.Parameter || memex.Expression.Type != type.Type) {
DataShape.cs (1)
173if (mex != null && mex.Expression.NodeType == ExpressionType.Parameter)
SqlClient\Query\Funcletizer.cs (4)
128this.isRemote |= (m.Expression != null && typeof(ITable).IsAssignableFrom(m.Expression.Type)); 283Expression exp = this.Visit(m.Expression); 284if (exp != m.Expression) {
SqlClient\Query\QueryConverter.cs (4)
1862CheckContext(this.VisitExpression(ma.Expression)); 1867if (ma.Member.Name == "Count" && TypeSystem.IsSequenceType(ma.Expression.Type)) { 1868return this.VisitAggregate(ma.Expression, null, SqlNodeType.Count, typeof(int)); 1871return sql.Member(VisitExpression(ma.Expression), ma.Member);
SqlClient\Query\Translator.cs (4)
226Expression[] keyValues = GetKeyValues(this.Visit(m.Expression), this.association.ThisKey); 229Expression exp = this.Visit(m.Expression); 230if (exp != m.Expression) { 231if (exp.Type != m.Expression.Type && m.Member.Name == "Count" && TypeSystem.IsSequenceType(exp.Type)) {
System.Data.Services (4)
parent\Client\System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (2)
313Expression exp = this.Visit(m.Expression); 314if (exp != m.Expression)
System\Data\Services\Internal\NeedSkipTokenVisitor.cs (1)
155if (m.Member.MemberType != MemberTypes.Property || m.Expression.NodeType != ExpressionType.Parameter)
System\Data\Services\Internal\PropertyAccessVisitor.cs (1)
95Expression operand = m.Expression;
System.Data.Services.Client (23)
System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (2)
313Expression exp = this.Visit(m.Expression); 314if (exp != m.Expression)
System\Data\Services\Client\ALinq\ExpressionWriter.cs (1)
264Expression e = this.Visit(m.Expression);
System\Data\Services\Client\ALinq\InputBinder.cs (4)
117memberRef.Expression != null) 121if (memberRef.Expression.NodeType == ExpressionType.Parameter) 123innerParamRef = (ParameterExpression)memberRef.Expression; 126memberRef = memberRef.Expression as MemberExpression;
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (6)
179if (me != null && ClientType.Create(me.Expression.Type, false).IsEntityType) 401if (!ClientType.CheckElementTypeIsEntity(m.Expression.Type) || IsCollectionProducingExpression(m.Expression)) 629if (ClientConvert.IsKnownNullableType(m.Expression.Type)) 635if (!ClientType.CheckElementTypeIsEntity(m.Expression.Type) || IsCollectionProducingExpression(m.Expression))
System\Data\Services\Client\ALinq\ProjectionRewriter.cs (1)
85if (m.Expression == this.oldLambdaParameter)
System\Data\Services\Client\ALinq\ResourceBinder.cs (5)
1196return Expression.Call(me.Expression, mi); 1386if (memberAccess.Expression == parameter) 1391memberAccess = StripTo<MemberExpression>(memberAccess.Expression); 1424e = me.Expression; 2158source = member.Expression;
System\Data\Services\Client\MemberAssignmentAnalysis.cs (1)
231if (this.pathFromEntity.Contains(m.Expression))
System\Data\Services\Client\ProjectionPathBuilder.cs (1)
176expression = member.Expression;
System\Data\Services\Client\ProjectionPlanCompiler.cs (2)
196Expression baseSourceExpression = m.Expression; 796Expression baseSourceExpression = m.Expression;