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