Exemple #1
0
 public void Save(Program program, string filename)
 {
     using (_writer = new Indenter(filename, System.Text.Encoding.UTF8))
     {
         program.Visit(this);
     }
     _writer = null;
 }
Exemple #2
0
 public void Save(Program program, string filename)
 {
     /** \todo Generate a separate D source folder for each name space. */
     using (_writer = new Indenter(filename, System.Text.Encoding.ASCII))
     {
         program.Visit(this);
     }
     _writer = null;
 }