Skip to content

Commit 9aaaaea

Browse files
committed
Add nullability unit tests, minor bug fixes
1 parent efde5ee commit 9aaaaea

File tree

2 files changed

+433
-15
lines changed

2 files changed

+433
-15
lines changed

components/DependencyPropertyGenerator/CommunityToolkit.DependencyPropertyGenerator.SourceGenerators/Diagnostics/Analyzers/InvalidPropertyNullableAnnotationAnalyzer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public sealed class InvalidPropertyNullableAnnotationAnalyzer : DiagnosticAnalyz
2222
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
2323
[
2424
NonNullablePropertyDeclarationIsNotEnforced,
25-
NotNullResilientAccessorsForNullablePropertyDeclaration,
25+
NotNullResilientAccessorsForNotNullablePropertyDeclaration,
2626
NotNullResilientAccessorsForNullablePropertyDeclaration
2727
];
2828

@@ -99,7 +99,7 @@ public override void Initialize(AnalysisContext context)
9999
!IsAccessorMethodMarkedAsNotNull(propertySymbol, SyntaxKind.SetAccessorDeclaration, notNullAttributeSymbols))
100100
{
101101
context.ReportDiagnostic(Diagnostic.Create(
102-
NotNullResilientAccessorsForNullablePropertyDeclaration,
102+
NotNullResilientAccessorsForNotNullablePropertyDeclaration,
103103
attributeData.GetLocation(),
104104
propertySymbol));
105105
}

0 commit comments

Comments
 (0)