Skip to content

Commit

Permalink
Merge pull request #786 from microsoft/fix785
Browse files Browse the repository at this point in the history
Add visibility modifier to struct properties
  • Loading branch information
AArnott committed Nov 17, 2022
2 parents 52dde8b + 53c0b86 commit f3247a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Microsoft.Windows.CsWin32/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3611,7 +3611,9 @@ private TypeDeclarationSyntax DeclareInterfaceAsStruct(TypeDefinitionHandle type
{
PropertyDeclarationSyntax propertyDeclaration = PropertyDeclaration(propertyType.WithTrailingTrivia(Space), propertyName.Identifier.WithTrailingTrivia(LineFeed));

propertyDeclaration = propertyDeclaration.WithAccessorList(AccessorList().AddAccessors(accessor));
propertyDeclaration = propertyDeclaration
.WithAccessorList(AccessorList().AddAccessors(accessor))
.AddModifiers(Token(this.Visibility));

if (propertyDeclaration.Type is PointerTypeSyntax)
{
Expand Down

0 comments on commit f3247a3

Please sign in to comment.