public CSharpOutputVisitor (TextWriter textWriter, CSharpFormattingOptions formattingPolicy) { if (textWriter == null) { throw new ArgumentNullException ("textWriter"); } if (formattingPolicy == null) { throw new ArgumentNullException ("formattingPolicy"); } this.writer = TokenWriter.Create(textWriter); this.policy = formattingPolicy; }