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