Version Used : 4.12.0-3.24558.5 (21192bf )
Steps to Reproduce :
Clone https://github.com/CommunityToolkit/dotnet
Checkout dev/more-analyzers (or Add more analyzers, enable unit tests for partial properties CommunityToolkit/dotnet#1010 )
Remove the [Ignore] from InvalidPartialPropertyLevelObservablePropertyAttributeAnalyzer_OnImplementedProperty_GeneratedByAnotherGenerator_Warns
Put a breakpoint in the RegisterSymbolAction callback in InvalidPartialPropertyLevelObservablePropertyAttributeAnalyzer
Run the test
Verify that the callback is never executed
Comment out the [GeneratedCode] attribute on the partial property implementation in that test
Run the test again
Verify the callback is now hit (??!)
Expected Behavior :
The RegisterSymbolAction callback should work as expected in both cases.
Actual Behavior :
The RegisterSymbolAction callback is apparently not called at all if you leave the attribute on the implementation part.
Version Used: 4.12.0-3.24558.5 (21192bf)
Steps to Reproduce:
dev/more-analyzers(or Add more analyzers, enable unit tests for partial properties CommunityToolkit/dotnet#1010)[Ignore]fromInvalidPartialPropertyLevelObservablePropertyAttributeAnalyzer_OnImplementedProperty_GeneratedByAnotherGenerator_WarnsRegisterSymbolActioncallback inInvalidPartialPropertyLevelObservablePropertyAttributeAnalyzer[GeneratedCode]attribute on the partial property implementation in that testExpected Behavior:
The
RegisterSymbolActioncallback should work as expected in both cases.Actual Behavior:
The
RegisterSymbolActioncallback is apparently not called at all if you leave the attribute on the implementation part.