示例#1
0
                public Enumerator(ref SyntaxTokenList list)
                    : this()
                {
                    if (list.Any())
                    {
                        this.parent           = list.parent;
                        this.singleNodeOrList = list.node;
                        this.baseIndex        = list.index;
                        this.count            = list.Count;

                        this.index   = this.count;
                        this.current = null;

                        var last = list.Last();
                        this.position = last.Position + last.FullWidth;
                    }
                }
                public Enumerator(ref SyntaxTokenList list)
                    : this()
                {
                    if (list.Any())
                    {
                        _parent           = list._parent;
                        _singleNodeOrList = list.Node;
                        _baseIndex        = list._index;
                        _count            = list.Count;

                        _index   = _count;
                        _current = null;

                        var last = list.Last();
                        _position = last.Position + last.FullWidth;
                    }
                }