204 references to Body
System.Activities (28)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (3)
183
FindTypeReferences(lambda.
Body
, typeReferences);
315
FindTypeReferences(lambda.
Body
, typeReferences);
456
FindTypeReferences(lambda.
Body
, typeReferences);
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (6)
323
finalBody = Rewrite(rawTree.
Body
, null, false, out abort);
401
finalBody = Rewrite(lambda.
Body
, null, false, out abort);
461
finalBody = Rewrite(rawTree.
Body
, null, isLocationReference, out abort);
571
finalBody = Rewrite(lambda.
Body
, null, isLocationReference, out abort);
784
expr1 = Rewrite(lambda.
Body
, lambda.Parameters, isLocationExpression, out abort);
1256
return FindParameter(lambda.
Body
);
System\Activities\Expressions\ExpressionServices.cs (4)
36
TryConvert<TResult>(expression.
Body
, true, out result);
49
return TryConvert<TResult>(expression.
Body
, false, out result) == null;
157
TryConvertReference<TResult>(expression.
Body
, true, out result);
170
return TryConvertReference<TResult>(expression.
Body
, false, out result) == null;
System\Activities\ExpressionUtilities.cs (14)
73
Expression body = expression.
Body
;
159
Expression body = expression.
Body
;
280
Fx.Assert(expression.
Body
.NodeType == ExpressionType.ArrayIndex, "ArrayIndex expression required");
281
BinaryExpression arrayIndexExpression = (BinaryExpression)expression.
Body
;
342
Fx.Assert(expression.
Body
.NodeType == ExpressionType.MemberAccess, "field expression required");
343
MemberExpression memberExpression = (MemberExpression)expression.
Body
;
495
Fx.Assert(expression.
Body
.NodeType == ExpressionType.Call, "Call expression required.");
497
MethodCallExpression callExpression = (MethodCallExpression)expression.
Body
;
662
Fx.Assert(expression.
Body
.NodeType == ExpressionType.Call, "Call expression required.");
663
MethodCallExpression callExpression = (MethodCallExpression)expression.
Body
;
737
Fx.Assert(expression.
Body
.NodeType == ExpressionType.MemberAccess, "member access expression required");
738
MemberExpression memberExpression = (MemberExpression)expression.
Body
;
977
hasChanged |= TryRewriteLambdaExpression(lambda.
Body
, out other, publicAccessor, isLocationExpression);
1981
originalLambdaExpression.
Body
,
System\Activities\XamlIntegration\CompiledDataContext.cs (1)
79
lambdaExpression.
Body
,
System.Core (15)
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
1138
Visit(lambda.
Body
);
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (1)
228
public Expression Body { get { return _node.
Body
; } }
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (1)
356
Visit(node.
Body
);
Microsoft\Scripting\Ast\ExpressionVisitor.cs (1)
368
return node.Update(Visit(node.
Body
), VisitAndConvert(node.Parameters, "VisitLambda"));
Microsoft\Scripting\Ast\LambdaExpression.cs (2)
223
/// <param name="body">The <see cref="LambdaExpression.
Body
">Body</see> property of the result.</param>
227
if (body ==
Body
&& parameters == Parameters) {
Microsoft\Scripting\Compiler\ExpressionQuoter.cs (2)
79
Expression b = Visit(node.
Body
);
81
if (b == node.
Body
) {
Microsoft\Scripting\Compiler\LambdaCompiler.ControlFlow.cs (1)
228
var expression = lambda.
Body
;
Microsoft\Scripting\Compiler\LambdaCompiler.Lambda.cs (2)
181
EmitExpressionAsVoid(_lambda.
Body
, flags);
183
EmitExpression(_lambda.
Body
, flags);
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
110
Result body = RewriteExpressionFreeTemps(lambda.
Body
, _startingStack);
Microsoft\Scripting\Compiler\VariableBinder.cs (1)
146
body = new ReadOnlyCollection<Expression>(new[] { lambda.
Body
});
System\Linq\Expressions\ExpressionVisitor.cs (2)
263
Expression body = this.Visit(lambda.
Body
);
264
if (body != lambda.
Body
) {
System.Data.Entity (25)
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (1)
271
Expression body = Visit(lambda.
Body
);
System\Data\Objects\ELinq\CompiledELinqQueryState.cs (2)
220
return new ExpressionConverter(funcletizer, lambda.
Body
);
245
return replacer.Visit(query.
Body
);
System\Data\Objects\ELinq\EntityExpressionVisitor.cs (2)
308
Expression body = this.Visit(lambda.
Body
);
309
if (body != lambda.
Body
)
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
827
DbExpression result = TranslateExpression(lambda.
Body
);
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (3)
409
if (lambda.
Body
.NodeType == ExpressionType.Coalesce && lambda.
Body
.Type == typeof(bool))
411
BinaryExpression coalesce = (BinaryExpression)lambda.
Body
;
System\Data\Objects\ELinq\MethodCallTranslator.cs (11)
288
selectorLambda.
Body
.NodeType != ExpressionType.New)
293
var newExpression = (NewExpression)selectorLambda.
Body
;
1612
var joinCondition = parent.CreateEqualsExpression(outerKeySelector, innerKeySelector, EqualsPattern.PositiveNullEqualityNonComposable, outerLambda.
Body
.Type, innerLambda.
Body
.Type);
1645
CqtExpression selector = parent.TranslateExpression(selectorLambda.
Body
);
2572
resultProjection = parent.TranslateSet(resultSelector.
Body
);
2830
resultSelectorLinqExpression.
Body
);
2880
parent.CreateEqualsExpression(outerSelector, innerSelector, EqualsPattern.PositiveNullEqualityNonComposable, outerLambda.
Body
.Type, innerLambda.
Body
.Type));
2903
CqtExpression selectorProject = parent.TranslateExpression(linqSelector.
Body
);
3031
CqtExpression lambda = parent.TranslateExpression(lambdaExpression.
Body
);
System\Data\Objects\ELinq\ReflectionUtil.cs (1)
392
expression = ((LambdaExpression)expression).
Body
;
System\Data\Objects\ELinq\SpatialMethodCallTranslator.cs (2)
45
MethodInfo method = ((MethodCallExpression)lambda.
Body
).Method;
54
MethodInfo method = ((MethodCallExpression)lambda.
Body
).Method;
System\Data\Objects\ELinq\SpatialPropertyTranslator.cs (1)
44
MemberExpression memberEx = (MemberExpression)lambda.
Body
;
System\Data\Objects\ObjectContext.cs (1)
845
var body = selector.
Body
;
System.Data.Linq (63)
ChangeDirector.cs (3)
239
return Expression.Call(typeof(DataManipulation), "Insert", new Type[] { item.Type.InheritanceRoot.Type, resultSelector.
Body
.Type }, Expression.Constant(item.Current), resultSelector);
336
return Expression.Call(typeof(DataManipulation), "Update", new Type[] { rowTypeRoot.Type, resultSelector.
Body
.Type }, Expression.Constant(tracked.Current), check, resultSelector);
339
return Expression.Call(typeof(DataManipulation), "Update", new Type[] { rowTypeRoot.Type, resultSelector.
Body
.Type }, Expression.Constant(tracked.Current), resultSelector);
CompiledQuery.cs (1)
243
return typeof(ITable).IsAssignableFrom(query.
Body
.Type);
DataServices.cs (2)
266
return Expression.Call(typeof(Queryable), "Select", new Type[] { elementType, selector.
Body
.Type }, query, selector);
525
if (this.GetKeysFromPredicate(type, keys, predicate.
Body
)
DataShape.cs (3)
65
Expression op = expression.
Body
;
166
Expression body = lambda.
Body
;
259
if (!typeof(IEnumerable).IsAssignableFrom(subquery.
Body
.Type)) {
SqlClient\Query\Funcletizer.cs (2)
385
Expression body = this.Visit(lambda.
Body
);
386
if (body != lambda.
Body
) {
SqlClient\Query\QueryConverter.cs (41)
332
return this.VisitInner(lambda.
Body
);
396
return this.VisitInner(lambda.
Body
);
418
SqlNode project = this.Visit(selector.
Body
);
422
return new SqlSelect(sql.SubSelect(SqlNodeType.Multiset, pselect, selector.
Body
.Type), alias, this.dominatingExpression);
466
SqlNode colSelectorNode = this.VisitSequence(colSelector.
Body
);
476
projection = this.VisitExpression(resultSelector.
Body
);
492
SqlExpression outerKey = this.VisitExpression(outerKeySelector.
Body
);
495
SqlExpression innerKey = this.VisitExpression(innerKeySelector.
Body
);
499
SqlExpression result = this.VisitExpression(resultSelector.
Body
);
524
SqlExpression outerKey = this.VisitExpression(outerKeySelector.
Body
);
527
SqlExpression innerKey = this.VisitExpression(innerKeySelector.
Body
);
538
SqlExpression result = this.VisitExpression(resultSelector.
Body
);
632
select.Where = this.VisitExpression(predicate.
Body
);
673
Expression.ArrayIndex(cpArray.Accessor.
Body
, Expression.Constant(vIndex.Value, vIndex.ClrType)),
714
Expression.Lambda(Expression.Convert(cp.Accessor.
Body
, type), cp.Accessor.Parameters.ToArray()),
1485
if (IsGrouping(expression.
Body
.Type)) {
1488
if (!this.typeProvider.From(expression.
Body
.Type).IsOrderable) {
1489
throw Error.TypeCannotBeOrdered(expression.
Body
.Type);
1501
SqlExpression expr = this.VisitExpression(expression.
Body
);
1508
if (IsGrouping(expression.
Body
.Type)) {
1511
if (!this.typeProvider.From(expression.
Body
.Type).IsOrderable) {
1512
throw Error.TypeCannotBeOrdered(expression.
Body
.Type);
1519
SqlExpression expr = this.VisitExpression(expression.
Body
);
1540
SqlExpression keyExpr = this.VisitExpression(keyLambda.
Body
);
1550
SqlExpression keyDup = this.VisitExpression(keyLambda.
Body
);
1557
elemExpr = this.VisitExpression(elemLambda.
Body
);
1561
elemOnGroupSource = this.VisitExpression(elemLambda.
Body
);
1604
SqlExpression resultExpr = this.VisitExpression(resultSelector.
Body
);
1645
if (!outerNode && !isCount && (lambda == null || (lambda.Parameters.Count == 1 && lambda.Parameters[0] == lambda.
Body
)) &&
1649
lambda = Expression.Lambda(selectionLambda.Type, selectionLambda.
Body
, selectionLambda.Parameters);
1655
if (lambda != null && !TypeSystem.IsSimpleType(lambda.
Body
.Type)) {
1656
throw Error.CannotAggregateType(lambda.
Body
.Type);
1673
SqlExpression exp = (lambda != null) ? this.VisitExpression(lambda.
Body
) : null;
1707
exp = this.VisitExpression(lambda.
Body
);
1726
SqlExpression exp = (lambda != null) ? this.VisitExpression(lambda.
Body
) : null;
1824
SqlExpression cond = lambda != null ? this.VisitExpression(lambda.
Body
) : null;
2375
select.Where = this.VisitExpression(lambda.
Body
);
2432
isDbGenOnly = this.IsDbGeneratedKeyProjectionOnly(resultSelector.
Body
, id);
2447
SqlExpression projection = this.VisitExpression(resultSelector.
Body
);
2482
SqlExpression proj = this.VisitExpression(rs.
Body
);
2617
seq = Expression.Call(typeof(Enumerable), "Select", new Type[] { rowType, resultSelector.
Body
.Type }, seq, resultSelector);
SqlClient\Query\SqlBinder.cs (1)
940
Expression.MakeMemberAccess(cp.Accessor.
Body
, m.Member),
SqlClient\Query\SqlMethodCallConverter.cs (4)
1520
Expression.Invoke(Expression.Constant(getStringContainsPatternForced), cp.Accessor.
Body
, Expression.Constant('~')),
1554
Expression.Invoke(Expression.Constant(getStringStartsWithPatternForced), cp.Accessor.
Body
, Expression.Constant('~')),
1588
Expression.Invoke(Expression.Constant(getStringEndsWithPatternForced), cp.Accessor.
Body
, Expression.Constant('~')),
2487
Expression.Call(typeof(SqlHelpers), "TranslateVBLikePattern", Type.EmptyTypes, cp.Accessor.
Body
, Expression.Constant('~')),
SqlClient\Query\Translator.cs (1)
158
return rc.Visit(subquery.
Body
);
SqlClient\SqlProvider.cs (5)
816
query = lambda.
Body
;
898
query = lambda.
Body
;
1143
query = lambda.
Body
;
1330
query = lambda.
Body
;
1396
query = lambda.
Body
;
System.Data.Services (25)
parent\Client\System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (2)
499
Expression body = this.Visit(lambda.
Body
);
500
if (body != lambda.
Body
)
System\Data\Services\DataServiceConfiguration.cs (2)
511
((LambdaExpression)predicate).
Body
, // expression
514
filter = Expression.Lambda(Expression.And(filter.
Body
, adjustedPredicate), parameter);
System\Data\Services\ExpandSegment.cs (3)
202
if (lambda.
Body
.Type != typeof(bool) && lambda.
Body
.Type != typeof(bool?))
205
Strings.ExpandSegment_FilterBodyShouldReturnBool(lambda.
Body
.Type), "filter");
System\Data\Services\Internal\NeedSkipTokenVisitor.cs (2)
83
visitor.Visit(l.
Body
);
110
visitor.Visit(l.
Body
);
System\Data\Services\Parsing\RequestQueryParser.cs (2)
51
Type selectorType = selectorLambda.
Body
.Type;
284
((LambdaExpression)v.Order.Expression).
Body
,
System\Data\Services\Providers\BasicExpandProvider.cs (9)
236
orderer = Expression.Lambda(ParameterReplacerVisitor.Replace(e.
Body
, e.Parameters[0], replaceExpression), parameter);
239
.MakeGenericMethod(query.ElementType, orderer.
Body
.Type)
277
ParameterReplacerVisitor.Replace(e.
Body
, e.Parameters[0], parameter),
281
.MakeGenericMethod(query.ElementType, orderer.
Body
.Type)
969
ExpandNodeAnnotationVisitor.AnnotateExpression(lambda.
Body
, lambda.Parameters[0], this);
971
AddPropertyAccessesAsProjectedProperties(lambda.
Body
, expandNodeAnnotations);
1515
Expression orderExpression = ParameterReplacerVisitor.Replace(orderLamba.
Body
, orderLamba.Parameters[0], source);
1750
orderLambda.
Body
,
1806
skipTokenTypes[i + 1] = ((LambdaExpression)this.OrderingInfo.OrderingExpressions[i].Expression).
Body
.Type;
System\Data\Services\RequestQueryProcessor.cs (4)
224
filterLambda.
Body
,
1221
skipTokenTypes[i + 1] = ((LambdaExpression)ordering.Expression).
Body
.Type;
1247
Expression source = ParameterReplacerVisitor.Replace(sourceLambda.
Body
, sourceLambda.Parameters[0], expandParameter);
1271
oldExpression.
Body
,
System\Data\Services\RequestUriProcessor.cs (1)
1051
ParameterReplacerVisitor.Replace(input.
Body
, input.Parameters[0], p),
System.Data.Services.Client (44)
System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (2)
499
Expression body = this.Visit(lambda.
Body
);
500
if (body != lambda.
Body
)
System\Data\Services\Client\ALinq\ExpressionNormalizer.cs (3)
489
if (lambda.
Body
.NodeType == ExpressionType.Coalesce && lambda.
Body
.Type == typeof(bool))
491
BinaryExpression coalesce = (BinaryExpression)lambda.
Body
;
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (12)
49
if (le.
Body
.NodeType == ExpressionType.Constant)
51
if (ClientType.CheckElementTypeIsEntity(le.
Body
.Type))
56
re.Projection = new ProjectionQueryOptionExpression(le.
Body
.Type, le, new List<string>());
60
if (le.
Body
.NodeType == ExpressionType.MemberInit || le.
Body
.NodeType == ExpressionType.New)
69
Expression withoutConverts = SkipConverts(le.
Body
);
82
bool knownEntityType = ClientType.CheckElementTypeIsEntity(e.
Body
.Type);
87
NonEntityProjectionAnalyzer.Analyze(e.
Body
, pb);
91
switch (e.
Body
.NodeType)
94
EntityProjectionAnalyzer.Analyze((MemberInitExpression)e.
Body
, pb);
103
NonEntityProjectionAnalyzer.Analyze(e.
Body
, pb);
225
resource.Projection = new ProjectionQueryOptionExpression(lambda.
Body
.Type, lambda, pb.ProjectionPaths.ToList());
System\Data\Services\Client\ALinq\ProjectionRewriter.cs (2)
67
Expression body = this.Visit(lambda.
Body
);
70
Type delegateType = typeof(Func<,>).MakeGenericType(new Type[] { newLambdaParameter.Type, lambda.
Body
.Type });
System\Data\Services\Client\ALinq\ResourceBinder.cs (16)
109
MethodCallExpression call = StripTo<MethodCallExpression>(projection.Selector.
Body
);
157
AddConjuncts(le.
Body
, conjuncts);
507
if (ExpressionPresenceVisitor.IsExpressionPresent(resultLambda.Parameters[0], resultLambda.
Body
))
517
Expression collectorReference = InputBinder.Bind(collectionLambda.
Body
, source, collectionLambda.Parameters[0], referencedExpressions);
538
resultLambda = Expression.Lambda(resultLambda.
Body
, new ParameterExpression[] { resultLambda.Parameters[1] });
670
Expression navPropRef = InputBinder.Bind(collectorSelector.
Body
, input, collectorSelector.Parameters[0], referencedInputs);
732
selector = Expression.Lambda(selector.
Body
, new ParameterExpression[] { selector.Parameters[1] });
1065
bound = InputBinder.Bind(le.
Body
, input, le.Parameters[0], referencedInputs);
1382
Expression body = StripCastMethodCalls(lambda.
Body
);
1609
return parameter == StripTo<ParameterExpression>(lambda.
Body
);
1644
Expression potentialRef = selector.
Body
;
1662
return (le.
Body
== le.Parameters[1]);
1709
if (resultSelector.
Body
.NodeType != ExpressionType.New)
1715
NewExpression ne = (NewExpression)resultSelector.
Body
;
1878
MemberInitExpression mie = StripTo<MemberInitExpression>(e.
Body
);
1886
return MatchResource(source, out resource) && (e.
Body
is NewExpression);
System\Data\Services\Client\ProjectionPathBuilder.cs (1)
143
Type projectionType = lambda.
Body
.Type;
System\Data\Services\Client\ProjectionPlanCompiler.cs (8)
81
projection.
Body
.NodeType == ExpressionType.Constant ||
82
projection.
Body
.NodeType == ExpressionType.MemberInit ||
83
projection.
Body
.NodeType == ExpressionType.MemberAccess ||
84
projection.
Body
.NodeType == ExpressionType.Convert ||
85
projection.
Body
.NodeType == ExpressionType.ConvertChecked ||
86
projection.
Body
.NodeType == ExpressionType.New,
101
result.ProjectedType = projection.
Body
.Type;
361
Expression body = this.Visit(lambda.
Body
);
System.Web.DynamicData (1)
DynamicData\Util\Misc.cs (1)
250
var expression = Expression.Call(typeof(Queryable), ordering, new Type[] { query.ElementType, lambda.
Body
.Type }, query.Expression, lambda);
System.Web.Extensions (3)
UI\WebControls\Dynamic.cs (3)
47
new Type[] { source.ElementType, lambda.
Body
.Type },
103
new Type[] { source.ElementType, keyLambda.
Body
.Type, elementLambda.
Body
.Type },