Skip to main content

SyntaxExtensions.ParenthesesSpan Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.CSharp.dll

Overloads​

MethodSummary
ParenthesesSpan(CastExpressionSyntax)The absolute span of the parentheses, not including its leading and trailing trivia.
ParenthesesSpan(CommonForEachStatementSyntax)The absolute span of the parentheses, not including its leading and trailing trivia.
ParenthesesSpan(ForStatementSyntax)Absolute span of the parentheses, not including the leading and trailing trivia.

ParenthesesSpan(CastExpressionSyntax)​

The absolute span of the parentheses, not including its leading and trailing trivia.

public static Microsoft.CodeAnalysis.Text.TextSpan ParenthesesSpan(this Microsoft.CodeAnalysis.CSharp.Syntax.CastExpressionSyntax castExpression)

Parameters​

castExpression   CastExpressionSyntax

Returns​

TextSpan

ParenthesesSpan(CommonForEachStatementSyntax)​

The absolute span of the parentheses, not including its leading and trailing trivia.

public static Microsoft.CodeAnalysis.Text.TextSpan ParenthesesSpan(this Microsoft.CodeAnalysis.CSharp.Syntax.CommonForEachStatementSyntax forEachStatement)

Parameters​

forEachStatement   CommonForEachStatementSyntax

Returns​

TextSpan

ParenthesesSpan(ForStatementSyntax)​

Absolute span of the parentheses, not including the leading and trailing trivia.

public static Microsoft.CodeAnalysis.Text.TextSpan ParenthesesSpan(this Microsoft.CodeAnalysis.CSharp.Syntax.ForStatementSyntax forStatement)

Parameters​

forStatement   ForStatementSyntax

Returns​

TextSpan