2 instantiations of PragmaWarningCodeAction
Microsoft.CodeAnalysis.Features (2)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaWarningCodeAction.cs (2)
34
return new
PragmaWarningCodeAction
(suppressionTargetInfo, document, options, diagnostic, fixer);
54
=>
new
(_suppressionTargetInfo, _document, _options, _diagnostic, Fixer, forFixMultipleContext: true);
5 references to PragmaWarningCodeAction
Microsoft.CodeAnalysis.Features (5)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (3)
149
internal async Task<ImmutableArray<
PragmaWarningCodeAction
>> GetPragmaSuppressionsAsync(Document document, TextSpan span, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken)
152
return [.. codeFixes.SelectMany(fix => fix.Action.NestedActions).OfType<
PragmaWarningCodeAction
>()];
213
nestedActions.Add(
PragmaWarningCodeAction
.Create(suppressionTargetInfo, documentOpt, lazyFormattingOptions, diagnostic, this));
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaWarningCodeAction.cs (2)
23
public static
PragmaWarningCodeAction
Create(
53
public
PragmaWarningCodeAction
CloneForFixMultipleContext()