4 instantiations of ModuleBlockSyntax
Microsoft.CodeAnalysis.VisualBasic (4)
Generated\Syntax.xml.Internal.Generated.vb (1)
1723Return new Microsoft.CodeAnalysis.VisualBasic.Syntax.ModuleBlockSyntax(Me, parent, startLocation)
Generated\Syntax.xml.Main.Generated.vb (2)
1661Return New ModuleBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newModuleStatement, newInherits.Node, newImplements.Node, newMembers.Node, newEndModuleStatement) 7080Return New ModuleBlockSyntax(SyntaxKind.ModuleBlock, Nothing, Nothing, moduleStatement, [inherits].Node, [implements].Node, members.Node, endModuleStatement)
Generated\Syntax.xml.Syntax.Generated.vb (1)
1625Me.New(New Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.ModuleBlockSyntax(kind, errors, annotations, DirectCast(moduleStatement.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.ModuleStatementSyntax), if([inherits] IsNot Nothing, [inherits].Green, Nothing), if([implements] IsNot Nothing, [implements].Green, Nothing), if(members IsNot Nothing, members.Green, Nothing), DirectCast(endModuleStatement.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.EndBlockStatementSyntax)), Nothing, 0)
67 references to ModuleBlockSyntax
Microsoft.CodeAnalysis.VisualBasic (21)
Binding\BinderFactory.BinderFactoryVisitor.vb (1)
138Public Overrides Function VisitModuleBlock(ByVal moduleSyntax As ModuleBlockSyntax) As Binder
Declarations\DeclarationTreeBuilder.vb (1)
528Public Overrides Function VisitModuleBlock(ByVal moduleBlockSyntax As ModuleBlockSyntax) As SingleNamespaceOrTypeDeclaration
Generated\Syntax.xml.Main.Generated.vb (6)
44Public Overridable Function VisitModuleBlock(ByVal node As ModuleBlockSyntax) As TResult 779Public Overridable Sub VisitModuleBlock(ByVal node As ModuleBlockSyntax) 1646Public Overrides Function VisitModuleBlock(ByVal node As ModuleBlockSyntax) As SyntaxNode 7063Public Shared Function ModuleBlock(moduleStatement As ModuleStatementSyntax, [inherits] As SyntaxList(of InheritsStatementSyntax), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax), endModuleStatement As EndBlockStatementSyntax) As ModuleBlockSyntax 7100Public Shared Function ModuleBlock(moduleStatement As ModuleStatementSyntax, [inherits] As SyntaxList(of InheritsStatementSyntax), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax)) As ModuleBlockSyntax 7112Public Shared Function ModuleBlock(moduleStatement As ModuleStatementSyntax) As ModuleBlockSyntax
Generated\Syntax.xml.Syntax.Generated.vb (9)
1642Public Shadows Function WithModuleStatement(moduleStatement as ModuleStatementSyntax) As ModuleBlockSyntax 1672Public Shadows Function WithInherits([inherits] as SyntaxList(Of InheritsStatementSyntax)) As ModuleBlockSyntax 1676Public Shadows Function AddInherits(ParamArray items As InheritsStatementSyntax()) As ModuleBlockSyntax 1710Public Shadows Function WithImplements([implements] as SyntaxList(Of ImplementsStatementSyntax)) As ModuleBlockSyntax 1714Public Shadows Function AddImplements(ParamArray items As ImplementsStatementSyntax()) As ModuleBlockSyntax 1748Public Shadows Function WithMembers(members as SyntaxList(Of StatementSyntax)) As ModuleBlockSyntax 1752Public Shadows Function AddMembers(ParamArray items As StatementSyntax()) As ModuleBlockSyntax 1774Public Shadows Function WithEndModuleStatement(endModuleStatement as EndBlockStatementSyntax) As ModuleBlockSyntax 1840Public Function Update(moduleStatement As ModuleStatementSyntax, [inherits] As SyntaxList(of InheritsStatementSyntax), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax), endModuleStatement As EndBlockStatementSyntax) As ModuleBlockSyntax
Semantics\StatementSyntaxWalker.vb (1)
41Public Overrides Sub VisitModuleBlock(ByVal node As ModuleBlockSyntax)
Syntax\SyntaxNormalizer.vb (1)
782Public Overrides Function VisitModuleBlock(ByVal node As ModuleBlockSyntax) As SyntaxNode
Syntax\TypeBlockSyntax.vb (2)
262Public Shadows Function WithBegin(begin As ModuleStatementSyntax) As ModuleBlockSyntax 268Public Shadows Function WithEnd([end] As EndBlockStatementSyntax) As ModuleBlockSyntax
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (3)
NodeBasedFormattingRule.vb (1)
318Dim [module] = TryCast(node, ModuleBlockSyntax)
StatementSyntaxExtensions.vb (1)
231Dim moduleBlock = DirectCast(member, ModuleBlockSyntax)
VisualBasicAccessibilityFacts.vb (1)
122Return DirectCast(declaration, ModuleBlockSyntax).ModuleStatement.Modifiers
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
EndConstructGeneration\EndConstructStatementVisitor.vb (1)
199Dim needsEnd = node.GetAncestorsOrThis(Of ModuleBlockSyntax)().Any(Function(block) block.EndBlockStatement.IsMissing)
LineCommit\ContainingStatementInfo.MatchingStatementsVisitor.vb (1)
72Public Overrides Function VisitModuleBlock(node As ModuleBlockSyntax) As IList(Of StatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (2)
Extensions\StatementSyntaxExtensionTests.vb (2)
96TestTypeBlockWithPublicModifier(Of ModuleBlockSyntax)(code) 192VerifyTokenName(Of ModuleBlockSyntax)(code, "M")
Microsoft.CodeAnalysis.VisualBasic.Features (4)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (2)
132(Function(n As ModuleBlockSyntax) n.BlockStatement), 152(Function(n As ModuleBlockSyntax) n.EndBlockStatement),
Completion\KeywordRecommenders\Declarations\EndBlockKeywordRecommender.vb (1)
118Public Overrides Function VisitModuleBlock(ByVal node As ModuleBlockSyntax) As SyntaxKind?
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
371Public Overrides Function VisitModuleBlock(ByVal node As ModuleBlockSyntax) As SyntaxNode
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\SemanticModelAPITests.vb (2)
1977Dim moduleBlock = DirectCast(root.Members(0), ModuleBlockSyntax) 2012Dim moduleBlock = DirectCast(root.Members(0), ModuleBlockSyntax)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (7)
Generated\Syntax.Test.xml.Generated.vb (1)
10191Private Shared Function GenerateRedModuleBlock() As ModuleBlockSyntax
Parser\ParseExpression.vb (3)
1110Dim module1 = DirectCast(root.ChildNodes(0), ModuleBlockSyntax) 1133Dim module1 = DirectCast(root.ChildNodes(0), ModuleBlockSyntax) 1157Dim module1 = DirectCast(root.ChildNodes(0), ModuleBlockSyntax)
TestSyntaxNodes.vb (3)
3268Dim Module1 = CType(Root.Members(0), ModuleBlockSyntax) 3269Dim Module2 = CType(Root.Members(1), ModuleBlockSyntax) 3270Dim Module3 = CType(Root.Members(2), ModuleBlockSyntax)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (7)
CodeGeneration\VisualBasicDeclarationComparer.vb (1)
153Return DirectCast(node, ModuleBlockSyntax).BlockStatement
CodeGeneration\VisualBasicSyntaxGenerator.vb (2)
2592Return DirectCast(declaration, ModuleBlockSyntax).WithModuleStatement(DirectCast(declaration, ModuleBlockSyntax).ModuleStatement.WithModifiers(tokens))
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (1)
380If Not parameterCount.HasValue OrElse parameterCount.Value = 0 OrElse TypeOf node.Parent?.Parent IsNot ModuleBlockSyntax Then
Formatting\Rules\NodeBasedFormattingRule.vb (1)
318Dim [module] = TryCast(node, ModuleBlockSyntax)
StatementSyntaxExtensions.vb (1)
231Dim moduleBlock = DirectCast(member, ModuleBlockSyntax)
VisualBasicAccessibilityFacts.vb (1)
122Return DirectCast(declaration, ModuleBlockSyntax).ModuleStatement.Modifiers
Microsoft.VisualStudio.LanguageServices.VisualBasic (19)
CodeModel\VisualBasicCodeModelService.vb (19)
2146TypeOf typeNode Is ModuleBlockSyntax) 2149If TypeOf typeBlock Is ModuleBlockSyntax Then 2173TypeOf typeNode Is ModuleBlockSyntax) 2176If TypeOf typeBlock Is ModuleBlockSyntax Then 2361TypeOf typeNode Is ModuleBlockSyntax OrElse 2365If TypeOf typeBlock Is ModuleBlockSyntax Then 2390TypeOf typeNode Is ModuleBlockSyntax OrElse 2399TypeOf typeBlock Is ModuleBlockSyntax 2413If TypeOf typeBlock Is ModuleBlockSyntax Then 2417Dim moduleBlock = DirectCast(typeBlock, ModuleBlockSyntax) 2608TypeOf typeNode Is ModuleBlockSyntax) 2610If TypeOf typeNode Is ModuleBlockSyntax Then 2717If TypeOf memberNode.Parent Is ModuleBlockSyntax OrElse 2810TypeOf memberNode Is ModuleBlockSyntax Then 2926If TypeOf parentType Is ModuleBlockSyntax OrElse 3761ElseIf TypeOf container Is ModuleBlockSyntax Then 3762Dim moduleBlock = DirectCast(container, ModuleBlockSyntax) 3838ElseIf TypeOf container Is ModuleBlockSyntax Then 3839Dim moduleBlock = DirectCast(container, ModuleBlockSyntax)