Open
Description
The UseAutoProp analyzer looks like this:
public sealed override void Initialize(AnalysisContext context)
{
context.RegisterCompilationStartAction(csac =>
{
var analysisResults = new ConcurrentBag<AnalysisResult>();
var ineligibleFields = new ConcurrentBag<IFieldSymbol>();
csac.RegisterSymbolAction(sac => AnalyzeProperty(analysisResults, sac), SymbolKind.Property);
RegisterIneligibleFieldsAction(csac, ineligibleFields);
csac.RegisterCompilationEndAction(cac => Process(analysisResults, ineligibleFields, cac));
});
}
Even though we call RegisterCompilationEndAction, the call to the registered lambda never happens.
This means that UseAutoProp doesn't actually work at all.
Activity