Skip to main content

StatementListSelection.Create Method

Containing Type: StatementListSelection

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
Create(BlockSyntax, TextSpan)Creates a new StatementListSelection based on the specified block and span.
Create(StatementListInfo, TextSpan)Creates a new StatementListSelection based on the specified StatementListInfo and span.
Create(SwitchSectionSyntax, TextSpan)Creates a new StatementListSelection based on the specified switch section and span.

Create(BlockSyntax, TextSpan)

Creates a new StatementListSelection based on the specified block and span.

public static Roslynator.CSharp.StatementListSelection Create(Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block, Microsoft.CodeAnalysis.Text.TextSpan span)

Parameters

block BlockSyntax

span TextSpan

Returns

StatementListSelection

Create(StatementListInfo, TextSpan)

Creates a new StatementListSelection based on the specified StatementListInfo and span.

public static Roslynator.CSharp.StatementListSelection Create(in Roslynator.CSharp.Syntax.StatementListInfo statementsInfo, Microsoft.CodeAnalysis.Text.TextSpan span)

Parameters

statementsInfo StatementListInfo

span TextSpan

Returns

StatementListSelection

Create(SwitchSectionSyntax, TextSpan)

Creates a new StatementListSelection based on the specified switch section and span.

public static Roslynator.CSharp.StatementListSelection Create(Microsoft.CodeAnalysis.CSharp.Syntax.SwitchSectionSyntax switchSection, Microsoft.CodeAnalysis.Text.TextSpan span)

Parameters

switchSection SwitchSectionSyntax

span TextSpan

Returns

StatementListSelection