From 381222897c41823e0e1bc387fcf4abb0955b2ba4 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 15 Jan 2008 09:22:49 +0000 Subject: [PATCH] Fixed public/internal mismatch in the generated bindings. Disabled missing xml doc warnings in the generated bindings. --- Source/Bind/GL2/Generator.cs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Source/Bind/GL2/Generator.cs b/Source/Bind/GL2/Generator.cs index 3b81baaa..26345f3a 100644 --- a/Source/Bind/GL2/Generator.cs +++ b/Source/Bind/GL2/Generator.cs @@ -466,7 +466,7 @@ namespace Bind.GL2 sw.Indent(); if ((Settings.Compatibility & Settings.Legacy.NestedEnums) != Settings.Legacy.None) - sw.WriteLine("public static partial class {0}", Settings.OutputClass); + sw.WriteLine("static partial class {0}", Settings.OutputClass); else sw.WriteLine("namespace {0}", Settings.EnumsNamespace); @@ -492,7 +492,6 @@ namespace Bind.GL2 sw.WriteLine("#pragma warning disable 0649"); WriteDelegates(sw, Bind.Structures.Delegate.Delegates); - sw.WriteLine("#pragma warning restore 0649"); sw.Unindent(); sw.WriteLine("}"); @@ -535,6 +534,9 @@ namespace Bind.GL2 { Trace.WriteLine(String.Format("Writing delegates to:\t{0}.{1}.{2}", Settings.OutputNamespace, Settings.OutputClass, Settings.DelegatesClass)); + sw.WriteLine("#pragma warning disable 3019"); // CLSCompliant attribute + sw.WriteLine("#pragma warning disable 1591"); // Missing doc comments + sw.WriteLine(); sw.WriteLine("partial class {0}", Settings.OutputClass); sw.WriteLine("{"); @@ -569,6 +571,9 @@ namespace Bind.GL2 { Trace.WriteLine(String.Format("Writing imports to:\t{0}.{1}.{2}", Settings.OutputNamespace, Settings.OutputClass, Settings.ImportsClass)); + sw.WriteLine("#pragma warning disable 3019"); // CLSCompliant attribute + sw.WriteLine("#pragma warning disable 1591"); // Missing doc comments + sw.WriteLine(); sw.WriteLine("partial class {0}", Settings.OutputClass); sw.WriteLine("{"); @@ -608,8 +613,11 @@ namespace Bind.GL2 { Trace.WriteLine(String.Format("Writing wrappers to:\t{0}.{1}", Settings.OutputNamespace, Settings.OutputClass)); + sw.WriteLine("#pragma warning disable 3019"); // CLSCompliant attribute + sw.WriteLine("#pragma warning disable 1591"); // Missing doc comments + sw.WriteLine(); - sw.WriteLine("public static partial class {0}", Settings.OutputClass); + sw.WriteLine("static partial class {0}", Settings.OutputClass); sw.WriteLine("{"); sw.Indent(); @@ -674,6 +682,9 @@ namespace Bind.GL2 public void WriteEnums(BindStreamWriter sw, EnumCollection enums) { + sw.WriteLine("#pragma warning disable 3019"); // CLSCompliant attribute + sw.WriteLine("#pragma warning disable 1591"); // Missing doc comments + if ((Settings.Compatibility & Settings.Legacy.NestedEnums) != Settings.Legacy.None) Trace.WriteLine(String.Format("Writing enums to:\t{0}.{1}.{2}", Settings.OutputNamespace, Settings.OutputClass, Settings.NestedEnumsClass)); else