public override VisualBasicSyntaxNode VisitCompilationUnit(CSS.CompilationUnitSyntax node) { var imports = node.Usings.Select(u => (ImportsStatementSyntax)u.Accept(this)) .Concat(node.Externs.Select(e => (ImportsStatementSyntax)e.Accept(this))); var attributes = node.AttributeLists.Select(a => SyntaxFactory.AttributesStatement(SyntaxFactory.SingletonList((AttributeListSyntax)a.Accept(this)))); var members = node.Members.Select(m => (StatementSyntax)m.Accept(this)); return(SyntaxFactory.CompilationUnit( SyntaxFactory.List <OptionStatementSyntax>(), SyntaxFactory.List(imports), SyntaxFactory.List(attributes), SyntaxFactory.List(members) )); }