public void Write(CompilationUnit compilationUnit, TextWriter writer) { using (var writingVisitor = new WriterVisitor(writer, false)) { writingVisitor.Visit(compilationUnit); } }
public void Write(CompilationUnit compilationUnit, string path) { using (var writingVisitor = new WriterVisitor(FileUtils.CreateText(path))) { writingVisitor.Visit(compilationUnit); } }