Beispiel #1
0
 internal StatementList(Statement parent)
 {
     _parent = parent;
 }
Beispiel #2
0
 internal void ReplaceRange(int startIndex, int count, Statement statement)
 {
     _statements.RemoveRange(startIndex, count);
     _statements.Insert(startIndex, statement);
     statement.Parent = _parent;
 }
Beispiel #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;
 }
Beispiel #4
0
 internal void Add(Statement statement)
 {
     _statements.Add(statement);
     statement.Parent = _parent;
 }