24 references to VarPattern
Microsoft.CodeAnalysis.CSharp (1)
Binder\Binder_Patterns.cs (1)
1366node.Parent.Kind() == SyntaxKind.VarPattern ? node.Parent : node, // for `var x` use whole pattern, otherwise use designation for the syntax
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
133public int? VarPattern => (int)SyntaxKind.VarPattern;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
81case SyntaxKind.VarPattern:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\PatternMatchingTestBase.cs (1)
37return tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Parent.Kind() == SyntaxKind.DeclarationPattern || p.Parent.Kind() == SyntaxKind.VarPattern);
Microsoft.CodeAnalysis.CSharp.Features (2)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
324Debug.Assert(containingPattern.Kind() is SyntaxKind.VarPattern or SyntaxKind.DeclarationPattern or SyntaxKind.RecursivePattern);
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
81case SyntaxKind.VarPattern:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (16)
Parsing\DeconstructionTests.cs (2)
2769N(SyntaxKind.VarPattern); 2900N(SyntaxKind.VarPattern);
Parsing\FunctionPointerTests.cs (3)
2625N(SyntaxKind.VarPattern); 2637N(SyntaxKind.VarPattern); 2739N(SyntaxKind.VarPattern);
Parsing\PatternParsingTests.cs (5)
5431N(SyntaxKind.VarPattern); 5724N(SyntaxKind.VarPattern); 5759N(SyntaxKind.VarPattern); 5983N(SyntaxKind.VarPattern); 6056N(SyntaxKind.VarPattern);
Parsing\PatternParsingTests_ListPatterns.cs (6)
325N(SyntaxKind.VarPattern); 492N(SyntaxKind.VarPattern); 725N(SyntaxKind.VarPattern); 783N(SyntaxKind.VarPattern); 819N(SyntaxKind.VarPattern); 1047N(SyntaxKind.VarPattern);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
133public int? VarPattern => (int)SyntaxKind.VarPattern;
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\TestOperationVisitor.cs (1)
1415if (operation.Syntax.IsKind(CSharp.SyntaxKind.VarPattern) ||