StatementListSelection.Create Method
Containing Type: StatementListSelection
Assembly: Roslynator.CSharp.dll
Overloads
Method | Summary |
---|---|
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
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
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