Skip to main content

MemberDeclarationListSelection Class

Namespace: Roslynator.CSharp

Assembly: Roslynator.CSharp.dll

Represents selected member declarations in a SyntaxList<TNode>.

public sealed class MemberDeclarationListSelection : Roslynator.SyntaxListSelection<Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax>

Inheritance

Object SyntaxListSelection<TNode> MemberDeclarationListSelection

Implements

Indexers

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

Properties

PropertySummary
CountGets a number of selected nodes. (Inherited from SyntaxListSelection<TNode>)
FirstIndexGets an index of the first selected node. (Inherited from SyntaxListSelection<TNode>)
LastIndexGets an index of the last selected node. (Inherited from SyntaxListSelection<TNode>)
OriginalSpanGets the original span that was used to determine selected nodes. (Inherited from SyntaxListSelection<TNode>)
ParentGets a node that contains selected members.
UnderlyingListGets an underlying list that contains selected nodes. (Inherited from SyntaxListSelection<TNode>)

Methods

MethodSummary
Create(CompilationUnitSyntax, TextSpan)Creates a new MemberDeclarationListSelection based on the specified compilation unit and span.
Create(NamespaceDeclarationSyntax, TextSpan)Creates a new MemberDeclarationListSelection based on the specified namespace declaration and span.
Create(TypeDeclarationSyntax, TextSpan)Creates a new MemberDeclarationListSelection based on the specified type declaration 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(NamespaceDeclarationSyntax, TextSpan, MemberDeclarationListSelection)Creates a new MemberDeclarationListSelection based on the specified namespace declaration and span.
TryCreate(TypeDeclarationSyntax, TextSpan, MemberDeclarationListSelection)Creates a new MemberDeclarationListSelection based on the specified type declaration and span.

Structs

StructSummary
Enumerator(Inherited from SyntaxListSelection<TNode>)