mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-05-12 04:42:15 +00:00
Collision detection for iface method -> prop.
* generator/ObjectGen.cs: detect method collisions on interfaces against the object properties to avoid duplicate property generation.
This commit is contained in:
parent
6772dc9e67
commit
0c6b54c9d9
|
@ -200,6 +200,12 @@ namespace GtkSharp.Generation {
|
||||||
foreach (string iface in interfaces) {
|
foreach (string iface in interfaces) {
|
||||||
ClassBase igen = table.GetClassGen (iface);
|
ClassBase igen = table.GetClassGen (iface);
|
||||||
foreach (Method m in igen.Methods.Values) {
|
foreach (Method m in igen.Methods.Values) {
|
||||||
|
if (m.Name.StartsWith ("Get") || m.Name.StartsWith ("Set")) {
|
||||||
|
if (GetProperty (m.Name.Substring (3)) != null) {
|
||||||
|
collisions[m.Name] = true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
Method collision = all_methods[m.Name] as Method;
|
Method collision = all_methods[m.Name] as Method;
|
||||||
if (collision != null && collision.Signature.Types == m.Signature.Types)
|
if (collision != null && collision.Signature.Types == m.Signature.Types)
|
||||||
collisions[m.Name] = true;
|
collisions[m.Name] = true;
|
||||||
|
|
Loading…
Reference in a new issue