Skip to content

Commit 714d086

Browse files
Add XML Comments for AccessModifier
1 parent e80b1ed commit 714d086

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/CommunityToolkit.Maui.SourceGenerators.Internal.UnitTests/AttachedBindablePropertyAttributeSourceGeneratorTests/BaseAttachedBindablePropertyAttributeGeneratorTest.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,22 @@ public sealed partial class AttachedBindablePropertyAttribute<T>(string property
8282
#nullable enable
8383
namespace CommunityToolkit.Maui;
8484
85+
///<summary>Used by CommunityToolkit.Maui source generators to define access modifiers for generated code</summary>
8586
public enum AccessModifier
8687
{
88+
///<summary>Generates <see langword="public"/> access modifier</summary>
8789
Public = 0,
90+
///<summary>Generates <see langword="internal"/> access modifier</summary>
8891
Internal = 1,
92+
///<summary>Generates <see langword="protected"/> <see langword="internal"/> access modifier</summary>
8993
ProtectedInternal = 2,
94+
///<summary>Generates <see langword="protected"/> access modifier</summary>
9095
Protected = 3,
96+
///<summary>Generates <see langword="private"/> <see langword="protected"/> access modifier</summary>
9197
PrivateProtected = 4,
98+
///<summary>Generates <see langword="private"/> access modifier</summary>
9299
Private = 5,
100+
///<summary>Generates no code</summary>
93101
None = 6
94102
}
95103
""";

src/CommunityToolkit.Maui.SourceGenerators.Internal/Generators/AttachedBindablePropertyAttributeSourceGenerator.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,22 @@ public sealed partial class AttachedBindablePropertyAttribute<T>(string property
100100
#nullable enable
101101
namespace CommunityToolkit.Maui;
102102
103+
///<summary>Used by CommunityToolkit.Maui source generators to define access modifiers for generated code</summary>
103104
public enum AccessModifier
104105
{
106+
///<summary>Generates <see langword="public"/> access modifier</summary>
105107
Public = 0,
108+
///<summary>Generates <see langword="internal"/> access modifier</summary>
106109
Internal = 1,
110+
///<summary>Generates <see langword="protected"/> <see langword="internal"/> access modifier</summary>
107111
ProtectedInternal = 2,
112+
///<summary>Generates <see langword="protected"/> access modifier</summary>
108113
Protected = 3,
114+
///<summary>Generates <see langword="private"/> <see langword="protected"/> access modifier</summary>
109115
PrivateProtected = 4,
116+
///<summary>Generates <see langword="private"/> access modifier</summary>
110117
Private = 5,
118+
///<summary>Generates no code</summary>
111119
None = 6
112120
}
113121
""";

0 commit comments

Comments
 (0)