33 references to SourceModule
Microsoft.CodeAnalysis.VisualBasic (33)
Binding\Binder.vb (2)
347Return If(TryCast(containingMember, ModuleSymbol), If(containingMember?.ContainingModule, Me.Compilation.SourceModule)) 956Compilation.SourceModule IsNot symbol.ContainingModule AndAlso
Binding\Binder_Conversions.vb (1)
934targetType.ContainingModule Is Compilation.SourceModule Then
Binding\Binder_Lookup.vb (2)
409Dim sourceModule = binder.Compilation.SourceModule 487Dim sourceModule = binder.Compilation.SourceModule
Binding\ImportAliasesBinder.vb (1)
83Return Me.Compilation.SourceModule
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
223Return DirectCast(Me._compilation.SourceModule, SourceModuleSymbol)
Compilation\DocumentationComments\DocumentationCommentCompiler.vb (1)
101Return DirectCast(Me._compilation.SourceModule, SourceModuleSymbol)
Compilation\DocumentationComments\DocumentationCommentWalker.vb (1)
132Return DirectCast(Me.Compilation.SourceModule, SourceModuleSymbol)
Compilation\MethodCompiler.vb (1)
249compilation.SourceModule.GlobalNamespace.Accept(compiler)
Compilation\SpeculativeSyntaxTreeSemanticModel.vb (1)
36MyBase.New(parentSemanticModel.Compilation, DirectCast(parentSemanticModel.Compilation.SourceModule, SourceModuleSymbol), root.SyntaxTree, ignoreAccessibility:=parentSemanticModel.IgnoresAccessibility)
Compilation\SynthesizedMetadataCompiler.vb (1)
37compilation.SourceModule.GlobalNamespace.Accept(compiler)
Compilation\VisualBasicCompilation.vb (13)
1458Return DirectCast(Me.SourceModule, SourceModuleSymbol).RootNamespace 1524Dim globalNamespace As NamespaceSymbol = Me.SourceModule.GlobalNamespace 1684Return DirectCast(Me.SourceModule, SourceModuleSymbol).MemberImports.SelectAsArray(Function(m) m.NamespaceOrType) 1693Return DirectCast(Me.SourceModule, SourceModuleSymbol).AliasImports.SelectAsArray(Function(a) a.Alias) 2053Return New SyntaxTreeSemanticModel(Me, DirectCast(Me.SourceModule, SourceModuleSymbol), syntaxTree, ignoreAccessibility:=(options And SemanticModelOptions.IgnoreAccessibility) <> 0) 2262Dim declarationDiags = DirectCast(SourceModule, SourceModuleSymbol).GetDeclarationErrorsInTree(tree, filterSpanWithinTree, AddressOf FilterDiagnosticsByLocation, cancellationToken) 2294MethodCompiler.GetCompileDiagnostics(Me, SourceModule.GlobalNamespace, Nothing, Nothing, hasDeclarationErrors, diagnostics, doLowering, cancellationToken) 2301Dim sourceMod = DirectCast(SourceModule, SourceModuleSymbol) 2304SourceModule.GlobalNamespace, 2337originalFileName:=Me.SourceModule.Name, 2338internalName:=Me.SourceModule.Name, 2421DirectCast(Me.SourceModule, SourceModuleSymbol), 2813Return Me.SourceModule
Emit\EditAndContinue\EmitHelpers.vb (1)
31Dim pdbName = FileNameUtilities.ChangeExtension(compilation.SourceModule.Name, "pdb")
Symbols\AnonymousTypes\AnonymousTypeManager.vb (1)
23Return DirectCast(Compilation.SourceModule, SourceModuleSymbol)
Symbols\MergedNamespaceSymbol.vb (2)
107For Each reference In extent.SourceModule.GetReferencedAssemblySymbols() 536Debug.Assert([module] Is _compilation.SourceModule)
Symbols\Symbol_Attributes.vb (1)
314Dim sourceModule = DirectCast(compilation.SourceModule, SourceModuleSymbol)
Symbols\Tuples\TupleTypeSymbol.vb (1)
378If diagnostics?.DiagnosticBag IsNot Nothing AndAlso DirectCast(compilation.SourceModule, SourceModuleSymbol).AnyReferencedAssembliesAreLinked Then
Symbols\UsedAssemblies.vb (1)
92For Each assembly As AssemblySymbol In SourceModule.ReferencedAssemblySymbols
Symbols\WellKnownMembers.vb (1)
46Dim sourceModuleSymbol = DirectCast(Me.SourceModule, SourceModuleSymbol)