void SetStopVisitMark(QilNode n, bool stop) { if (n.Type != QilNodeType.For && n.Type != QilNodeType.Let) { XsltAnnotation.Write(n)[0] = (stop ? /*any object*/ fixupCurrent : null); } else { // we shouldn't alter annotation of "reference" nodes (Iterators, Functions, ...) } }
bool GetStopVisitMark(QilNode n) { return(XsltAnnotation.Write(n)[0] != null); }