86 references to ListPattern
Microsoft.CodeAnalysis.CSharp (1)
Binder\DecisionDagBuilder.cs (1)
2218
if (e.Syntax.IsKind(SyntaxKind.
ListPattern
))
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (1)
267
if (node.Parent != null && node.Kind() is SyntaxKind.
ListPattern
or SyntaxKind.CollectionExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
208
if (currentKind == SyntaxKind.OpenBracketToken && currentToken.Parent.Kind() is SyntaxKind.
ListPattern
or SyntaxKind.CollectionExpression)
606
=> token.Parent is (kind: SyntaxKind.ArrayRankSpecifier or SyntaxKind.BracketedArgumentList or SyntaxKind.BracketedParameterList or SyntaxKind.ImplicitArrayCreationExpression or SyntaxKind.
ListPattern
or SyntaxKind.CollectionExpression);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
128
public int? ListPattern => (int)SyntaxKind.
ListPattern
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1405
if (leftToken.Kind() is SyntaxKind.OpenBracketToken or SyntaxKind.CommaToken && leftToken.Parent.IsKind(SyntaxKind.
ListPattern
))
2699
token.Parent.IsKind(SyntaxKind.
ListPattern
))
Microsoft.CodeAnalysis.CSharp.Features (2)
BraceCompletion\BracketBraceCompletionService.cs (1)
49
if (currentToken.IsKind(SyntaxKind.OpenBracketToken) && currentToken.Parent.IsKind(SyntaxKind.
ListPattern
))
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
318
if (designation is not { Parent: PatternSyntax(not SyntaxKind.
ListPattern
) containingPattern })
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (71)
Parsing\CollectionExpressionParsingTests.cs (1)
1151
N(SyntaxKind.
ListPattern
);
Parsing\NullableParsingTests.cs (1)
2350
N(SyntaxKind.
ListPattern
);
Parsing\PatternParsingTests_ListPatterns.cs (31)
44
N(SyntaxKind.
ListPattern
);
47
N(SyntaxKind.
ListPattern
);
77
N(SyntaxKind.
ListPattern
);
80
N(SyntaxKind.
ListPattern
);
115
N(SyntaxKind.
ListPattern
);
162
N(SyntaxKind.
ListPattern
);
245
N(SyntaxKind.
ListPattern
);
282
N(SyntaxKind.
ListPattern
);
322
N(SyntaxKind.
ListPattern
);
361
N(SyntaxKind.
ListPattern
);
460
N(SyntaxKind.
ListPattern
);
486
N(SyntaxKind.
ListPattern
);
566
N(SyntaxKind.
ListPattern
);
572
N(SyntaxKind.
ListPattern
);
596
N(SyntaxKind.
ListPattern
);
632
N(SyntaxKind.
ListPattern
);
675
N(SyntaxKind.
ListPattern
);
780
N(SyntaxKind.
ListPattern
);
848
N(SyntaxKind.
ListPattern
);
851
N(SyntaxKind.
ListPattern
);
957
N(SyntaxKind.
ListPattern
);
1081
N(SyntaxKind.
ListPattern
);
1114
N(SyntaxKind.
ListPattern
);
1150
N(SyntaxKind.
ListPattern
);
1190
N(SyntaxKind.
ListPattern
);
1241
N(SyntaxKind.
ListPattern
);
1292
N(SyntaxKind.
ListPattern
);
1355
N(SyntaxKind.
ListPattern
);
1418
N(SyntaxKind.
ListPattern
);
1485
N(SyntaxKind.
ListPattern
);
1552
N(SyntaxKind.
ListPattern
);
Parsing\PatternParsingTests2.cs (2)
407
N(SyntaxKind.
ListPattern
);
793
N(SyntaxKind.
ListPattern
);
Parsing\StatementParsingTests.cs (12)
5204
N(SyntaxKind.
ListPattern
);
5214
N(SyntaxKind.
ListPattern
);
5271
N(SyntaxKind.
ListPattern
);
5274
N(SyntaxKind.
ListPattern
);
5286
N(SyntaxKind.
ListPattern
);
5289
N(SyntaxKind.
ListPattern
);
5354
N(SyntaxKind.
ListPattern
);
5357
N(SyntaxKind.
ListPattern
);
5360
N(SyntaxKind.
ListPattern
);
5374
N(SyntaxKind.
ListPattern
);
5377
N(SyntaxKind.
ListPattern
);
5380
N(SyntaxKind.
ListPattern
);
Parsing\SwitchExpressionParsingTests.cs (24)
3704
N(SyntaxKind.
ListPattern
);
3718
N(SyntaxKind.
ListPattern
);
3767
N(SyntaxKind.
ListPattern
);
3781
N(SyntaxKind.
ListPattern
);
3830
N(SyntaxKind.
ListPattern
);
3833
N(SyntaxKind.
ListPattern
);
3849
N(SyntaxKind.
ListPattern
);
3852
N(SyntaxKind.
ListPattern
);
3909
N(SyntaxKind.
ListPattern
);
3912
N(SyntaxKind.
ListPattern
);
3928
N(SyntaxKind.
ListPattern
);
3931
N(SyntaxKind.
ListPattern
);
3988
N(SyntaxKind.
ListPattern
);
3991
N(SyntaxKind.
ListPattern
);
3994
N(SyntaxKind.
ListPattern
);
4012
N(SyntaxKind.
ListPattern
);
4015
N(SyntaxKind.
ListPattern
);
4018
N(SyntaxKind.
ListPattern
);
4083
N(SyntaxKind.
ListPattern
);
4086
N(SyntaxKind.
ListPattern
);
4089
N(SyntaxKind.
ListPattern
);
4107
N(SyntaxKind.
ListPattern
);
4110
N(SyntaxKind.
ListPattern
);
4113
N(SyntaxKind.
ListPattern
);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (1)
267
if (node.Parent != null && node.Kind() is SyntaxKind.
ListPattern
or SyntaxKind.CollectionExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
208
if (currentKind == SyntaxKind.OpenBracketToken && currentToken.Parent.Kind() is SyntaxKind.
ListPattern
or SyntaxKind.CollectionExpression)
606
=> token.Parent is (kind: SyntaxKind.ArrayRankSpecifier or SyntaxKind.BracketedArgumentList or SyntaxKind.BracketedParameterList or SyntaxKind.ImplicitArrayCreationExpression or SyntaxKind.
ListPattern
or SyntaxKind.CollectionExpression);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
128
public int? ListPattern => (int)SyntaxKind.
ListPattern
;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1405
if (leftToken.Kind() is SyntaxKind.OpenBracketToken or SyntaxKind.CommaToken && leftToken.Parent.IsKind(SyntaxKind.
ListPattern
))
2699
token.Parent.IsKind(SyntaxKind.
ListPattern
))