1 write to Pattern
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\AnalyzedPattern.cs (1)
169
=>
Pattern
= pattern;
7 references to Pattern
Microsoft.CodeAnalysis.CSharp.Features (7)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\AnalyzedPattern.cs (3)
188
Not p => p.
Pattern
, // Avoid double negative
191
=> Binary.TryCreate(left.
Pattern
, right.
Pattern
, !p.IsDisjunctive, p.Token),
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzer.cs (3)
114
return HasIllegalPatternVariables(p.
Pattern
, permitDesignations: isTopLevel);
145
Not {
Pattern
: Constant } => true,
146
Not {
Pattern
: Source { PatternSyntax: ConstantPatternSyntax } } => true,
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
104
Not p => UnaryPattern(AsPatternSyntax(p.
Pattern
).Parenthesize()),