Skip to main content

SyntaxInfo.UsingDirectiveListInfo Method

Containing Type: SyntaxInfo

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
UsingDirectiveListInfo(CompilationUnitSyntax)Creates a new UsingDirectiveListInfo from the specified compilation unit.
UsingDirectiveListInfo(FileScopedNamespaceDeclarationSyntax)Creates a new UsingDirectiveListInfo from the specified declaration.
UsingDirectiveListInfo(NamespaceDeclarationSyntax)Creates a new UsingDirectiveListInfo from the specified declaration.
UsingDirectiveListInfo(SyntaxNode)Creates a new UsingDirectiveListInfo from the specified node.

UsingDirectiveListInfo(CompilationUnitSyntax)

Creates a new UsingDirectiveListInfo from the specified compilation unit.

public static Roslynator.CSharp.Syntax.UsingDirectiveListInfo UsingDirectiveListInfo(Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax compilationUnit)

Parameters

compilationUnit CompilationUnitSyntax

Returns

UsingDirectiveListInfo

UsingDirectiveListInfo(FileScopedNamespaceDeclarationSyntax)

Creates a new UsingDirectiveListInfo from the specified declaration.

public static Roslynator.CSharp.Syntax.UsingDirectiveListInfo UsingDirectiveListInfo(Microsoft.CodeAnalysis.CSharp.Syntax.FileScopedNamespaceDeclarationSyntax declaration)

Parameters

declaration FileScopedNamespaceDeclarationSyntax

Returns

UsingDirectiveListInfo

UsingDirectiveListInfo(NamespaceDeclarationSyntax)

Creates a new UsingDirectiveListInfo from the specified declaration.

public static Roslynator.CSharp.Syntax.UsingDirectiveListInfo UsingDirectiveListInfo(Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax declaration)

Parameters

declaration NamespaceDeclarationSyntax

Returns

UsingDirectiveListInfo

UsingDirectiveListInfo(SyntaxNode)

Creates a new UsingDirectiveListInfo from the specified node.

public static Roslynator.CSharp.Syntax.UsingDirectiveListInfo UsingDirectiveListInfo(Microsoft.CodeAnalysis.SyntaxNode node)

Parameters

node SyntaxNode

Returns

UsingDirectiveListInfo