27 references to CompilationUnit
Microsoft.CodeAnalysis.VisualBasic (27)
Binding\BinderFactory.BinderFactoryVisitor.vb (1)
85If _factory.InScript AndAlso node.Parent.Kind = SyntaxKind.CompilationUnit Then
Binding\BinderFactory.vb (4)
49node.Kind = SyntaxKind.CompilationUnit Then 165If node.Kind <> SyntaxKind.CompilationUnit OrElse _tree.Options.Kind = SourceCodeKind.Regular Then 201Return BuildNamespaceBinder(containingNamespaceBinder, nsBlockSyntax.NamespaceStatement.Name, nsBlockSyntax.Parent.Kind = SyntaxKind.CompilationUnit) 577If node IsNot Nothing AndAlso (node.Kind = SyntaxKind.NamespaceBlock OrElse node.Kind = SyntaxKind.CompilationUnit) Then
Compilation\SyntaxTreeSemanticModel.vb (1)
988Case SyntaxKind.CompilationUnit
Declarations\DeclarationTreeBuilder.vb (2)
132Debug.Assert(parent.Kind = SyntaxKind.CompilationUnit AndAlso _syntaxTree.Options.Kind <> SourceCodeKind.Regular) 355If nsBlockSyntax.Parent.Kind = SyntaxKind.CompilationUnit Then
Generated\Syntax.xml.Internal.Generated.vb (2)
34816Return New CompilationUnitSyntax(SyntaxKind.CompilationUnit, options.Node, [imports].Node, attributes.Node, members.Node, endOfFileToken) 46882Return New CompilationUnitSyntax(SyntaxKind.CompilationUnit, options.Node, [imports].Node, attributes.Node, members.Node, endOfFileToken, _factoryContext)
Generated\Syntax.xml.Main.Generated.vb (1)
6680Return New CompilationUnitSyntax(SyntaxKind.CompilationUnit, Nothing, Nothing, options.Node, [imports].Node, attributes.Node, members.Node, DirectCast(endOfFileToken.Node, InternalSyntax.PunctuationSyntax))
Generated\Syntax.xml.Syntax.Generated.vb (1)
385''' <item><description><see cref="SyntaxKind.CompilationUnit"/></description></item>
Parser\BlockContexts\BlockContext.vb (2)
164Debug.Assert(BlockKind = SyntaxKind.CompilationUnit) 727Case SyntaxKind.CompilationUnit,
Parser\BlockContexts\CompilationUnitContext.vb (2)
26MyBase.New(SyntaxKind.CompilationUnit, Nothing, Nothing) 438Debug.Assert(_declarationBlocksBeingVisited.Count > 1 OrElse containingBlock.Kind = SyntaxKind.CompilationUnit)
Parser\BlockContexts\NamespaceBlockContext.vb (1)
24Debug.Assert(kind = SyntaxKind.CompilationUnit)
Parser\Parser.vb (3)
792If Context.BlockKind = SyntaxKind.CompilationUnit Then 1387SyntaxKind.CompilationUnit 2068SyntaxKind.CompilationUnit
Scanner\Blender.vb (1)
118If node.Kind = SyntaxKind.CompilationUnit OrElse IsStatementLike(node) Then
src\Compilers\VisualBasic\BasicAnalyzerDriver\VisualBasicDeclarationComputer.vb (1)
126Case SyntaxKind.CompilationUnit
Symbols\Source\ImplicitNamedTypeSymbol.vb (1)
187Dim nodeMembers = If(node.Kind = SyntaxKind.CompilationUnit, DirectCast(node, CompilationUnitSyntax).Members, DirectCast(node, NamespaceBlockSyntax).Members)
Symbols\Source\SourceNamedTypeSymbol.vb (1)
1445location = If(syntax.Kind = SyntaxKind.CompilationUnit OrElse syntax.Kind = SyntaxKind.NamespaceBlock,
Symbols\Source\SourceNamespaceSymbol.vb (1)
388Case SyntaxKind.CompilationUnit
Symbols\Symbol_Attributes.vb (1)
364If parent.IsKind(SyntaxKind.AttributesStatement) AndAlso parent.Parent.IsKind(SyntaxKind.CompilationUnit) Then
Syntax\VisualBasicSyntaxTree.ParsedSyntaxTree.vb (1)
57_hasCompilationUnitRoot = (syntaxRoot.Kind = SyntaxKind.CompilationUnit)