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