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