4 using System.Collections;
5 using System.Collections.Generic;
7 namespace SiliconStudio.Shaders.Ast
22 Statements =
new List<Statement>();
31 Statements =
new List<Statement>();
32 if (statements != null)
33 Statements.AddRange(statements);
41 return Statements.Count;
46 public bool IsReadOnly
60 public List<Statement> Statements {
get; set; }
68 Statements.AddRange(collection);
79 return Statements.GetRange(index,
count);
89 Statements.InsertRange(index, collection);
99 Statements.RemoveRange(index,
count);
109 return Statements.RemoveAll(match);
117 return Statements[index];
122 Statements[index] = value;
129 Statements.Add(item);
146 return Statements.Contains(item);
152 Statements.CopyTo(array, arrayIndex);
158 return Statements.GetEnumerator();
164 return Statements.IndexOf(item);
170 Statements.Insert(index, item);
176 return Statements.Remove(item);
182 Statements.RemoveAt(index);
186 IEnumerator IEnumerable.GetEnumerator()
188 return GetEnumerator();
void InsertRange(int index, IEnumerable< Statement > collection)
Inserts a collection at the specified index.
IEnumerator< Statement > GetEnumerator()
StatementList(params Statement[] statements)
Initializes a new instance of the StatementList class.
bool Contains(Statement item)
void Insert(int index, Statement item)
List< Statement > GetRange(int index, int count)
Gets a subset of this instance
void AddRange(IEnumerable< Statement > collection)
Adds a collection to this instance.
int IndexOf(Statement item)
Base root class for all statements.
bool Remove(Statement item)
void RemoveRange(int index, int count)
Removes a range of elements.
int RemoveAll(Predicate< Statement > match)
Removes all elements with a predicate function.
StatementList()
Initializes a new instance of the StatementList class.
override IEnumerable< Node > Childrens()
Gets the child nodes.
void CopyTo(Statement[] array, int arrayIndex)