Lines Matching refs:elements
39 * A generic list of elements tracked in an alternative to be used in
46 * Once you start next()ing, do not try to add more elements. It will
60 * which bumps it to 1 meaning no more elements.
65 /** <summary>Track single elements w/o creating a list. Upon 2nd add, alloc list */
69 protected IList elements;
102 public RewriteRuleElementStream( ITreeAdaptor adaptor, string elementDescription, IList elements )
106 this.elements = elements;
111 * not consumed any of its elements. Elements themselves are untouched.
129 if ( elements != null )
131 elements.Add( el );
135 { // no elements yet, track w/o list
140 elements = new List<object>( 5 );
141 elements.Add( singleElement );
143 elements.Add( el );
147 * Return the next element in the stream. If out of elements, throw
148 * an exception unless size()==1. If size is 1, then return elements[0].
149 * Return a duplicate node/subtree if stream is out of elements and
158 // if out of elements and size is 1, dup
171 * if the stream is empty or we're out of elements and size>1.
183 { // out of elements?
188 // out of elements and size was not 1, so we can't dup
191 // we have elements
197 // must have more than one in list, pull from elements
198 object o = ToTree( elements[cursor] );
227 ( elements != null && cursor < elements.Count );
240 if ( elements != null )
242 return elements.Count;