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