12 references to DiscardPattern
Microsoft.CodeAnalysis.CSharp (1)
Parser\LanguageParser.cs (1)
9767if (node.Kind == SyntaxKind.DiscardPattern)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionHelpers.cs (1)
23if (@case.Pattern.IsKind(SyntaxKind.DiscardPattern))
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionHelpers.cs (1)
23if (@case.Pattern.IsKind(SyntaxKind.DiscardPattern))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
Parsing\CollectionExpressionParsingTests.cs (3)
1281N(SyntaxKind.DiscardPattern); 1348N(SyntaxKind.DiscardPattern); 1439N(SyntaxKind.DiscardPattern);
Parsing\LambdaAttributeParsingTests.cs (1)
1750N(SyntaxKind.DiscardPattern);
Parsing\PatternParsingTests.cs (4)
5470N(SyntaxKind.DiscardPattern); 5622N(SyntaxKind.DiscardPattern); 5630N(SyntaxKind.DiscardPattern); 5668N(SyntaxKind.DiscardPattern);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Classification\SyntaxClassification\DiscardSyntaxClassifier.cs (1)
28if (syntax.Kind() is SyntaxKind.DiscardDesignation or SyntaxKind.DiscardPattern)