10 references to Not
Microsoft.CodeAnalysis.CSharp.Features (10)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\AnalyzedPattern.cs (3)
201Not p => p.Pattern, // Avoid double negative 203Binary { Left: Not left, Right: Not right } p // Apply demorgans's law
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (2)
48return Not.TryCreate(ParseConstantPattern(op)); 60return Not.TryCreate(ParsePattern(op.Operand));
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzer.cs (4)
108case Not p: 140Not { Pattern: Constant } => true, 141Not { Pattern: Source { PatternSyntax: ConstantPatternSyntax } } => true, 142Not => false,
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
104Not p => UnaryPattern(AsPatternSyntax(p.Pattern).Parenthesize()),