11 writes to Child1
System.Data.Entity (11)
System\Data\Query\PlanCompiler\NestPullup.cs (2)
1139
projectNode.
Child1
= Command.CreateNode(projectNode.Child1.Op, newChildren);
1450
projectNode.
Child1
= Command.CreateNode(projectNode.Child1.Op, newProjectOpChildren);
System\Data\Query\PlanCompiler\PreProcessor.cs (1)
2317
n.
Child1
= VisitNode(n.Child1);
System\Data\Query\PlanCompiler\ProjectionPruner.cs (2)
607
n.
Child1
= VisitNode(n.Child1);
718
n.
Child1
= VisitNode(n.Child1);
System\Data\Query\PlanCompiler\TransformationRules.cs (6)
2164
projectNode.
Child1
= newVarDefListNode;
2291
n.
Child1
= newVarDefListNode;
2653
applyNode.
Child1
= projectNode.Child0;
2788
applyNode.
Child1
= dummyProjectNode != null ? dummyProjectNode : projectNode.Child0;
3313
applyNode.
Child1
= joinNode.Child1;
3946
n.
Child1
= newVarDefListNode;
139 references to Child1
System.Data.Entity (139)
System\Data\Query\InternalTrees\Dump.cs (1)
185
VisitNode(n.
Child1
);
System\Data\Query\InternalTrees\NodeInfo.cs (8)
620
foreach (Node chi in n.
Child1
.Children)
645
Dictionary<Var, Var> varRenameMap = ComputeVarRemappings(n.
Child1
);
681
NodeInfo predNodeInfo = GetNodeInfo(n.
Child1
);
705
ConstantPredicateOp predicate = n.
Child1
.Op as ConstantPredicateOp;
747
foreach (Node chi in n.
Child1
.Children)
875
ExtendedNodeInfo rightRelOpNodeInfo = GetExtendedNodeInfo(n.
Child1
);
958
ExtendedNodeInfo rightRelOpNodeInfo = GetExtendedNodeInfo(n.
Child1
);
1020
ExtendedNodeInfo rightChildNodeInfo = GetExtendedNodeInfo(n.
Child1
);
System\Data\Query\PlanCompiler\AggregatePushdown.cs (2)
437
if (VisitDefault(currentNode.
Child1
) == null)
441
foreach (Node definitionNode in currentNode.
Child1
.Children)
System\Data\Query\PlanCompiler\CTreeGenerator.cs (7)
1453
EnterVarDefListScope(n.
Child1
);
1490
DbExpression predicateExpr = VisitNode(n.
Child1
);
1590
bool nullSkip = (OpType.Null == n.
Child1
.Op.OpType);
1681
EnterVarDefListScope(n.
Child1
);
1879
RelOpInfo rightInfo = VisitJoinInput(joinNode.
Child1
);
2021
RelOpInfo applyInfo = EnterExpressionBindingScope(applyNode.
Child1
, false);
2149
DbExpression right = VisitSetOpArgument(n.
Child1
, op.Outputs, op.VarMap[1]);
System\Data\Query\PlanCompiler\JoinGraph.cs (2)
655
ExtendedNodeInfo rightInputNodeInfo = m_command.GetExtendedNodeInfo(joinNode.
Child1
);
701
AugmentedNode right = BuildAugmentedNodeTree(node.
Child1
);
System\Data\Query\PlanCompiler\KeyPullup.cs (1)
143
Dictionary<Var, Var> varRenameMap = NodeInfoVisitor.ComputeVarRemappings(n.
Child1
);
System\Data\Query\PlanCompiler\NestPullup.cs (7)
500
|| ((op.OpType == OpType.LeftOuterJoin || op.OpType == OpType.OuterApply) && n.
Child1
.Op.OpType == OpType.MultiStreamNest))
740
Command.CreateGroupByOp(op.Keys, groupByOutputs), n.Child0, n.
Child1
, n.Child2);
994
foreach (Node chi in projectNode.
Child1
.Children)
1139
projectNode.Child1 = Command.CreateNode(projectNode.
Child1
.Op, newChildren);
1416
List<Node> newProjectOpChildren = new List<Node>(projectNode.
Child1
.Children.Count);
1417
foreach (Node chi in projectNode.
Child1
.Children)
1450
projectNode.Child1 = Command.CreateNode(projectNode.
Child1
.Op, newProjectOpChildren);
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (3)
1996
Node resultNode = thenClauseIsNull ? n.Child2 : n.
Child1
;
2118
md.TypeUsage child1Type = ((ScalarOp)n.
Child1
.Op).Type;
2148
GetPropertyValues(child1TypeInfo, OperationKind.Equality, n.
Child1
, false, out properties2, out values2);
System\Data\Query\PlanCompiler\PlanCompilerUtil.cs (3)
50
if (!n.
Child1
.Op.Type.EdmEquals(op.Type) || !n.Child2.Op.Type.EdmEquals(op.Type))
56
if (n.
Child1
.Op.OpType == OpType.Null)
153
node => (new[] {node.Child0, node.
Child1
}));
System\Data\Query\PlanCompiler\Predicate.cs (6)
223
if (IsKeyPredicate(part.Child0, part.
Child1
, keyVars, definitions, out keyVar))
227
else if (IsKeyPredicate(part.
Child1
, part.Child0, keyVars, definitions, out keyVar))
279
InitFromAndTree(andTree.
Child1
);
354
VarRefOp rightVarOp = simplePredicateNode.
Child1
.Op as VarRefOp;
438
varRefOp = simplePredNode.
Child1
.Op as VarRefOp;
456
ConstantBaseOp constantOp = simplePredNode.
Child1
.Op as ConstantBaseOp;
System\Data\Query\PlanCompiler\PreProcessor.cs (4)
409
DiscriminatedNewEntityOp discriminatedNewEntityOp = viewNode.
Child1
.Child0.Child0.Op as DiscriminatedNewEntityOp;
2270
IsOfOp isOfOp = n.
Child1
.Op as IsOfOp;
2286
VarRefOp varRefOp = n.
Child1
.Child0.Op as VarRefOp;
2317
n.Child1 = VisitNode(n.
Child1
);
System\Data\Query\PlanCompiler\ProjectionPruner.cs (5)
422
RemoveRedundantConstantKeys(op.Keys, ((ProjectOp)n.Child0.Op).Outputs, n.Child0.
Child1
);
494
RemoveRedundantConstantKeys(op.Keys, op.Outputs, n.
Child1
);
574
result.Child0, result.
Child1
, result.Child2);
607
n.Child1 = VisitNode(n.
Child1
);
718
n.Child1 = VisitNode(n.
Child1
);
System\Data\Query\PlanCompiler\PropertyPushdownHelper.cs (5)
587
VisitNode(n.
Child1
); // the right input
619
VisitNode(n.
Child1
); // visit predicate first
668
VisitNode(n.
Child1
); // the right input
679
VisitNode(n.
Child1
); // visit projections first
776
VisitNode(n.
Child1
);
System\Data\Query\PlanCompiler\TransformationRules.cs (85)
214
if (!this.m_relOpAncestors.Contains(applyAncestor.
Child1
) && HasOpNotSafeForNullSentinelValueChange(applyAncestor.
Child1
))
880
Node firstThenNode = caseOpNode.
Child1
;
1078
bool? comparisonStatus = node.Child0.Op.IsEquivalent(node.
Child1
.Op);
1132
InternalConstantOp patternOp = (InternalConstantOp)n.
Child1
.Op;
1219
return ProcessLogOpOverConstant(context, node, node.
Child1
, node.Child0, out newNode);
1223
return ProcessLogOpOverConstant(context, node, node.Child0, node.
Child1
, out newNode);
1227
return ProcessLogOpOverConstant(context, node, node.
Child1
, node.Child0, out newNode);
1231
return ProcessLogOpOverConstant(context, node, node.Child0, node.
Child1
, out newNode);
1392
Node pushdownPredicateNode = filterNode.
Child1
;
1435
filterNode.Child0.
Child1
, filterNode.
Child1
);
1460
Node predicateNode = filterNode.
Child1
;
1485
Dictionary<Var, Node> varMap = trc.GetVarMap(projectNode.
Child1
, varRefMap);
1500
Node newProjectNode = trc.Command.CreateNode(projectNode.Op, newFilterNode, projectNode.
Child1
);
1573
newSetOpChildren.Add(setOpNode.
Child1
);
1709
if (!trc.IsScalarOpTree(filterNode.
Child1
, varRefMap))
1732
Dictionary<Var, Node> varMap = trc.GetVarMap(groupByNode.
Child1
, varRefMap);
1743
Node newGroupByNode = trc.Command.CreateNode(groupByNode.Op, subFilterNode, groupByNode.
Child1
, groupByNode.Child2);
1809
Node rightInputNode = joinNode.
Child1
;
1820
Predicate predicate = new Predicate(command, filterNode.
Child1
);
1961
Node applyRightInputNode = applyNode.
Child1
;
1970
Predicate predicate = new Predicate(command, filterNode.
Child1
);
1974
Node newFilterNode = command.CreateNode(command.CreateFilterOp(), newApplyNode, filterNode.
Child1
);
2003
ConstantPredicateOp predOp = (ConstantPredicateOp)n.
Child1
.Op;
2114
Node varDefListNode = projectNode.
Child1
;
2130
Dictionary<Var, Node> varMap = trc.GetVarMap(subProjectNode.
Child1
, varRefMap);
2150
foreach (Node chi in subProjectNode.
Child1
.Children)
2225
if (n.
Child1
.Children.Count == 0)
2240
foreach (Node varDefNode in n.
Child1
.Children)
2268
foreach (Node varDefNode in n.
Child1
.Children)
2330
Node varDefListNode = n.
Child1
;
2348
if (!canChangeNullSentinelValue || !TransformationRulesContext.TryGetInt32Var(n.
Child1
.Children.Where(child => child.Child0.Op.OpType == OpType.Constant || child.Child0.Op.OpType == OpType.InternalConstant).Select(child => ((VarDefOp)(child.Op)).Var), out inputSentinel))
2350
inputSentinel = n.
Child1
.Children.Where(child => child.Child0.Op.OpType == OpType.NullSentinel).Select(child => ((VarDefOp)(child.Op)).Var).FirstOrDefault();
2360
for (int i = n.
Child1
.Children.Count-1; i >= 0; i--)
2362
Node varDefNode = n.
Child1
.Children[i];
2376
n.
Child1
.Children.RemoveAt(i);
2385
command.RecomputeNodeInfo(n.
Child1
);
2436
Node filterNode = applyNode.
Child1
;
2468
newNode = command.CreateNode(joinOp, applyNode.Child0, filterNode.Child0, filterNode.
Child1
);
2514
Node projectNode = applyNode.
Child1
;
2567
Node varDefNode = projectNode.
Child1
.Child0;
2577
command.RecomputeNodeInfo(projectNode.
Child1
);
2588
NodeInfo filterPredicateNodeInfo = command.GetNodeInfo(filterNode.
Child1
);
2605
Node joinNode = command.CreateNode(command.CreateLeftOuterJoinOp(), applyNode.Child0, joinNodeRightInput, filterNode.
Child1
);
2641
Node projectNode = applyNode.
Child1
;
2706
Node projectNode = applyNode.
Child1
;
2707
Node varDefListNode = projectNode.
Child1
;
2830
Node applyRightChild = applyNode.
Child1
;
2919
ExtendedNodeInfo applyRightChildNodeInfo = command.GetExtendedNodeInfo(applyNode.
Child1
);
2922
if (!CanRewriteApply(applyNode.
Child1
, applyRightChildNodeInfo, applyKind))
2942
trc.RemapSubtree(applyNode.
Child1
);
2943
VarDefinitionRemapper.RemapSubtree(applyNode.
Child1
, command, oldVar);
2945
Node elementNode = command.CreateNode(command.CreateElementOp(oldVar.Type), applyNode.
Child1
);
3303
Node joinNode = applyNode.
Child1
;
3313
applyNode.Child1 = joinNode.
Child1
;
3417
(joinNode.
Child1
.Op.OpType == OpType.Project))
3420
ProjectOp projectOp2 = (ProjectOp)joinNode.
Child1
.Op;
3422
Dictionary<Var, Node> varMap1 = trc.GetVarMap(joinNode.Child0.
Child1
, varRefMap);
3423
Dictionary<Var, Node> varMap2 = trc.GetVarMap(joinNode.
Child1
.
Child1
, varRefMap);
3433
newJoinNode = context.Command.CreateNode(joinNode.Op, joinNode.Child0.Child0, joinNode.
Child1
.Child0, joinConditionNode);
3437
newJoinNode = context.Command.CreateNode(joinNode.Op, joinNode.Child0.Child0, joinNode.
Child1
.Child0);
3446
varDefNodes.AddRange(joinNode.Child0.
Child1
.Children);
3447
varDefNodes.AddRange(joinNode.
Child1
.
Child1
.Children);
3473
Dictionary<Var, Node> varMap = trc.GetVarMap(projectNode.
Child1
, varRefMap);
3490
newNode = context.Command.CreateNode(projectOp, joinNode, projectNode.
Child1
);
3562
predicateNode = joinNode.Child0.
Child1
;
3567
Node newRightInput = joinNode.
Child1
;
3568
if (joinNode.
Child1
.Op.OpType == OpType.Filter && joinNode.Op.OpType != OpType.LeftOuterJoin)
3572
predicateNode = joinNode.
Child1
.
Child1
;
3578
predicateNode, joinNode.
Child1
.
Child1
);
3580
newRightInput = joinNode.
Child1
.Child0; // bypass the filter
3649
newNode = joinNode.
Child1
;
3724
Predicate predicate = new Predicate(context.Command, singleRowNode.Child0.
Child1
);
3815
bool rightChildIsEmptySet = context.Command.GetExtendedNodeInfo(setOpNode.
Child1
).MaxRows == RowCount.Zero;
3883
if (n.
Child1
.Children.Count == 0)
3899
foreach (Node varDefNode in n.
Child1
.Children)
3926
foreach (Node varDefNode in n.
Child1
.Children)
3979
Node projectNodeVarDefList = projectNode.
Child1
;
3981
Node keys = n.
Child1
;
4186
newNode = command.CreateNode(newOp, n.Child0, n.
Child1
);