[mono/gtk-sharp] 72b51cc7: generator: Implement attribute to hide method parameters
| Newsgroups | gmane.comp.gnome.mono.patches |
|---|---|
| Message-ID | <00000141a9757e90-96a8f888-c030-4930-9d36-94e71e261df5-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/gtk-sharp
Compare: https://github.com/mono/gtk-sharp/compare/8e307d8eaa0d...72b51cc71259
Commit: 72b51cc71259571e368115e6dec94a6b3b01eeb0
Author: Stephan Sundermann <[email protected]> (xDarkice)
Committer: Bertrand Lorentz <[email protected]> (bl8)
Date: 2013-10-11 21:36:20 GMT
URL: https://github.com/mono/gtk-sharp/commit/72b51cc71259571e368115e6dec94a6b3b01eeb0
generator: Implement attribute to hide method parameters
A hidden parameter is dropped from the signature and the default value is filled in.
Changed paths:
M generator/Parameter.cs
M generator/Parameters.cs
Modified: generator/Parameter.cs
===================================================================
@@ -266,6 +266,12 @@ public Parameter (XmlElement e)
}
}
+ public bool IsHidden {
+ get {
+ return elem.GetAttributeAsBoolean ("hidden");
+ }
+ }
+
public virtual string[] Prepare {
get {
IGeneratable gen = Generatable;
Modified: generator/Parameters.cs
===================================================================
@@ -88,6 +88,9 @@ public bool IsHidden (Parameter p)
if (p.IsCount)
return true;
+ if (p.IsHidden)
+ return true;
+
if (p.CType == "GError**" && Throws)
return true;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches