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;
        }
示例#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;
        }
示例#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;
        }
示例#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;
        }
示例#5
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;
        }
示例#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;
 }