Browse Source

Improved IsSynthetized check to handle property setters.

pull/990/merge
Joao Matos 8 years ago
parent
commit
d0e1fe5810
  1. 6
      src/AST/Property.cs

6
src/AST/Property.cs

@ -117,7 +117,11 @@ namespace CppSharp.AST @@ -117,7 +117,11 @@ namespace CppSharp.AST
public bool IsSynthetized
{
get { return GetMethod != null && GetMethod.IsSynthetized; }
get
{
return (GetMethod != null && GetMethod.IsSynthetized) ||
(SetMethod != null && SetMethod.IsSynthetized);
}
}
public override T Visit<T>(IDeclVisitor<T> visitor)

Loading…
Cancel
Save