public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context) { var registerFixData = await context.RegisterCodeFixAsync<IdentifierNameSyntax>(CodeFixTitleForReplaceWithDateTimeOffsetMember, ReplaceWrongDateTimeUsageWithDateTimeOffset); registerFixData.RegisterAdditionalCodeFixes(CodeFixTitleForReplaceWithNodeTime, ReplaceWrongDateTimeUsageWithNodaTimeEquivalent); }
public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context) { await context.RegisterCodeFixAsync<IdentifierNameSyntax>(Title, InsertStopwatchToMeasureTime); }
public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context) { await context.RegisterCodeFixAsync<FieldDeclarationSyntax>(CodeFixTitle, MakePrivateAsync); }
public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context) { await context.RegisterCodeFixAsync<IfStatementSyntax>(CodeFixTitle, MakeBlockAsync); }