Skip to content

Latest commit

 

History

History
66 lines (47 loc) · 5.54 KB

File metadata and controls

66 lines (47 loc) · 5.54 KB

StatementListSelection Class

HomeIndexersPropertiesMethodsStructs

Namespace: Roslynator.CSharp

Assembly: Roslynator.CSharp.dll

Represents selected statements in a SyntaxList<TNode>.

public sealed class StatementListSelection : Roslynator.SyntaxListSelection<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax>

Inheritance

ObjectSyntaxListSelection<TNode> → StatementListSelection

Implements

Indexers

Indexer Summary
Item[Int32] Gets the selected node at the specified index. (Inherited from SyntaxListSelection<TNode>)

Properties

Property Summary
Count Gets a number of selected nodes. (Inherited from SyntaxListSelection<TNode>)
FirstIndex Gets an index of the first selected node. (Inherited from SyntaxListSelection<TNode>)
LastIndex Gets an index of the last selected node. (Inherited from SyntaxListSelection<TNode>)
OriginalSpan Gets the original span that was used to determine selected nodes. (Inherited from SyntaxListSelection<TNode>)
UnderlyingList Gets an underlying list that contains selected nodes. (Inherited from SyntaxListSelection<TNode>)

Methods

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.
Equals(Object) (Inherited from Object)
First() Gets the first selected node. (Inherited from SyntaxListSelection<TNode>)
GetEnumerator() Returns an enumerator that iterates through selected nodes. (Inherited from SyntaxListSelection<TNode>)
GetHashCode() (Inherited from Object)
GetType() (Inherited from Object)
Last() Gets the last selected node. (Inherited from SyntaxListSelection<TNode>)
MemberwiseClone() (Inherited from Object)
ToString() (Inherited from Object)
TryCreate(BlockSyntax, TextSpan, StatementListSelection) Creates a new StatementListSelection based on the specified block and span.
TryCreate(SwitchSectionSyntax, TextSpan, StatementListSelection) Creates a new StatementListSelection based on the specified switch section and span.

Structs

Struct Summary
Enumerator (Inherited from SyntaxListSelection<TNode>)