void AddStatementOrList(ForStatement forStatement, ICSharpCode.NRefactory.MonoCSharp.Statement init, Role<Statement> role) { if (init == null) return; var stmtList = init as StatementList; if (stmtList != null) { foreach (var stmt in stmtList.Statements) { forStatement.AddChild((Statement)stmt.Accept(this), role); } } else if (init is ICSharpCode.NRefactory.MonoCSharp.EmptyStatement) { } else { forStatement.AddChild((Statement)init.Accept(this), role); } }