public void WriteHeaderFile(CSourceFile parsedFile, Stream outStream) { using (var writer = new StreamWriter(outStream)) { using (var includeGuardWriter = new IncludeGuardWriter(writer, this.IncludeGuard)) { WriteHeaderComment(writer, this.HeaderComment); parsedFile.WritePPDefinitions(writer); parsedFile.WriteDeclarations(writer, this.IncludeStaticFunctions, this.IncludeExternFunctions); } } }
public void WriteHeaderFile(CSourceFile parsedFile, Stream outStream) { using (var writer = new StreamWriter(outStream)) { using (var includeGuardWriter = new IncludeGuardWriter(writer, this.IncludeGuard)) { WriteHeaderComment(writer, this.HeaderComment); parsedFile.WritePPDefinitions(writer); parsedFile.WriteDeclarations(writer, this.IncludeStaticFunctions, this.IncludeExternFunctions); } } }