Exemple #1
0
 public void Add(ScopeNode node)
 {
     if (nested == null)
     {
         nested = new List <ScopeNode>();
     }
     nested.Add(node);
 }
Exemple #2
0
        private void AddNode(ScopeNode node)
        {
            if (scopes.Count > 0)
            {
                ScopeNode current = scopes.Peek();
                current.Add(node);
            }
            else
            {
                root.Add(node);
            }

            scopes.Push(node);
        }