1 override of CompilerErrorCodePrefix
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
19
protected override string
CompilerErrorCodePrefix
=> "CS";
4 references to CompilerErrorCodePrefix
Microsoft.CodeAnalysis.CodeStyle (4)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (4)
310
var idWithoutPrefix = id.StartsWith(
CompilerErrorCodePrefix
) && id.Length ==
CompilerErrorCodePrefix
.Length + CompilerErrorCodeDigitCount
311
? id[
CompilerErrorCodePrefix
.Length..]
318
id =
CompilerErrorCodePrefix
+ errorCode.ToString($"D{CompilerErrorCodeDigitCount}");