You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/DependencyPropertyGenerator/CommunityToolkit.DependencyPropertyGenerator.SourceGenerators/DependencyPropertyGenerator.Execute.cs
+45-14Lines changed: 45 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
// See the LICENSE file in the project root for more information.
4
4
5
5
usingSystem;
6
+
usingSystem.Collections.Immutable;
6
7
usingSystem.IO;
7
8
usingSystem.Linq;
8
9
usingSystem.Reflection;
@@ -147,6 +148,37 @@ public static bool IsCandidateSymbolValid(IPropertySymbol propertySymbol, bool u
147
148
returntrue;
148
149
}
149
150
151
+
/// <summary>
152
+
/// Gathers all allowed property modifiers that should be forwarded to the generated property.
/// <remarks>This method is invoked by the <see cref="global::{WellKnownTypeNames.DependencyProperty(propertyInfo.UseWindowsUIXaml)}"/> infrastructure, after the value of <see cref="{propertyInfo.PropertyName}"/> is changed.</remarks>
/// <remarks>This method is invoked by the <see cref="global::{WellKnownTypeNames.DependencyProperty(propertyInfos[0].UseWindowsUIXaml)}"/> infrastructure, after the value of any dependency property has just changed.</remarks>
Copy file name to clipboardExpand all lines: components/DependencyPropertyGenerator/CommunityToolkit.DependencyPropertyGenerator.SourceGenerators/DependencyPropertyGenerator.cs
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
// See the LICENSE file in the project root for more information.
Copy file name to clipboardExpand all lines: components/DependencyPropertyGenerator/CommunityToolkit.DependencyPropertyGenerator.SourceGenerators/Extensions/AccessibilityExtensions.cs
Copy file name to clipboardExpand all lines: components/DependencyPropertyGenerator/CommunityToolkit.DependencyPropertyGenerator.SourceGenerators/Models/DependencyPropertyInfo.cs
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
// See the LICENSE file in the project root for more information.
/// <param name="PropertyModifiers">The list of additional modifiers for the property (they are <see cref="SyntaxKind"/> values).</param>
14
16
/// <param name="DeclaredAccessibility">The accessibility of the property, if available.</param>
15
17
/// <param name="GetterAccessibility">The accessibility of the <see langword="get"/> accessor, if available.</param>
16
18
/// <param name="SetterAccessibility">The accessibility of the <see langword="set"/> accessor, if available.</param>
17
19
/// <param name="TypeName">The type name for the generated property (without nullability annotations).</param>
18
20
/// <param name="TypeNameWithNullabilityAnnotations">The type name for the generated property, including nullability annotations.</param>
19
21
/// <param name="DefaultValue">The default value to set the generated property to.</param>
20
22
/// <param name="IsReferenceTypeOrUnconstraindTypeParameter">Indicates whether the property is of a reference type or an unconstrained type parameter.</param>
21
-
/// <param name="IsRequired">Whether or not the generated property should be marked as required.</param>
22
23
/// <param name="IsLocalCachingEnabled">Indicates whether local caching should be used for the property value.</param>
23
24
/// <param name="IsPropertyChangedCallbackImplemented">Indicates whether the WinRT-based property changed callback is implemented.</param>
24
25
/// <param name="IsSharedPropertyChangedCallbackImplemented">Indicates whether the WinRT-based shared property changed callback is implemented.</param>
0 commit comments