Share via


SyntaxFactory.CompilationUnit Method

Definition

Overloads

CompilationUnit()

Represents an entire source file of VB code.

CompilationUnit(SyntaxList<OptionStatementSyntax>, SyntaxList<ImportsStatementSyntax>, SyntaxList<AttributesStatementSyntax>, SyntaxList<StatementSyntax>)

Represents an entire source file of VB code.

CompilationUnit(SyntaxList<OptionStatementSyntax>, SyntaxList<ImportsStatementSyntax>, SyntaxList<AttributesStatementSyntax>, SyntaxList<StatementSyntax>, SyntaxToken)

Represents an entire source file of VB code.

CompilationUnit()

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Represents an entire source file of VB code.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::CompilationUnitSyntax ^ CompilationUnit();
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CompilationUnitSyntax CompilationUnit ();
static member CompilationUnit : unit -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CompilationUnitSyntax
Public Shared Function CompilationUnit () As CompilationUnitSyntax

Returns

Applies to

CompilationUnit(SyntaxList<OptionStatementSyntax>, SyntaxList<ImportsStatementSyntax>, SyntaxList<AttributesStatementSyntax>, SyntaxList<StatementSyntax>)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Represents an entire source file of VB code.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::CompilationUnitSyntax ^ CompilationUnit(Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::OptionStatementSyntax ^> options, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::ImportsStatementSyntax ^> imports, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::AttributesStatementSyntax ^> attributes, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> members);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CompilationUnitSyntax CompilationUnit (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.OptionStatementSyntax> options, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsStatementSyntax> imports, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributesStatementSyntax> attributes, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> members);
static member CompilationUnit : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.OptionStatementSyntax> * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsStatementSyntax> * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributesStatementSyntax> * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CompilationUnitSyntax
Public Shared Function CompilationUnit (options As SyntaxList(Of OptionStatementSyntax), imports As SyntaxList(Of ImportsStatementSyntax), attributes As SyntaxList(Of AttributesStatementSyntax), members As SyntaxList(Of StatementSyntax)) As CompilationUnitSyntax

Parameters

options
SyntaxList<OptionStatementSyntax>

Represents the list of Option statements at the beginning of a source file.

imports
SyntaxList<ImportsStatementSyntax>

Represents the list of Imports statements at the beginning of a source file.

attributes
SyntaxList<AttributesStatementSyntax>

Represents the list of AttributeStatements at the beginning of a source file that contain the Assembly and Module attributes.

members
SyntaxList<StatementSyntax>

Represents the members of the default namespace for this source file: all the top-level type and namespace declarations in the file. May also contain Statements that are not valid

Returns

Applies to

CompilationUnit(SyntaxList<OptionStatementSyntax>, SyntaxList<ImportsStatementSyntax>, SyntaxList<AttributesStatementSyntax>, SyntaxList<StatementSyntax>, SyntaxToken)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Represents an entire source file of VB code.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::CompilationUnitSyntax ^ CompilationUnit(Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::OptionStatementSyntax ^> options, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::ImportsStatementSyntax ^> imports, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::AttributesStatementSyntax ^> attributes, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> members, Microsoft::CodeAnalysis::SyntaxToken endOfFileToken);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CompilationUnitSyntax CompilationUnit (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.OptionStatementSyntax> options, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsStatementSyntax> imports, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributesStatementSyntax> attributes, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> members, Microsoft.CodeAnalysis.SyntaxToken endOfFileToken);
static member CompilationUnit : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.OptionStatementSyntax> * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsStatementSyntax> * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributesStatementSyntax> * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CompilationUnitSyntax
Public Shared Function CompilationUnit (options As SyntaxList(Of OptionStatementSyntax), imports As SyntaxList(Of ImportsStatementSyntax), attributes As SyntaxList(Of AttributesStatementSyntax), members As SyntaxList(Of StatementSyntax), endOfFileToken As SyntaxToken) As CompilationUnitSyntax

Parameters

options
SyntaxList<OptionStatementSyntax>

Represents the list of Option statements at the beginning of a source file.

imports
SyntaxList<ImportsStatementSyntax>

Represents the list of Imports statements at the beginning of a source file.

attributes
SyntaxList<AttributesStatementSyntax>

Represents the list of AttributeStatements at the beginning of a source file that contain the Assembly and Module attributes.

members
SyntaxList<StatementSyntax>

Represents the members of the default namespace for this source file: all the top-level type and namespace declarations in the file. May also contain Statements that are not valid

endOfFileToken
SyntaxToken

Represents the end of the source file. This token may have trivia (whitespace, comments, ...) attached to it.

Returns

Applies to