86 references to DeclarationPattern
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFacts.cs (1)
212case DeclarationPattern:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
127public int? DeclarationPattern => (int)SyntaxKind.DeclarationPattern;
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 (4)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
324Debug.Assert(containingPattern.Kind() is SyntaxKind.VarPattern or SyntaxKind.DeclarationPattern or SyntaxKind.RecursivePattern);
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
497else if (parent.IsParentKind(SyntaxKind.DeclarationPattern))
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (2)
436.Where(n => n.Kind() is SyntaxKind.DeclarationExpression or SyntaxKind.DeclarationPattern); 466case SyntaxKind.DeclarationPattern:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\LocalFunctionTests.cs (1)
675var decl = (DeclarationPatternSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.DeclarationPattern, occurrence: 1).AsNode();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (77)
Parsing\AsyncParsingTests.cs (2)
2707N(SyntaxKind.DeclarationPattern); 2803N(SyntaxKind.DeclarationPattern);
Parsing\DeclarationExpressionTests.cs (2)
154N(SyntaxKind.DeclarationPattern); 241N(SyntaxKind.DeclarationPattern);
Parsing\DeconstructionTests.cs (2)
2707N(SyntaxKind.DeclarationPattern); 2832N(SyntaxKind.DeclarationPattern);
Parsing\FunctionPointerTests.cs (2)
2513N(SyntaxKind.DeclarationPattern); 2682N(SyntaxKind.DeclarationPattern);
Parsing\LambdaAttributeParsingTests.cs (4)
2009N(SyntaxKind.DeclarationPattern); 2064N(SyntaxKind.DeclarationPattern); 2123N(SyntaxKind.DeclarationPattern); 2174N(SyntaxKind.DeclarationPattern);
Parsing\LambdaReturnTypeParsingTests.cs (4)
4591N(SyntaxKind.DeclarationPattern); 4606N(SyntaxKind.DeclarationPattern); 4637N(SyntaxKind.DeclarationPattern); 4652N(SyntaxKind.DeclarationPattern);
Parsing\NullableParsingTests.cs (9)
769N(SyntaxKind.DeclarationPattern); 912N(SyntaxKind.DeclarationPattern); 971N(SyntaxKind.DeclarationPattern); 1837N(SyntaxKind.DeclarationPattern); 1915N(SyntaxKind.DeclarationPattern); 1931N(SyntaxKind.DeclarationPattern); 2004N(SyntaxKind.DeclarationPattern); 2165N(SyntaxKind.DeclarationPattern); 2334N(SyntaxKind.DeclarationPattern);
Parsing\PatternParsingTests.cs (25)
955N(SyntaxKind.DeclarationPattern); 997N(SyntaxKind.DeclarationPattern); 1181N(SyntaxKind.DeclarationPattern); 1525N(SyntaxKind.DeclarationPattern); 1593N(SyntaxKind.DeclarationPattern); 3189N(SyntaxKind.DeclarationPattern); 3254N(SyntaxKind.DeclarationPattern); 3439N(SyntaxKind.DeclarationPattern); 3504N(SyntaxKind.DeclarationPattern); 3721N(SyntaxKind.DeclarationPattern); 3802N(SyntaxKind.DeclarationPattern); 3889N(SyntaxKind.DeclarationPattern); 3960N(SyntaxKind.DeclarationPattern); 4033N(SyntaxKind.DeclarationPattern); 4104N(SyntaxKind.DeclarationPattern); 4177N(SyntaxKind.DeclarationPattern); 4264N(SyntaxKind.DeclarationPattern); 4877N(SyntaxKind.DeclarationPattern); 8192N(SyntaxKind.DeclarationPattern); 9272N(SyntaxKind.DeclarationPattern); 9326N(SyntaxKind.DeclarationPattern); 9922N(SyntaxKind.DeclarationPattern); 10012N(SyntaxKind.DeclarationPattern); 10162N(SyntaxKind.DeclarationPattern); 10210N(SyntaxKind.DeclarationPattern);
Parsing\PatternParsingTests_ListPatterns.cs (12)
992N(SyntaxKind.DeclarationPattern); 1156N(SyntaxKind.DeclarationPattern); 1196N(SyntaxKind.DeclarationPattern); 1247N(SyntaxKind.DeclarationPattern); 1298N(SyntaxKind.DeclarationPattern); 1361N(SyntaxKind.DeclarationPattern); 1424N(SyntaxKind.DeclarationPattern); 1453N(SyntaxKind.DeclarationPattern); 1491N(SyntaxKind.DeclarationPattern); 1520N(SyntaxKind.DeclarationPattern); 1558N(SyntaxKind.DeclarationPattern); 1587N(SyntaxKind.DeclarationPattern);
Parsing\PatternParsingTests2.cs (7)
1439N(SyntaxKind.DeclarationPattern); 1489N(SyntaxKind.DeclarationPattern); 1516N(SyntaxKind.DeclarationPattern); 1569N(SyntaxKind.DeclarationPattern); 1596N(SyntaxKind.DeclarationPattern); 1709N(SyntaxKind.DeclarationPattern); 1725N(SyntaxKind.DeclarationPattern);
Parsing\RecordParsing.cs (2)
1866N(SyntaxKind.DeclarationPattern); 2028N(SyntaxKind.DeclarationPattern);
Parsing\StatementParsingTests.cs (2)
5693N(SyntaxKind.DeclarationPattern); 5766N(SyntaxKind.DeclarationPattern);
Parsing\SwitchExpressionParsingTests.cs (4)
4589N(SyntaxKind.DeclarationPattern); 4654N(SyntaxKind.DeclarationPattern); 4719N(SyntaxKind.DeclarationPattern); 4789N(SyntaxKind.DeclarationPattern);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
127public int? DeclarationPattern => (int)SyntaxKind.DeclarationPattern;