45 references to DiscardDesignation
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Deconstruct.cs (1)
814case SyntaxKind.DiscardDesignation:
Binder\Binder_Expressions.cs (2)
914case SyntaxKind.DiscardDesignation: 2895case SyntaxKind.DiscardDesignation:
Binder\Binder_Patterns.cs (1)
1342case SyntaxKind.DiscardDesignation:
Binder\Binder_Statements.cs (1)
793declarationNode.Kind() == SyntaxKind.DiscardDesignation);
Binder\ExpressionVariableFinder.cs (4)
235Debug.Assert(node.Designation == null || node.Designation.Kind() == SyntaxKind.DiscardDesignation); 258case SyntaxKind.DiscardDesignation: 371case SyntaxKind.DiscardDesignation: 463case SyntaxKind.DiscardDesignation:
Binder\ForEachLoopBinder.cs (1)
154case SyntaxKind.DiscardDesignation:
Compilation\CSharpSemanticModel.cs (2)
539case SyntaxKind.DiscardDesignation: 968case SyntaxKind.DiscardDesignation:
Parser\LanguageParser.cs (1)
8766case SyntaxKind.DiscardDesignation:
Syntax\SyntaxFacts.cs (2)
476designationKind == SyntaxKind.DiscardDesignation) 485case SyntaxKind.DiscardDesignation:
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
ConvertSwitchStatementToExpressionHelpers.cs (1)
31varPattern.Designation.Kind() is SyntaxKind.DiscardDesignation or SyntaxKind.SingleVariableDesignation)
CSharpRemoveUnnecessaryDiscardDesignationDiagnosticAnalyzer.cs (1)
41context.RegisterSyntaxNodeAction(AnalyzeDiscardDesignation, SyntaxKind.DiscardDesignation);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
97if (newNameNode.IsKind(SyntaxKind.DiscardDesignation)
UseExplicitTypeCodeFixProvider.cs (1)
183case SyntaxKind.DiscardDesignation:
Microsoft.CodeAnalysis.CSharp.Features (6)
ConvertSwitchStatementToExpressionHelpers.cs (1)
31varPattern.Designation.Kind() is SyntaxKind.DiscardDesignation or SyntaxKind.SingleVariableDesignation)
CSharpRemoveUnnecessaryDiscardDesignationDiagnosticAnalyzer.cs (1)
41context.RegisterSyntaxNodeAction(AnalyzeDiscardDesignation, SyntaxKind.DiscardDesignation);
CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
97if (newNameNode.IsKind(SyntaxKind.DiscardDesignation)
EditAndContinue\SyntaxComparer.cs (2)
530case SyntaxKind.DiscardDesignation: 1351case SyntaxKind.DiscardDesignation:
UseExplicitTypeCodeFixProvider.cs (1)
183case SyntaxKind.DiscardDesignation:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (18)
Parsing\DeclarationScopeParsingTests.cs (2)
8284N(SyntaxKind.DiscardDesignation); 8336N(SyntaxKind.DiscardDesignation);
Parsing\DeconstructionTests.cs (12)
1800N(SyntaxKind.DiscardDesignation); 1815N(SyntaxKind.DiscardDesignation); 1833N(SyntaxKind.DiscardDesignation); 1838N(SyntaxKind.DiscardDesignation); 2445N(SyntaxKind.DiscardDesignation); 2522N(SyntaxKind.DiscardDesignation); 2590N(SyntaxKind.DiscardDesignation); 2653N(SyntaxKind.DiscardDesignation); 2713N(SyntaxKind.DiscardDesignation); 2772N(SyntaxKind.DiscardDesignation); 2838N(SyntaxKind.DiscardDesignation); 2903N(SyntaxKind.DiscardDesignation);
Parsing\FunctionPointerTests.cs (2)
2591N(SyntaxKind.DiscardDesignation); 2701N(SyntaxKind.DiscardDesignation);
Parsing\PatternParsingTests.cs (2)
5837N(SyntaxKind.DiscardDesignation); 6153N(SyntaxKind.DiscardDesignation);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\ClassificationHelpers.cs (1)
34else if (SyntaxFacts.IsKeywordKind(token.Kind()) || token.IsKind(SyntaxKind.DiscardDesignation))
Classification\SyntaxClassification\DiscardSyntaxClassifier.cs (1)
29if (syntax.IsKind(SyntaxKind.DiscardDesignation) || syntax.IsKind(SyntaxKind.DiscardPattern))