Browse Source

Removed property accessors ignored checking code.

The logic here is just wrong... first even if one of the accessors is ignored that does not mean we should ignore the whole property. Additionally, the code logic to check if an accessor is ignored is faulty, we can not rely on the return value of the Visit functions, but check if the declaration itself was ignored.
pull/140/head
triton 12 years ago
parent
commit
d7f776cbba
  1. 16
      src/Generator/Passes/CheckIgnoredDecls.cs

16
src/Generator/Passes/CheckIgnoredDecls.cs

@ -245,22 +245,6 @@ namespace CppSharp.Passes @@ -245,22 +245,6 @@ namespace CppSharp.Passes
return false;
}
if (property.GetMethod != null && !VisitFunctionDecl(property.GetMethod))
{
property.ExplicityIgnored = true;
Log.Debug("Property '{0}' was ignored due to ignored getter",
property.Name, msg);
return false;
}
if (property.SetMethod != null && !VisitFunctionDecl(property.SetMethod))
{
property.ExplicityIgnored = true;
Log.Debug("Property '{0}' was ignored due to ignored setter",
property.Name, msg);
return false;
}
return true;
}

Loading…
Cancel
Save