Browse Source

Associate getter/setter methods with their associated property in GetterSetterToProperty pass.

pull/1303/head 0.10.2
João Matos 6 years ago committed by João Matos
parent
commit
7bbe6a2df4
  1. 2
      src/Generator/Passes/GetterSetterToPropertyPass.cs

2
src/Generator/Passes/GetterSetterToPropertyPass.cs

@ -145,6 +145,8 @@ namespace CppSharp.Passes @@ -145,6 +145,8 @@ namespace CppSharp.Passes
if (property == null)
properties.Add(property = new Property { Name = name, QualifiedType = type });
method.AssociatedDeclaration = property;
if (isSetter)
property.SetMethod = method;
else

Loading…
Cancel
Save