11 overrides of ContainingModule
Microsoft.CodeAnalysis.VisualBasic (11)
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
181Public Overrides ReadOnly Property ContainingModule As ModuleSymbol
Symbols\MissingMetadataTypeSymbol.vb (1)
126Public Overrides ReadOnly Property ContainingModule As ModuleSymbol
Symbols\ModuleSymbol.vb (1)
102Public Overrides ReadOnly Property ContainingModule As ModuleSymbol
Symbols\NamespaceSymbol.vb (1)
115Public Overrides ReadOnly Property ContainingModule As ModuleSymbol
Symbols\Retargeting\RetargetingFieldSymbol.vb (1)
120Public Overrides ReadOnly Property ContainingModule As ModuleSymbol
Symbols\Retargeting\RetargetingMethodSymbol.vb (1)
394Public Overrides ReadOnly Property ContainingModule As ModuleSymbol
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (1)
487Public Overrides ReadOnly Property ContainingModule As ModuleSymbol
Symbols\Retargeting\RetargetingParameterSymbol.vb (1)
230Public Overrides ReadOnly Property ContainingModule As ModuleSymbol
Symbols\Retargeting\RetargetingTypeParameterSymbol.vb (1)
147Public Overrides ReadOnly Property ContainingModule As ModuleSymbol
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
1219Public Overrides ReadOnly Property ContainingModule As ModuleSymbol
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (1)
224Public Overrides ReadOnly Property ContainingModule As ModuleSymbol
111 references to ContainingModule
Microsoft.CodeAnalysis.VisualBasic (111)
Binding\Binder.vb (2)
347Return If(TryCast(containingMember, ModuleSymbol), If(containingMember?.ContainingModule, Me.Compilation.SourceModule)) 956Compilation.SourceModule IsNot symbol.ContainingModule AndAlso
Binding\Binder_Lookup.vb (1)
161If unwrappedSym.ContainingModule IsNot Me.ContainingModule Then
Binding\LookupResult.vb (4)
882If sym.ContainingModule Is sourceModule Then 948If first.ContainingModule Is sourceModule Then 968If second.ContainingModule Is sourceModule AndAlso first.IsEmbedded = second.IsEmbedded Then 974If first.ContainingModule Is sourceModule AndAlso first.IsEmbedded = second.IsEmbedded Then
Compilation\ClsComplianceChecker.vb (1)
800Return If(producingNetModule, DirectCast(symbol.ContainingModule, Symbol), containingAssembly)
Emit\FieldSymbolAdapter.vb (2)
60If AdaptedFieldSymbol.IsDefinition AndAlso AdaptedFieldSymbol.ContainingModule = moduleBeingBuilt.SourceModule Then 92If AdaptedFieldSymbol.ContainingModule = (DirectCast(visitor.Context.Module, PEModuleBuilder)).SourceModule Then
Emit\MethodSymbolAdapter.vb (3)
91If AdaptedMethodSymbol.ContainingModule = moduleBeingBuilt.SourceModule Then 134AdaptedMethodSymbol.ContainingModule = moduleBeingBuilt.SourceModule Then 164If AdaptedMethodSymbol.IsDefinition AndAlso AdaptedMethodSymbol.ContainingModule = moduleBeingBuilt.SourceModule Then
Emit\NamedTypeSymbolAdapter.vb (6)
122If AdaptedNamedTypeSymbol.ContainingType Is Nothing AndAlso AdaptedNamedTypeSymbol.IsDefinition AndAlso AdaptedNamedTypeSymbol.ContainingModule.Equals(moduleBeingBuilt.SourceModule) Then 146If AdaptedNamedTypeSymbol.ContainingType IsNot Nothing AndAlso AdaptedNamedTypeSymbol.IsDefinition AndAlso AdaptedNamedTypeSymbol.ContainingModule.Equals(moduleBeingBuilt.SourceModule) Then 176AdaptedNamedTypeSymbol.ContainingModule.Equals(moduleBeingBuilt.SourceModule) Then 195Dim asDefinition As Boolean = (AdaptedNamedTypeSymbol.ContainingModule.Equals(moduleBeingBuilt.SourceModule)) 783Return moduleBeingBuilt.Translate(AdaptedNamedTypeSymbol.ContainingModule, context.Diagnostics) 925Debug.Assert(TypeOf ContainingModule Is SourceModuleSymbol)
Emit\ParameterSymbolAdapter.vb (2)
125If AdaptedParameterSymbol.ContainingModule = (DirectCast(visitor.Context.Module, PEModuleBuilder)).SourceModule Then 138If AdaptedParameterSymbol.IsDefinition AndAlso AdaptedParameterSymbol.ContainingModule = moduleBeingBuilt.SourceModule Then
Emit\PropertySymbolAdapter.vb (1)
100Debug.Assert(TypeOf AdaptedPropertySymbol.ContainingModule Is SourceModuleSymbol OrElse AdaptedPropertySymbol.ContainingAssembly.IsLinked)
Emit\SymbolAdapter.vb (1)
143Debug.Assert(TypeOf Me.ContainingModule Is SourceModuleSymbol)
Emit\SymbolTranslator.vb (1)
40Debug.Assert(symbol.ContainingModule Is Me.SourceModule)
Emit\TypeParameterSymbolAdapter.vb (1)
146If (DirectCast(visitor.Context.Module, PEModuleBuilder)).SourceModule = AdaptedTypeParameterSymbol.ContainingModule Then
Semantics\OverloadResolution.vb (1)
3519If info.Candidate.UnderlyingSymbol.ContainingModule Is sourceModule OrElse
Symbols\EventSymbol.vb (1)
227ElseIf Me.ContainingModule.HasUnifiedReferences Then
Symbols\FieldSymbol.vb (1)
300If useSiteInfo.DiagnosticInfo Is Nothing AndAlso Me.ContainingModule.HasUnifiedReferences Then
Symbols\InstanceTypeSymbol.vb (3)
170If Me.ContainingModule.HasUnifiedReferences Then 198Debug.Assert(owner.ContainingModule.HasUnifiedReferences) 204Dim info = owner.ContainingModule.GetUnificationUseSiteErrorInfo(Me)
Symbols\Metadata\PE\MetadataDecoder.vb (1)
511If peMethod IsNot Nothing AndAlso peMethod.ContainingModule Is ModuleSymbol Then
Symbols\Metadata\PE\PEEventSymbol.vb (3)
104Dim evt = DirectCast(Me.ContainingModule, PEModuleSymbol).GetEventRegistrationTokenType() 255ObsoleteAttributeHelpers.InitializeObsoleteDataFromMetadata(_lazyObsoleteAttributeData, _handle, DirectCast(ContainingModule, PEModuleSymbol)) 262Dim containingPEModuleSymbol = DirectCast(ContainingModule(), PEModuleSymbol)
Symbols\Metadata\PE\PEFieldSymbol.vb (4)
142Dim containingPEModuleSymbol = DirectCast(ContainingModule(), PEModuleSymbol) 189Dim containingPEModuleSymbol = DirectCast(ContainingModule(), PEModuleSymbol) 320ObsoleteAttributeHelpers.InitializeObsoleteDataFromMetadata(_lazyObsoleteAttributeData, _handle, DirectCast(ContainingModule, PEModuleSymbol)) 473Return DirectCast(ContainingModule, PEModuleSymbol).Module
Symbols\Metadata\PE\PEMethodSymbol.vb (4)
630Dim containingPEModuleSymbol = DirectCast(ContainingModule(), PEModuleSymbol) 1194DirectCast(ContainingModule, PEModuleSymbol).Module.FindTargetAttribute(_handle, AttributeDescription.UnmanagedCallersOnlyAttribute).HasValue 1264Dim result = ObsoleteAttributeHelpers.GetObsoleteDataFromMetadata(_handle, DirectCast(ContainingModule, PEModuleSymbol)) 1348hasSetsRequiredMembersValue = DirectCast(ContainingModule, PEModuleSymbol).Module.HasAttribute(Handle, AttributeDescription.SetsRequiredMembersAttribute)
Symbols\Metadata\PE\PEParameterSymbol.vb (5)
119_type = TupleTypeDecoder.DecodeTupleTypesIfApplicable(type, handle, DirectCast(containingSymbol.ContainingModule, PEModuleSymbol)) 362Dim containingPEModuleSymbol = DirectCast(_containingSymbol.ContainingModule, PEModuleSymbol) 656Return DirectCast(_containingSymbol.ContainingModule, PEModuleSymbol).Module 661Return DeriveCompilerFeatureRequiredAttributeDiagnostic(Me, DirectCast(Me.ContainingModule, PEModuleSymbol), Handle, CompilerFeatureRequiredFeatures.None, decoder) 666Dim containingModule = DirectCast(Me.ContainingModule, PEModuleSymbol)
Symbols\Metadata\PE\PEPropertySymbol.vb (2)
329ObsoleteAttributeHelpers.InitializeObsoleteDataFromMetadata(_lazyObsoleteAttributeData, _handle, DirectCast(ContainingModule, PEModuleSymbol)) 336Dim containingPEModuleSymbol = DirectCast(ContainingModule(), PEModuleSymbol)
Symbols\Metadata\PE\PETypeParameterSymbol.vb (3)
145Dim containingPEModuleSymbol = DirectCast(ContainingModule(), PEModuleSymbol) 374Return DeriveCompilerFeatureRequiredAttributeDiagnostic(Me, DirectCast(ContainingModule, PEModuleSymbol), Handle, CompilerFeatureRequiredFeatures.None, decoder) 388Dim containingModule = DirectCast(Me.ContainingModule, PEModuleSymbol)
Symbols\MetadataOrSourceAssemblySymbol.vb (1)
73Debug.Assert(corType.ContainingModule.Ordinal = 0)
Symbols\MethodSymbol.vb (1)
682If errorInfo Is Nothing AndAlso Me.ContainingModule.HasUnifiedReferences Then
Symbols\MissingMetadataTypeSymbol.vb (1)
58Dim containingModule As ModuleSymbol = Me.ContainingModule
Symbols\NamedTypeSymbol.vb (2)
770Dim sourceModule = TryCast(Me.ContainingModule, SourceModuleSymbol) 785Dim sourceModule = TryCast(Me.ContainingModule, SourceModuleSymbol)
Symbols\ObsoleteAttributeHelpers.vb (2)
77Dim moduleObsoleteKind As ObsoleteAttributeKind? = symbol.ContainingModule?.ObsoleteKind 129Dim data = If(If(symbol.ObsoleteAttributeData, symbol.ContainingModule.ObsoleteAttributeData), symbol.ContainingAssembly.ObsoleteAttributeData)
Symbols\PropertySymbol.vb (1)
434If errorInfo Is Nothing AndAlso Me.ContainingModule.HasUnifiedReferences Then
Symbols\Retargeting\RetargetingNamespaceSymbol.vb (1)
180Debug.Assert(underlying.ContainingModule Is _retargetingModule.UnderlyingModule)
Symbols\Retargeting\RetargetingSymbolTranslator.vb (13)
38Debug.Assert(symbol.ContainingModule Is Me.UnderlyingModule) 43Debug.Assert(symbol.ContainingModule Is Me.UnderlyingModule) 48Debug.Assert(symbol.ContainingModule Is Me.UnderlyingModule) 53Debug.Assert(symbol.ContainingModule Is Me.UnderlyingModule) 58Debug.Assert(symbol.ContainingModule Is Me.UnderlyingModule) 63Debug.Assert(symbol.ContainingModule Is Me.UnderlyingModule) 75Debug.Assert(containingType.ContainingModule Is Me.UnderlyingModule) 217Dim [module] = type.ContainingModule 265If type.ContainingModule Is _retargetingModule.UnderlyingModule Then 560If symbol.OriginalDefinition.ContainingModule Is _retargetingModule.UnderlyingModule AndAlso 884If method.ContainingModule Is Me.UnderlyingModule AndAlso method.IsDefinition Then 1036If ([event].ContainingModule Is Me.UnderlyingModule) AndAlso [event].IsDefinition Then 1068If ([property].ContainingModule Is Me.UnderlyingModule) AndAlso [property].IsDefinition Then
Symbols\Source\OverloadingHelper.vb (1)
155Dim binder = BinderBuilder.CreateBinderForType(DirectCast(container.ContainingModule, SourceModuleSymbol),
Symbols\Source\SourceComplexParameterSymbol.vb (2)
137DirectCast(ContainingModule, SourceModuleSymbol).AddDeclarationDiagnostics(diagnostics) 158Dim binder As Binder = BinderBuilder.CreateBinderForParameterDefaultValue(DirectCast(ContainingModule, SourceModuleSymbol),
Symbols\Source\SourceEnumConstantSymbol.vb (1)
78Dim sourceModule = DirectCast(Me.ContainingModule, SourceModuleSymbol)
Symbols\Source\SourceEventSymbol.vb (1)
754Dim sourceModule = DirectCast(Me.ContainingModule, SourceModuleSymbol)
Symbols\Source\SourceFieldSymbol.vb (1)
74Dim sourceModule = DirectCast(Me.ContainingModule, SourceModuleSymbol)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (2)
2241If typeToTest.ContainingModule Is Nothing OrElse Not typeToTest.ContainingModule.Equals(Me.ContainingModule) Then
Symbols\Source\SourceMemberFieldSymbol.vb (4)
36Dim sourceModule = DirectCast(Me.ContainingModule, SourceModuleSymbol) 78Dim sourceModule = DirectCast(Me.ContainingModule, SourceModuleSymbol) 105DirectCast(Me.ContainingModule, SourceModuleSymbol), 347Dim sourceModule = DirectCast(Me.ContainingModule, SourceModuleSymbol)
Symbols\Source\SourceMemberMethodSymbol.vb (3)
288Dim sourceModule = DirectCast(Me.ContainingModule, SourceModuleSymbol) 353Dim sourceModule = DirectCast(Me.ContainingModule, SourceModuleSymbol) 555Dim sourceModule = DirectCast(Me.ContainingModule, SourceModuleSymbol)
Symbols\Source\SourceMethodSymbol.vb (1)
610Return DirectCast(ContainingModule, SourceModuleSymbol)
Symbols\Source\SourceNamedTypeSymbol.vb (2)
588If collision IsNot Nothing AndAlso collision.ContainingModule.Ordinal < constituent.ContainingModule.Ordinal Then 615Binder.ReportDiagnostic(diagBag, id, ERRID.ERR_CollisionWithPublicTypeInModule, Me, collision.ContainingModule)
Symbols\Source\SourcePropertySymbol.vb (6)
340Dim binder = BinderBuilder.CreateBinderForType(DirectCast(ContainingModule, SourceModuleSymbol), _syntaxRef.SyntaxTree, _containingType) 739Dim sourceModule = DirectCast(ContainingModule, SourceModuleSymbol) 870Dim sourceModule = DirectCast(Me.ContainingModule, SourceModuleSymbol) 1021Dim binder = BinderBuilder.CreateBinderForType(DirectCast(ContainingModule, SourceModuleSymbol), _syntaxRef.SyntaxTree, _containingType) 1202Dim sourceModule = DirectCast(Me.ContainingModule, SourceModuleSymbol) 1211DirectCast(Me.ContainingModule, SourceModuleSymbol).AtomicSetFlagAndRaiseSymbolDeclaredEvent(_lazyState, StateFlags.SymbolDeclaredEvent, 0, Me)
Symbols\Source\SourceTypeParameterSymbol.vb (1)
134Dim sourceModule = DirectCast(ContainingModule, SourceModuleSymbol)
Symbols\Source\SynthesizedEventAccessorSymbol.vb (2)
64DirectCast(Me.ContainingModule, SourceModuleSymbol).AtomicStoreArrayAndDiagnostics(_lazyParameters, parameterList, diagnostics) 92DirectCast(Me.ContainingModule, SourceModuleSymbol).AtomicStoreReferenceAndDiagnostics(_lazyReturnType, type, diagnostics)
Symbols\Source\SynthesizedEventBackingFieldSymbol.vb (1)
48DirectCast(ContainingModule, SourceModuleSymbol).AtomicStoreReferenceAndDiagnostics(_lazyType, result, diagnostics)
Symbols\Symbol.vb (6)
261Dim sourceModuleSymbol = TryCast(Me.ContainingModule, SourceModuleSymbol) 283Return container.ContainingModule 699Return If(IsEmbedded, Nothing, Me.ContainingModule.DefaultMarshallingCharSet) 740Dim [module] = If(Me.Kind = SymbolKind.NetModule, Me, Me.ContainingModule) 1189Return Me.ContainingModule 1195Return Me.ContainingModule
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (2)
56Dim sourceModule = DirectCast(Me.ContainingModule, SourceModuleSymbol) 425DirectCast(ContainingModule, SourceModuleSymbol).AtomicStoreIntegerAndDiagnostics(_reportedAllDeclarationErrors, 1, 0, diagnostics)