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