33 references to CloseParenToken
Microsoft.CodeAnalysis.CSharp (9)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1927
=> node.Update(VisitList(node.AttributeLists), VisitToken(node.IfKeyword), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Condition) ?? throw new ArgumentNullException("condition"), VisitToken(node.
CloseParenToken
), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"), (ElseClauseSyntax?)Visit(node.Else));
_generated\2\Syntax.xml.Syntax.Generated.cs (7)
8418
if (attributeLists != this.AttributeLists || ifKeyword != this.IfKeyword || openParenToken != this.OpenParenToken || condition != this.Condition || closeParenToken != this.
CloseParenToken
|| statement != this.Statement || @else != this.Else)
8429
public new IfStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.IfKeyword, this.OpenParenToken, this.Condition, this.
CloseParenToken
, this.Statement, this.Else);
8430
public IfStatementSyntax WithIfKeyword(SyntaxToken ifKeyword) => Update(this.AttributeLists, ifKeyword, this.OpenParenToken, this.Condition, this.
CloseParenToken
, this.Statement, this.Else);
8431
public IfStatementSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(this.AttributeLists, this.IfKeyword, openParenToken, this.Condition, this.
CloseParenToken
, this.Statement, this.Else);
8432
public IfStatementSyntax WithCondition(ExpressionSyntax condition) => Update(this.AttributeLists, this.IfKeyword, this.OpenParenToken, condition, this.
CloseParenToken
, this.Statement, this.Else);
8434
public IfStatementSyntax WithStatement(StatementSyntax statement) => Update(this.AttributeLists, this.IfKeyword, this.OpenParenToken, this.Condition, this.
CloseParenToken
, statement, this.Else);
8435
public IfStatementSyntax WithElse(ElseClauseSyntax? @else) => Update(this.AttributeLists, this.IfKeyword, this.OpenParenToken, this.Condition, this.
CloseParenToken
, this.Statement, @else);
Lowering\Instrumentation\DebugInfoInjector.cs (1)
366
syntax.
CloseParenToken
.Span.End),
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
716
IfStatementSyntax n => (n.OpenParenToken, n.
CloseParenToken
),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
294
IfStatementSyntax ifStatement => ifStatement.
CloseParenToken
.Equals(token),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (1)
86
return node != null && IsOnHeader(root, position, node, node.
CloseParenToken
);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseNullPropagation\CSharpUseNullPropagationCodeFixProvider.cs (1)
50
.WithStatement(newWhenTrueStatement.WithPrependedLeadingTrivia(ifStatement.
CloseParenToken
.TrailingTrivia));
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (2)
89
? newIf.ReplaceToken(newIf.
CloseParenToken
, newIf.
CloseParenToken
.WithTrailingTrivia(trivia))
Microsoft.CodeAnalysis.CSharp.Features (12)
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
75
ifStatement.
CloseParenToken
.WithPrependedLeadingTrivia(ElasticMarker),
ConvertLinq\ConvertForEachToLinqQuery\AbstractConverter.cs (2)
88
ifStatement.Condition.WithCommentsFrom(ifStatement.OpenParenToken, ifStatement.
CloseParenToken
))
275
ifStatement.Condition.WithCommentsFrom(ifStatement.OpenParenToken, ifStatement.
CloseParenToken
))
EditAndContinue\BreakpointSpans.cs (1)
731
return CreateSpan(ifStatement, ifStatement.
CloseParenToken
);
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1794
return TextSpan.FromBounds(ifStatement.IfKeyword.SpanStart, ifStatement.
CloseParenToken
.Span.End);
SplitOrMergeIfStatements\CSharpMergeConsecutiveIfStatementsCodeRefactoringProvider.cs (2)
38
span.IsAround(ifStatement.IfKeyword, ifStatement.
CloseParenToken
) ||
52
span.IsAround(elseClause.ElseKeyword, elseIfStatement.
CloseParenToken
) ||
SplitOrMergeIfStatements\CSharpMergeNestedIfStatementsCodeRefactoringProvider.cs (2)
38
span.IsAround(ifStatement.IfKeyword, ifStatement.
CloseParenToken
) ||
52
span.IsAround(elseClause.ElseKeyword, elseIfStatement.
CloseParenToken
) ||
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseNullPropagation\CSharpUseNullPropagationCodeFixProvider.cs (1)
50
.WithStatement(newWhenTrueStatement.WithPrependedLeadingTrivia(ifStatement.
CloseParenToken
.TrailingTrivia));
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (2)
89
? newIf.ReplaceToken(newIf.
CloseParenToken
, newIf.
CloseParenToken
.WithTrailingTrivia(trivia))
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
716
IfStatementSyntax n => (n.OpenParenToken, n.
CloseParenToken
),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
294
IfStatementSyntax ifStatement => ifStatement.
CloseParenToken
.Equals(token),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (1)
86
return node != null && IsOnHeader(root, position, node, node.
CloseParenToken
);
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
716
IfStatementSyntax n => (n.OpenParenToken, n.
CloseParenToken
),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
294
IfStatementSyntax ifStatement => ifStatement.
CloseParenToken
.Equals(token),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (1)
86
return node != null && IsOnHeader(root, position, node, node.
CloseParenToken
);