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
+21-4Lines changed: 21 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -243,13 +243,15 @@ public static bool TryGetAccessibilityModifiers(
243
243
/// <param name="attributeData">The input <see cref="AttributeData"/> that triggered the annotation.</param>
244
244
/// <param name="typeName">The type name for the generated property (without nullability annotations).</param>
245
245
/// <param name="typeNameWithNullabilityAnnotations">The type name for the generated property, including nullability annotations.</param>
246
-
/// <param name=",etadataTypeName">The type name for the metadata declaration of the property, if explicitly set.</param>
246
+
/// <param name="metadataTypeName">The type name for the metadata declaration of the property, if explicitly set.</param>
247
+
/// <param name="metadataTypeSymbol">The type symbol for the metadata declaration of the property, if explicitly set.</param>
247
248
publicstaticvoidGetPropertyTypes(
248
249
IPropertySymbolpropertySymbol,
249
250
AttributeDataattributeData,
250
251
outstringtypeName,
251
252
outstringtypeNameWithNullabilityAnnotations,
252
-
outstring?metadataTypeName)
253
+
outstring?metadataTypeName,
254
+
outITypeSymbol?metadataTypeSymbol)
253
255
{
254
256
// These type names are always present and directly derived from the property type
Copy file name to clipboardExpand all lines: components/DependencyPropertyGenerator/CommunityToolkit.DependencyPropertyGenerator.SourceGenerators/DependencyPropertyGenerator.cs
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,8 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
94
94
context.Attributes[0],
95
95
outstringtypeName,
96
96
outstringtypeNameWithNullabilityAnnotations,
97
-
outstring?metadataTypeName);
97
+
outstring?metadataTypeName,
98
+
outITypeSymbol?metadataTypeSymbol);
98
99
99
100
token.ThrowIfCancellationRequested();
100
101
@@ -115,8 +116,9 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
Copy file name to clipboardExpand all lines: components/DependencyPropertyGenerator/CommunityToolkit.DependencyPropertyGenerator.SourceGenerators/Models/DependencyPropertyDefaultValue.cs
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,24 @@ public override string ToString()
28
28
}
29
29
}
30
30
31
+
/// <summary>
32
+
/// A <see cref="DependencyPropertyDefaultValue"/> type representing an explicit <see langword="null"/> value.
33
+
/// </summary>
34
+
/// <remarks>This is used in some scenarios with mismatched metadata types.</remarks>
Copy file name to clipboardExpand all lines: components/DependencyPropertyGenerator/CommunityToolkit.DependencyPropertyGenerator.Tests/Test_DependencyPropertyGenerator.cs
+21-17Lines changed: 21 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -4400,21 +4400,25 @@ public partial bool IsSelected
0 commit comments