Пример #1
0
 /// <summary>
 ///     Default handler for a node. Simply visits the children, then handles any var
 ///     remapping, and then recomputes the node info
 /// </summary>
 /// <param name="n"> </param>
 /// <returns> </returns>
 private Node VisitDefaultForAllNodes(Node n)
 {
     VisitChildren(n);
     m_varRemapper.RemapNode(n);
     Command.RecomputeNodeInfo(n);
     return(n);
 }
 // <summary>
 // Callback function to invoke *before* rules are applied.
 // Calls the VarRemapper to update any Vars in this node, and recomputes
 // the nodeinfo
 // </summary>
 internal override void PreProcess(Node n)
 {
     m_remapper.RemapNode(n);
     Command.RecomputeNodeInfo(n);
 }