MemberDeclarationListSelection.Create Method
Containing Type: MemberDeclarationListSelection
Assembly: Roslynator.CSharp.dll
Overloads
Method | Summary |
---|---|
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. |
Create(CompilationUnitSyntax, TextSpan)
Creates a new MemberDeclarationListSelection based on the specified compilation unit and span.
public static Roslynator.CSharp.MemberDeclarationListSelection Create(Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax compilationUnit, Microsoft.CodeAnalysis.Text.TextSpan span)
Parameters
compilationUnit CompilationUnitSyntax
span TextSpan
Returns
MemberDeclarationListSelection
Create(NamespaceDeclarationSyntax, TextSpan)
Creates a new MemberDeclarationListSelection based on the specified namespace declaration and span.
public static Roslynator.CSharp.MemberDeclarationListSelection Create(Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax namespaceDeclaration, Microsoft.CodeAnalysis.Text.TextSpan span)
Parameters
namespaceDeclaration NamespaceDeclarationSyntax
span TextSpan
Returns
MemberDeclarationListSelection
Create(TypeDeclarationSyntax, TextSpan)
Creates a new MemberDeclarationListSelection based on the specified type declaration and span.
public static Roslynator.CSharp.MemberDeclarationListSelection Create(Microsoft.CodeAnalysis.CSharp.Syntax.TypeDeclarationSyntax typeDeclaration, Microsoft.CodeAnalysis.Text.TextSpan span)
Parameters
typeDeclaration TypeDeclarationSyntax
span TextSpan