src/Shared/EntityFramework/Core/Query/InternalTrees/OpCopier.cs
// <summary>
// Make a copy of the current node. Also return an ordered list of the new
// Vars corresponding to the vars in "varList"
// </summary>
// <param name="cmd"> current command </param>
// <param name="node"> the node to clone </param>
// <param name="varList"> list of Vars </param>
// <param name="newVarList"> list of "new" Vars </param>
// <returns> the cloned node </returns>
Make a copy of the current node. Also return an ordered list of the new
Vars corresponding to the vars in "varList"
Make a copy of the current node . Also return an ordered list of the new Vars corresponding to the vars in " varList "
internal static Node Copy(Command cmd, Node node, VarList varList, out VarList newVarList)
        {
            VarMap varMap;
            var newNode = Copy(cmd, node, out varMap);
            newVarList = Command.CreateVarList();
            foreach (var v in varList)
            {
                var newVar = varMap[v];
                newVarList.Add(newVar);
            }
            return newNode;
        }
internal static Node Copy ( Command cmd , Node node , VarList varList , out VarList newVarList ) { VarMap varMap ; var newNode = Copy ( cmd , node , out varMap ) ; newVarList = Command . CreateVarList ( ) ; foreach ( var v in varList ) { var newVar = varMap [ v ] ; newVarList . Add ( newVar ) ; } return newNode ; }
Make a copy of the current node.
Make a copy of the current node .
the cloned node
the cloned node
cmd
Command
None
node
Node
the node to clone
the node to clone
varList
VarList
list of Vars
list of Vars
VarList
out
<not_specific>
newVarList
<not_specific>
list of "new" Vars
list of " new " Vars