Reduce() private method

Removes redundant nodes from the subtree, and returns a reduced subtree.
private Reduce ( ) : RegexNode
return RegexNode
        internal void AddChild(RegexNode newChild)
        {
            if (this._children == null)
            {
                this._children = new ArrayList();
            }
            RegexNode node = newChild.Reduce();

            this._children.Add(node);
            node._next = this;
        }
Beispiel #2
0
        internal void AddChild(RegexNode newChild)
        {
            if (this._children == null)
            {
                this._children = new List <RegexNode>(4);
            }
            RegexNode item = newChild.Reduce();

            this._children.Add(item);
            item._next = this;
        }
Beispiel #3
0
        public void AddChild(RegexNode newChild)
        {
            if (Children == null)
            {
                Children = new List <RegexNode>(4);
            }

            RegexNode reducedChild = newChild.Reduce();

            Children.Add(reducedChild);
            reducedChild.Next = this;
        }
Beispiel #4
0
        internal void AddChild(RegexNode newChild)
        {
            RegexNode reducedChild;

            if (_children == null)
            {
                _children = new List <RegexNode>(4);
            }

            reducedChild = newChild.Reduce();

            _children.Add(reducedChild);
            reducedChild._next = this;
        }
        internal void AddChild(RegexNode newChild) {
            RegexNode reducedChild;

            if (_children == null)
                _children = new List<RegexNode>(4);

            reducedChild = newChild.Reduce();

            _children.Add(reducedChild);
            reducedChild._next = this;
        }
Beispiel #6
0
 internal void AddChild(RegexNode newChild)
 {
     if (this._children == null)
     {
         this._children = new ArrayList();
     }
     RegexNode node = newChild.Reduce();
     this._children.Add(node);
     node._next = this;
 }
 internal void AddChild(RegexNode newChild)
 {
     if (this._children == null)
     {
         this._children = new List<RegexNode>(4);
     }
     RegexNode item = newChild.Reduce();
     this._children.Add(item);
     item._next = this;
 }