Ejemplo n.º 1
0
 /// <summary>
 /// </summary>
 public void Reset()
 {
     current = root;
     path    = new Stack <SymbolContext <SymbolT, CtxKey> >(1024);
     DefaultContextTraverser = null;
     ident = "";
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Enter next context, starting from the current if the traversing has not been started
 /// </summary>
 public bool EnterNextContext()
 {
     if (DefaultContextTraverser == null)
     {
         DefaultContextTraverser = GetContextEnumerator();
     }
     return(DefaultContextTraverser.MoveToNextContext());
 }
Ejemplo n.º 3
0
        //
        // Traverse the whole Context Tree, from the current context to the bottom,
        // entering and exiting each context in turn
        //

        /// <summary>
        /// Restart context iteration
        /// </summary>
        public bool RestartContextIterator()
        {
            DefaultContextTraverser = null;
            return(EnterNextContext());
        }