16 references to Use_pattern_matching
Microsoft.CodeAnalysis.CSharp.Features (16)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzer.cs (1)
25
private static readonly LocalizableResourceString s_safePatternTitle = new(nameof(CSharpAnalyzersResources.
Use_pattern_matching
), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources));
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (1)
33
nameof(CSharpAnalyzersResources.
Use_pattern_matching
), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources)))
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
37
nameof(CSharpAnalyzersResources.
Use_pattern_matching
), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources)))
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
42
nameof(CSharpAnalyzersResources.
Use_pattern_matching
), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources)))
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
65
isSafe ? CSharpAnalyzersResources.
Use_pattern_matching
: CSharpAnalyzersResources.Use_pattern_matching_may_change_code_meaning,
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (2)
35
RegisterCodeFix(context, CSharpAnalyzersResources.
Use_pattern_matching
, nameof(CSharpAnalyzersResources.
Use_pattern_matching
));
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (2)
35
RegisterCodeFix(context, CSharpAnalyzersResources.
Use_pattern_matching
, nameof(CSharpAnalyzersResources.
Use_pattern_matching
));
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (2)
32
RegisterCodeFix(context, CSharpAnalyzersResources.
Use_pattern_matching
, nameof(CSharpAnalyzersResources.
Use_pattern_matching
));
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (2)
30
RegisterCodeFix(context, CSharpAnalyzersResources.
Use_pattern_matching
, nameof(CSharpAnalyzersResources.
Use_pattern_matching
));
UsePatternMatching\CSharpIsAndCastCheckWithoutNameCodeFixProvider.cs (2)
39
CSharpAnalyzersResources.
Use_pattern_matching
,
41
nameof(CSharpAnalyzersResources.
Use_pattern_matching
),
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
47
nameof(CSharpAnalyzersResources.
Use_pattern_matching
), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources)))