20 references to OpenParenToken
Microsoft.CodeAnalysis.CSharp (9)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1933
=> node.Update(VisitList(node.AttributeLists), VisitToken(node.SwitchKeyword), VisitToken(node.
OpenParenToken
), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.CloseParenToken), VisitToken(node.OpenBraceToken), VisitList(node.Sections), VisitToken(node.CloseBraceToken));
_generated\2\Syntax.xml.Syntax.Generated.cs (8)
8579
if (attributeLists != this.AttributeLists || switchKeyword != this.SwitchKeyword || openParenToken != this.
OpenParenToken
|| expression != this.Expression || closeParenToken != this.CloseParenToken || openBraceToken != this.OpenBraceToken || sections != this.Sections || closeBraceToken != this.CloseBraceToken)
8590
public new SwitchStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.SwitchKeyword, this.
OpenParenToken
, this.Expression, this.CloseParenToken, this.OpenBraceToken, this.Sections, this.CloseBraceToken);
8591
public SwitchStatementSyntax WithSwitchKeyword(SyntaxToken switchKeyword) => Update(this.AttributeLists, switchKeyword, this.
OpenParenToken
, this.Expression, this.CloseParenToken, this.OpenBraceToken, this.Sections, this.CloseBraceToken);
8593
public SwitchStatementSyntax WithExpression(ExpressionSyntax expression) => Update(this.AttributeLists, this.SwitchKeyword, this.
OpenParenToken
, expression, this.CloseParenToken, this.OpenBraceToken, this.Sections, this.CloseBraceToken);
8594
public SwitchStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.AttributeLists, this.SwitchKeyword, this.
OpenParenToken
, this.Expression, closeParenToken, this.OpenBraceToken, this.Sections, this.CloseBraceToken);
8595
public SwitchStatementSyntax WithOpenBraceToken(SyntaxToken openBraceToken) => Update(this.AttributeLists, this.SwitchKeyword, this.
OpenParenToken
, this.Expression, this.CloseParenToken, openBraceToken, this.Sections, this.CloseBraceToken);
8596
public SwitchStatementSyntax WithSections(SyntaxList<SwitchSectionSyntax> sections) => Update(this.AttributeLists, this.SwitchKeyword, this.
OpenParenToken
, this.Expression, this.CloseParenToken, this.OpenBraceToken, sections, this.CloseBraceToken);
8597
public SwitchStatementSyntax WithCloseBraceToken(SyntaxToken closeBraceToken) => Update(this.AttributeLists, this.SwitchKeyword, this.
OpenParenToken
, this.Expression, this.CloseParenToken, this.OpenBraceToken, this.Sections, closeBraceToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
717
SwitchStatementSyntax n when n.
OpenParenToken
!= default => (n.
OpenParenToken
, n.CloseParenToken),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
268
return node.Update(node.SwitchKeyword, node.
OpenParenToken
,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2206
if (previousToken.HasValue && previousToken.Value != switchStatement.
OpenParenToken
)
Microsoft.CodeAnalysis.CSharp.Features (1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
268
return node.Update(node.SwitchKeyword, node.
OpenParenToken
,
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
717
SwitchStatementSyntax n when n.
OpenParenToken
!= default => (n.
OpenParenToken
, n.CloseParenToken),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2206
if (previousToken.HasValue && previousToken.Value != switchStatement.
OpenParenToken
)
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
717
SwitchStatementSyntax n when n.
OpenParenToken
!= default => (n.
OpenParenToken
, n.CloseParenToken),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2206
if (previousToken.HasValue && previousToken.Value != switchStatement.
OpenParenToken
)