45 references to ParenthesizedPattern
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryParentheses\CSharpRemoveUnnecessaryPatternParenthesesDiagnosticAnalyzer.cs (1)
22=> SyntaxKind.ParenthesizedPattern;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
163if ((previousToken.Parent.Kind() is SyntaxKind.ParenthesizedExpression or SyntaxKind.ParenthesizedPattern && previousKind == SyntaxKind.OpenParenToken) || 164(currentToken.Parent.Kind() is SyntaxKind.ParenthesizedExpression or SyntaxKind.ParenthesizedPattern && currentKind == SyntaxKind.CloseParenToken))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
126public int? ParenthesizedPattern => (int)SyntaxKind.ParenthesizedPattern;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1376if (leftToken.Parent.IsKind(SyntaxKind.ParenthesizedPattern))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (12)
Semantics\PatternMatchingTests3.cs (12)
4117Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4139Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4152Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4207Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4233Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4265Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4344Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4366Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4379Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4441Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4467Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4499Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind());
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryParentheses\CSharpRemoveUnnecessaryPatternParenthesesDiagnosticAnalyzer.cs (1)
22=> SyntaxKind.ParenthesizedPattern;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (23)
Parsing\PatternParsingTests.cs (15)
1975N(SyntaxKind.ParenthesizedPattern); 1978N(SyntaxKind.ParenthesizedPattern); 9732N(SyntaxKind.ParenthesizedPattern); 10438N(SyntaxKind.ParenthesizedPattern); 11045N(SyntaxKind.ParenthesizedPattern); 11097N(SyntaxKind.ParenthesizedPattern); 11209N(SyntaxKind.ParenthesizedPattern); 11378N(SyntaxKind.ParenthesizedPattern); 11424N(SyntaxKind.ParenthesizedPattern); 11490N(SyntaxKind.ParenthesizedPattern); 11516N(SyntaxKind.ParenthesizedPattern); 12240N(SyntaxKind.ParenthesizedPattern); 12291N(SyntaxKind.ParenthesizedPattern); 12441N(SyntaxKind.ParenthesizedPattern); 12492N(SyntaxKind.ParenthesizedPattern);
Parsing\PatternParsingTests_ListPatterns.cs (1)
1044N(SyntaxKind.ParenthesizedPattern);
Parsing\PatternParsingTests2.cs (2)
1167N(SyntaxKind.ParenthesizedPattern); 1234N(SyntaxKind.ParenthesizedPattern);
Parsing\RangeExpressionParsingTests.cs (2)
272N(SyntaxKind.ParenthesizedPattern); 303N(SyntaxKind.ParenthesizedPattern);
Parsing\StatementParsingTests.cs (1)
5763N(SyntaxKind.ParenthesizedPattern);
Parsing\SwitchExpressionParsingTests.cs (2)
4716N(SyntaxKind.ParenthesizedPattern); 4786N(SyntaxKind.ParenthesizedPattern);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
163if ((previousToken.Parent.Kind() is SyntaxKind.ParenthesizedExpression or SyntaxKind.ParenthesizedPattern && previousKind == SyntaxKind.OpenParenToken) || 164(currentToken.Parent.Kind() is SyntaxKind.ParenthesizedExpression or SyntaxKind.ParenthesizedPattern && currentKind == SyntaxKind.CloseParenToken))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
126public int? ParenthesizedPattern => (int)SyntaxKind.ParenthesizedPattern;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1376if (leftToken.Parent.IsKind(SyntaxKind.ParenthesizedPattern))