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/Extensions/IOperationExtensions.cs
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,23 @@ public static bool IsConstantValueDefault(this IOperation operation)
36
36
returntrue;
37
37
}
38
38
39
+
// Special case enum types as well (enum types only support a subset of primitive types)
Copy file name to clipboardExpand all lines: components/DependencyPropertyGenerator/CommunityToolkit.DependencyPropertyGenerator.Tests/Test_UseGeneratedDependencyPropertyOnManualPropertyCodeFixer.cs
+94Lines changed: 94 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2429,4 +2429,98 @@ public abstract partial class KeyFrame<TValue, TKeyFrame> : DependencyObject
2429
2429
2430
2430
awaittest.RunAsync();
2431
2431
}
2432
+
2433
+
// Some mixed scenarios with enum types, nullable types, and different property metadata types.
2434
+
// Not all of these are a 1:1 match with the code fixer (some aren't even fully valid) just yet.
0 commit comments