Esempio n. 1
0
 internal StatementList(Statement parent)
 {
     _parent = parent;
 }
Esempio n. 2
0
 internal void ReplaceRange(int startIndex, int count, Statement statement)
 {
     _statements.RemoveRange(startIndex, count);
     _statements.Insert(startIndex, statement);
     statement.Parent = _parent;
 }
Esempio n. 3
0
 internal void ReplaceRange(int index, StatementList oldStatements, Statement newStatement)
 {
     oldStatements._statements.ForEach(c => _statements.Remove(c));
     _statements.Insert(index, newStatement);
     newStatement.Parent = _parent;
 }
Esempio n. 4
0
 internal void Add(Statement statement)
 {
     _statements.Add(statement);
     statement.Parent = _parent;
 }