24 references to NotPattern
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\UseNullPropagation\CSharpUseNullPropagationDiagnosticAnalyzer.cs (1)
51if (pattern is UnaryPatternSyntax(SyntaxKind.NotPattern) notPattern)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
458if (previousToken.Parent.IsKind(SyntaxKind.NotPattern))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
124public int? NotPattern => (int)SyntaxKind.NotPattern;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1432if (leftToken.IsKind(SyntaxKind.NotKeyword) && leftToken.Parent.IsKind(SyntaxKind.NotPattern))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\PatternMatchingTests3.cs (2)
4259Assert.Equal(SyntaxKind.NotPattern, pattern.Kind()); 4493Assert.Equal(SyntaxKind.NotPattern, pattern.Kind());
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (1)
218if (current.IsKind(SyntaxKind.NotPattern))
src\Analyzers\CSharp\Analyzers\UseNullPropagation\CSharpUseNullPropagationDiagnosticAnalyzer.cs (1)
51if (pattern is UnaryPatternSyntax(SyntaxKind.NotPattern) notPattern)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (13)
Parsing\PatternParsingTests.cs (4)
8406N(SyntaxKind.NotPattern); 8455N(SyntaxKind.NotPattern); 8590N(SyntaxKind.NotPattern); 8610N(SyntaxKind.NotPattern);
Parsing\PatternParsingTests_ListPatterns.cs (3)
603N(SyntaxKind.NotPattern); 886N(SyntaxKind.NotPattern); 929N(SyntaxKind.NotPattern);
Parsing\PatternParsingTests2.cs (6)
463N(SyntaxKind.NotPattern); 1096N(SyntaxKind.NotPattern); 1117N(SyntaxKind.NotPattern); 1172N(SyntaxKind.NotPattern); 1193N(SyntaxKind.NotPattern); 1237N(SyntaxKind.NotPattern);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
458if (previousToken.Parent.IsKind(SyntaxKind.NotPattern))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
124public int? NotPattern => (int)SyntaxKind.NotPattern;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1432if (leftToken.IsKind(SyntaxKind.NotKeyword) && leftToken.Parent.IsKind(SyntaxKind.NotPattern))