6 implementations of ISymbol_ContainingModule
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
88public IModuleSymbol ContainingModule => null;
Microsoft.CodeAnalysis.CSharp (2)
Symbols\PublicModel\PreprocessingSymbol.cs (1)
110IModuleSymbol? ISymbol.ContainingModule => null;
Symbols\PublicModel\Symbol.cs (1)
207IModuleSymbol ISymbol.ContainingModule => UnderlyingSymbol.ContainingModule.GetPublicSymbol();
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
33public IModuleSymbol ContainingModule => _symbol.ContainingModule;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Symbol.vb (1)
1187Private ReadOnly Property ISymbol_ContainingModule As IModuleSymbol Implements ISymbol.ContainingModule
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
88public IModuleSymbol ContainingModule => null;
48 references to ISymbol_ContainingModule
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (2)
42visitor.WriteSymbolKey(symbol.ContainingModule); 671 => contextualSymbol?.ContainingModule,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenTupleTest.cs (6)
6230Assert.Same(comp.GlobalNamespace.ContainingModule, ns.ContainingModule); 6238Assert.Same(comp.Assembly.GlobalNamespace.ContainingModule, ns.ContainingModule); 6246Assert.Same(comp.SourceModule.GlobalNamespace.ContainingModule, ns.ContainingModule);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (19)
Attributes\AttributeTests_NativeInteger.cs (6)
290AssertNativeIntegerAttributes(type.ContainingModule, expected); 367AssertNativeIntegerAttributes(type.ContainingModule, expected); 450AssertNativeIntegerAttributes(type.ContainingModule, expected); 527AssertNativeIntegerAttributes(type.ContainingModule, expected); 650AssertNativeIntegerAttributes(type.ContainingModule, expected); 757AssertNativeIntegerAttributes(type.ContainingModule, expected);
Semantics\ExperimentalAttributeTests.cs (13)
150Assert.Equal(ObsoleteAttributeKind.None, comp.GetTypeByMetadataName("C").ContainingModule.ObsoleteKind); 174Assert.Equal(ObsoleteAttributeKind.None, comp.GetTypeByMetadataName("C").ContainingModule.ObsoleteKind); 217Assert.Equal(ObsoleteAttributeKind.None, comp.GetTypeByMetadataName("C").ContainingModule.ObsoleteKind); 406Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingModule.ObsoleteKind); 430Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingModule.ObsoleteKind); 473Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingModule.ObsoleteKind); 500Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingModule.ObsoleteKind); 562Assert.Equal(ObsoleteAttributeKind.None, comp.GetTypeByMetadataName("C").ContainingModule.ObsoleteKind); 565Assert.Equal(ObsoleteAttributeKind.None, comp.GetTypeByMetadataName("D").ContainingModule.ObsoleteKind); 1015Assert.IsType<RetargetingModuleSymbol>(derived.ContainingModule); 1016Assert.Equal(ObsoleteAttributeKind.Experimental, derived.ContainingModule.ObsoleteKind); 1043Assert.IsType<RetargetingModuleSymbol>(derived.ContainingModule); 1044Assert.Equal(ObsoleteAttributeKind.None, derived.ContainingModule.ObsoleteKind);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\NullableReferenceTypesTests.cs (4)
98806Assert.Same(m, nullableAttribute.AttributeClass.ContainingModule); 98879Assert.NotEqual(m, nullableAttribute.AttributeClass.ContainingModule); 104931Assert.Same(m, nullableAttribute.AttributeClass.ContainingModule); 105008Assert.NotEqual(m, nullableAttribute.AttributeClass.ContainingModule);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Symbols\GenericConstraintTests.cs (2)
7316Assert.True(c.ContainingModule.HasUnifiedReferences); 7374Assert.True(c.ContainingModule.HasUnifiedReferences);
Symbols\Retargeting\NoPia.cs (1)
2676Assert.Equal("Pia.dll", test.ContainingModule.Name);
Symbols\Source\BaseClassTests.cs (4)
1099Assert.Same(((PEModuleSymbol)B1.ContainingModule).Module, ((PEModuleSymbol)B2.ContainingModule).Module); 1225Assert.Same(((PEModuleSymbol)B1.ContainingModule).Module, ((PEModuleSymbol)B2.ContainingModule).Module);
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
33public IModuleSymbol ContainingModule => _symbol.ContainingModule;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Symbol.vb (1)
1187Private ReadOnly Property ISymbol_ContainingModule As IModuleSymbol Implements ISymbol.ContainingModule
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (6)
CodeGen\CodeGenTuples.vb (6)
8954Assert.Same(comp.GlobalNamespace.ContainingModule, ns.ContainingModule) 8962Assert.Same(comp.Assembly.GlobalNamespace.ContainingModule, ns.ContainingModule) 8970Assert.Same(comp.SourceModule.GlobalNamespace.ContainingModule, ns.ContainingModule)
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (2)
42visitor.WriteSymbolKey(symbol.ContainingModule); 671 => contextualSymbol?.ContainingModule,