1 write to Fixer
Microsoft.CodeAnalysis.Features (1)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.AbstractSuppressionCodeAction.cs (1)
16
Fixer
= fixer;
14 references to Fixer
Microsoft.CodeAnalysis.Features (14)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.AbstractGlobalSuppressMessageCodeAction.cs (3)
67
var suppressionsFileName = s_globalSuppressionsFileName +
Fixer
.DefaultFileExtension;
88
if (r.ChildNodes().All(n => syntaxFacts.IsUsingOrExternOrImport(n) ||
Fixer
.IsAttributeListWithAssemblyAttributes(n)))
101
suppressionsFileName = s_globalSuppressionsFileName + index.ToString() +
Fixer
.DefaultFileExtension;
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaWarningCodeAction.cs (3)
54
=> new(_suppressionTargetInfo, _document, _options, _diagnostic,
Fixer
, forFixMultipleContext: true);
71
? PragmaHelpers.GetNewStartTokenWithAddedPragma(startToken, currentDiagnosticSpan, _diagnostic,
Fixer
, FormatNode, isRemoveSuppression: false, cancellationToken)
77
? PragmaHelpers.GetNewEndTokenWithAddedPragma(endToken, currentDiagnosticSpan, _diagnostic,
Fixer
, FormatNode, isRemoveSuppression: false, cancellationToken)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction_Attribute.cs (2)
48
=> new AttributeRemoveAction(_attribute, _project, _diagnostic,
Fixer
, forFixMultipleContext: true);
55
return
Fixer
.IsSingleAttributeInAttributeList(attributeNode)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction_Pragma.cs (6)
60
=> new PragmaRemoveAction(_suppressionTargetInfo, _document, _options, _diagnostic,
Fixer
, forFixMultipleContext: true);
73
if (CanRemovePragmaTrivia(_suppressionTargetInfo.StartToken, _diagnostic,
Fixer
, isStartToken: true, indexOfTriviaToRemove: out indexOfLeadingPragmaDisableToRemove) &&
74
CanRemovePragmaTrivia(_suppressionTargetInfo.EndToken, _diagnostic,
Fixer
, isStartToken: false, indexOfTriviaToRemove: out indexOfTrailingPragmaEnableToRemove))
169
return PragmaHelpers.GetNewStartTokenWithAddedPragma(token, currentDiagnosticSpan, _diagnostic,
Fixer
, FormatNode, isRemoveSuppression: true, cancellationToken);
173
return PragmaHelpers.GetNewEndTokenWithAddedPragma(token, currentDiagnosticSpan, _diagnostic,
Fixer
, FormatNode, isRemoveSuppression: true, cancellationToken);
178
=> GetNewTokenWithPragmaUnsuppress(token, indexOfTriviaToRemoveOrToggle,
Fixer
, isStartToken, toggle);