Beispiel #1
0
        public void CreateScopeTree()
        {
            ScopeTreeNode node = new ScopeTreeNode();
            node.Parent = current;
            node.SiblingIndex = current.ChildrenNode.Count;
            current.ChildrenNode.Add(node);

            current = node;
        }
Beispiel #2
0
 public void BackScopeTree()
 {
     if (current.Parent != null)
         current = current.Parent;
 }
Beispiel #3
0
 public LocalScopeTree()
 {
     root = new ScopeTreeNode();
     current = root;
 }