|
|
|
|
|
|
{ |
|
|
|
using (System.IO.StreamWriter writer = File.CreateText(fileName)) |
|
|
|
{ |
|
|
|
writer.WriteLine("//"); |
|
|
|
writer.WriteLine("// This file was automatically generated from " + it.Key + ". Please don't edit by hand."); |
|
|
|
writer.WriteLine("//"); |
|
|
|
writer.WriteLine(); |
|
|
|
writer.Write("//\n"); |
|
|
|
writer.Write("// This file was automatically generated from " + it.Key + ". Please don't edit by hand.\n"); |
|
|
|
writer.Write("//\n\n"); |
|
|
|
writer.WriteLine(gen.EmitDefines()); |
|
|
|
writer.Write(gen.EmitDefines() + "\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
writer.WriteLine(gen.EmitTypeDecl()); |
|
|
|
writer.Write(gen.EmitTypeDecl() + "\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
writer.WriteLine(gen.EmitAccessors()); |
|
|
|
writer.Write(gen.EmitAccessors() + "\n"); |
|
|
|
writer.WriteLine(); |
|
|
|
writer.Write("\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|