59 references to DeclarationPattern
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFacts.cs (1)
212case DeclarationPattern:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
CSharpSyntaxKinds.cs (1)
112public int? DeclarationPattern => (int)SyntaxKind.DeclarationPattern;
Microsoft.CodeAnalysis.CSharp.Emit2.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 (5)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
306Debug.Assert(containingPattern.Kind() is SyntaxKind.VarPattern or SyntaxKind.DeclarationPattern or SyntaxKind.RecursivePattern);
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
498else if (token.Parent.IsParentKind(SyntaxKind.DeclarationPattern))
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1886case SyntaxKind.DeclarationPattern:
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (2)
466.Where(n => n.Kind() is SyntaxKind.DeclarationExpression or SyntaxKind.DeclarationPattern); 496case 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 (49)
Parsing\DeclarationExpressionTests.cs (1)
204N(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 (8)
2024N(SyntaxKind.DeclarationPattern); 2079N(SyntaxKind.DeclarationPattern); 2138N(SyntaxKind.DeclarationPattern); 2189N(SyntaxKind.DeclarationPattern); 2233N(SyntaxKind.DeclarationPattern); 2287N(SyntaxKind.DeclarationPattern); 2342N(SyntaxKind.DeclarationPattern); 2400N(SyntaxKind.DeclarationPattern);
Parsing\LambdaReturnTypeParsingTests.cs (4)
4518N(SyntaxKind.DeclarationPattern); 4533N(SyntaxKind.DeclarationPattern); 4564N(SyntaxKind.DeclarationPattern); 4579N(SyntaxKind.DeclarationPattern);
Parsing\NullableParsingTests.cs (3)
768N(SyntaxKind.DeclarationPattern); 910N(SyntaxKind.DeclarationPattern); 969N(SyntaxKind.DeclarationPattern);
Parsing\PatternParsingTests.cs (26)
955N(SyntaxKind.DeclarationPattern); 997N(SyntaxKind.DeclarationPattern); 1181N(SyntaxKind.DeclarationPattern); 1525N(SyntaxKind.DeclarationPattern); 1593N(SyntaxKind.DeclarationPattern); 2808N(SyntaxKind.DeclarationPattern); 3228N(SyntaxKind.DeclarationPattern); 3293N(SyntaxKind.DeclarationPattern); 3478N(SyntaxKind.DeclarationPattern); 3543N(SyntaxKind.DeclarationPattern); 3760N(SyntaxKind.DeclarationPattern); 3841N(SyntaxKind.DeclarationPattern); 3928N(SyntaxKind.DeclarationPattern); 3999N(SyntaxKind.DeclarationPattern); 4072N(SyntaxKind.DeclarationPattern); 4143N(SyntaxKind.DeclarationPattern); 4216N(SyntaxKind.DeclarationPattern); 4303N(SyntaxKind.DeclarationPattern); 4916N(SyntaxKind.DeclarationPattern); 8231N(SyntaxKind.DeclarationPattern); 9311N(SyntaxKind.DeclarationPattern); 9365N(SyntaxKind.DeclarationPattern); 9961N(SyntaxKind.DeclarationPattern); 10051N(SyntaxKind.DeclarationPattern); 10201N(SyntaxKind.DeclarationPattern); 10249N(SyntaxKind.DeclarationPattern);
Parsing\PatternParsingTests_ListPatterns.cs (1)
992N(SyntaxKind.DeclarationPattern);
Parsing\RecordParsing.cs (2)
1866N(SyntaxKind.DeclarationPattern); 2028N(SyntaxKind.DeclarationPattern);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CSharpSyntaxKinds.cs (1)
112public int? DeclarationPattern => (int)SyntaxKind.DeclarationPattern;