Skip to main content

CSharpFactory.CompilationUnit Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
CompilationUnit(MemberDeclarationSyntax)
CompilationUnit(SyntaxList<UsingDirectiveSyntax>, MemberDeclarationSyntax)
CompilationUnit(SyntaxList<UsingDirectiveSyntax>, SyntaxList<MemberDeclarationSyntax>)

CompilationUnit(MemberDeclarationSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax CompilationUnit(Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax member)

Parameters

member MemberDeclarationSyntax

Returns

CompilationUnitSyntax

CompilationUnit(SyntaxList<UsingDirectiveSyntax>, MemberDeclarationSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax CompilationUnit(Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax> usings, Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax member)

Parameters

usings SyntaxList<UsingDirectiveSyntax>

member MemberDeclarationSyntax

Returns

CompilationUnitSyntax

CompilationUnit(SyntaxList<UsingDirectiveSyntax>, SyntaxList<MemberDeclarationSyntax>)

public static Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax CompilationUnit(Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax> usings, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax> members)

Parameters

usings SyntaxList<UsingDirectiveSyntax>

members SyntaxList<MemberDeclarationSyntax>

Returns

CompilationUnitSyntax