45 references to DiscardDesignation
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Deconstruct.cs (1)
814case SyntaxKind.DiscardDesignation:
Binder\Binder_Expressions.cs (2)
950case SyntaxKind.DiscardDesignation: 3114case SyntaxKind.DiscardDesignation:
Binder\Binder_Patterns.cs (1)
1351case SyntaxKind.DiscardDesignation:
Binder\Binder_Statements.cs (1)
790declarationNode.Kind() == SyntaxKind.DiscardDesignation);
Binder\ExpressionVariableFinder.cs (4)
226Debug.Assert(node.Designation == null || node.Designation.Kind() == SyntaxKind.DiscardDesignation); 249case SyntaxKind.DiscardDesignation: 428case SyntaxKind.DiscardDesignation: 520case SyntaxKind.DiscardDesignation:
Binder\ForEachLoopBinder.cs (1)
170case SyntaxKind.DiscardDesignation:
Compilation\CSharpSemanticModel.cs (2)
539case SyntaxKind.DiscardDesignation: 968case SyntaxKind.DiscardDesignation:
Parser\LanguageParser.cs (1)
9364case SyntaxKind.DiscardDesignation:
Syntax\SyntaxFacts.cs (2)
476designationKind == SyntaxKind.DiscardDesignation) 485case SyntaxKind.DiscardDesignation:
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionHelpers.cs (1)
31varPattern.Designation.Kind() is SyntaxKind.DiscardDesignation or SyntaxKind.SingleVariableDesignation)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationDiagnosticAnalyzer.cs (1)
41context.RegisterSyntaxNodeAction(AnalyzeDiscardDesignation, SyntaxKind.DiscardDesignation);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
94if (newNameNode.IsKind(SyntaxKind.DiscardDesignation))
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (1)
189case SyntaxKind.DiscardDesignation:
Microsoft.CodeAnalysis.CSharp.Features (6)
EditAndContinue\SyntaxComparer.cs (2)
531case SyntaxKind.DiscardDesignation: 1360case SyntaxKind.DiscardDesignation:
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionHelpers.cs (1)
31varPattern.Designation.Kind() is SyntaxKind.DiscardDesignation or SyntaxKind.SingleVariableDesignation)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationDiagnosticAnalyzer.cs (1)
41context.RegisterSyntaxNodeAction(AnalyzeDiscardDesignation, SyntaxKind.DiscardDesignation);
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
94if (newNameNode.IsKind(SyntaxKind.DiscardDesignation))
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (1)
189case SyntaxKind.DiscardDesignation:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (18)
Parsing\DeclarationScopeParsingTests.cs (2)
7971N(SyntaxKind.DiscardDesignation); 8023N(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)
5798N(SyntaxKind.DiscardDesignation); 6114N(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)
28if (syntax.Kind() is SyntaxKind.DiscardDesignation or SyntaxKind.DiscardPattern)