1 instantiation of PEModuleSymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Retargeting\RetargetingAssemblySymbol.cs (1)
115modules[i] = new PEModuleSymbol(this, under.Module, under.ImportOptions, i);
160 references to PEModuleSymbol
Microsoft.CodeAnalysis.CSharp (160)
Compilation\CSharpCompilation.cs (2)
3731var m = (Symbols.Metadata.PE.PEModuleSymbol)modules[i];
Compiler\ClsComplianceChecker.cs (2)
143var peModule = (Symbols.Metadata.PE.PEModuleSymbol)module;
DocumentationComments\PEDocumentationCommentUtils.cs (1)
21PEModuleSymbol containingPEModule,
Emitter\Model\PEAssemblyBuilder.cs (1)
176foreach (EmbeddedResource resource in ((Symbols.Metadata.PE.PEModuleSymbol)modules[i]).Module.GetEmbeddedResourcesOrThrow())
Symbols\Attributes\PEAttributeData.cs (1)
28internal PEAttributeData(PEModuleSymbol moduleSymbol, CustomAttributeHandle handle)
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
68PEModuleSymbol containingModule,
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
34PEModuleSymbol moduleSymbol,
Symbols\Metadata\PE\MetadataDecoder.cs (6)
21internal class MetadataDecoder : MetadataDecoder<PEModuleSymbol, TypeSymbol, MethodSymbol, FieldSymbol, Symbol> 34PEModuleSymbol moduleSymbol, 41PEModuleSymbol moduleSymbol, 48PEModuleSymbol moduleSymbol) : 53private MetadataDecoder(PEModuleSymbol moduleSymbol, PENamedTypeSymbol typeContextOpt, PEMethodSymbol methodContextOpt) 64internal PEModuleSymbol ModuleSymbol
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
15internal static TypeSymbol TransformType(TypeSymbol type, EntityHandle handle, PEModuleSymbol containingModule, TypeSymbol? containingType)
Symbols\Metadata\PE\NullableTypeDecoder.cs (1)
23PEModuleSymbol containingModule,
Symbols\Metadata\PE\PEAssemblySymbol.cs (2)
291internal PEModuleSymbol PrimaryModule 295return (PEModuleSymbol)_modules[0];
Symbols\Metadata\PE\PEEventSymbol.cs (9)
53PEModuleSymbol moduleSymbol, 168NamedTypeSymbol eventRegistrationTokenTable_T = ((PEModuleSymbol)(this.ContainingModule)).EventRegistrationTokenTable_T; 191NamedTypeSymbol token = ((PEModuleSymbol)(this.ContainingModule)).EventRegistrationToken; 364var containingPEModuleSymbol = (PEModuleSymbol)this.ContainingModule; 413PEModuleSymbol moduleSymbol, 440PEModuleSymbol moduleSymbol, 480PEModuleSymbol containingPEModule = _containingType.ContainingPEModule; 501ObsoleteAttributeHelpers.InitializeObsoleteDataFromMetadata(ref _lazyObsoleteAttributeData, _handle, (PEModuleSymbol)(this.ContainingModule), ignoreByRefLikeMarker: false, ignoreRequiredMemberMarker: false);
Symbols\Metadata\PE\PEFieldSymbol.cs (9)
135PEModuleSymbol moduleSymbol, 309var moduleSymbol = _containingType.ContainingPEModule; 353PEModuleSymbol containingPEModule = this.ContainingPEModule; 369private PEModuleSymbol ContainingPEModule 584var containingPEModuleSymbol = (PEModuleSymbol)this.ContainingModule; 617var containingPEModuleSymbol = _containingType.ContainingPEModule; 650PEModuleSymbol containingPEModule = _containingType.ContainingPEModule; 671ObsoleteAttributeHelpers.InitializeObsoleteDataFromMetadata(ref _lazyObsoleteAttributeData, _handle, (PEModuleSymbol)(this.ContainingModule), ignoreByRefLikeMarker: false, ignoreRequiredMemberMarker: false);
Symbols\Metadata\PE\PEGlobalNamespaceSymbol.cs (3)
27private readonly PEModuleSymbol _moduleSymbol; 29internal PEGlobalNamespaceSymbol(PEModuleSymbol moduleSymbol) 43internal override PEModuleSymbol ContainingPEModule
Symbols\Metadata\PE\PEMethodSymbol.cs (15)
393/// In many scenarios it is possible to avoid allocating this, thus saving total space in <see cref="PEModuleSymbol"/>. 402PEModuleSymbol moduleSymbol, 676var moduleSymbol = _containingType.ContainingPEModule; 831var moduleSymbol = _containingType.ContainingPEModule; 936var moduleSymbol = _containingType.ContainingPEModule; 978var moduleSymbol = _containingType.ContainingPEModule; 997var containingPEModuleSymbol = _containingType.ContainingPEModule; 1302var moduleSymbol = _containingType.ContainingPEModule; 1397var moduleSymbol = _containingType.ContainingPEModule; 1438_containingType.ContainingPEModule.RefSafetyRulesVersion == PEModuleSymbol.RefSafetyRulesAttributeVersion.UnrecognizedAttribute) 1466var containingModule = _containingType.ContainingPEModule; 1578var result = ObsoleteAttributeHelpers.GetObsoleteDataFromMetadata(_handle, (PEModuleSymbol)ContainingModule, ignoreByRefLikeMarker: false, ignoreRequiredMemberMarker: MethodKind == MethodKind.Constructor); 1608var containingModule = (PEModuleSymbol)ContainingModule; 1688var moduleSymbol = _containingType.ContainingPEModule;
Symbols\Metadata\PE\PENamedTypeSymbol.cs (24)
179PEModuleSymbol moduleSymbol, 215private static void GetGenericInfo(PEModuleSymbol moduleSymbol, TypeDefinitionHandle handle, out GenericParameterHandleCollection genericParameterHandles, out ushort arity, out BadImageFormatException mrEx) 232PEModuleSymbol moduleSymbol, 276PEModuleSymbol moduleSymbol, 368internal PEModuleSymbol ContainingPEModule 518var moduleSymbol = ContainingPEModule; 547var moduleSymbol = ContainingPEModule; 567var moduleSymbol = ContainingPEModule; 775var moduleSymbol = ContainingPEModule; 913var moduleSymbol = this.ContainingPEModule; 1203var moduleSymbol = this.ContainingPEModule; 1289var moduleSymbol = this.ContainingPEModule; 1579var moduleSymbol = this.ContainingPEModule; 1732var moduleSymbol = this.ContainingPEModule; 1862var moduleSymbol = this.ContainingPEModule; 1898var moduleSymbol = this.ContainingPEModule; 1984var moduleSymbol = this.ContainingPEModule; 2011var moduleSymbol = this.ContainingPEModule; 2043var moduleSymbol = this.ContainingPEModule; 2294var moduleSymbol = this.ContainingPEModule; 2322var moduleSymbol = this.ContainingPEModule; 2548PEModuleSymbol moduleSymbol, 2617PEModuleSymbol moduleSymbol, 2697var moduleSymbol = ContainingPEModule;
Symbols\Metadata\PE\PENamespaceSymbol.cs (2)
190internal abstract PEModuleSymbol ContainingPEModule { get; } 276var moduleSymbol = ContainingPEModule;
Symbols\Metadata\PE\PENestedNamespaceSymbol.cs (1)
89internal override PEModuleSymbol ContainingPEModule
Symbols\Metadata\PE\PEParameterSymbol.cs (11)
157private readonly PEModuleSymbol _moduleSymbol; 192PEModuleSymbol moduleSymbol, 219PEModuleSymbol moduleSymbol, 235PEModuleSymbol moduleSymbol, 376PEModuleSymbol moduleSymbol, 423PEModuleSymbol moduleSymbol, 1060var containingPEModuleSymbol = (PEModuleSymbol)this.ContainingModule; 1188=> PEUtilities.DeriveCompilerFeatureRequiredAttributeDiagnostic(this, (PEModuleSymbol)ContainingModule, Handle, allowedFeatures: CompilerFeatureRequiredFeatures.None, decoder); 1194var containingModule = (PEModuleSymbol)ContainingModule;
Symbols\Metadata\PE\PEPropertySymbol.cs (12)
187PEModuleSymbol moduleSymbol, 222PEModuleSymbol moduleSymbol, 616var containingPEModuleSymbol = (PEModuleSymbol)this.ContainingModule; 631var containingPEModuleSymbol = (PEModuleSymbol)this.ContainingModule; 734var containingPEModuleSymbol = (PEModuleSymbol)this.ContainingModule; 881PEModuleSymbol moduleSymbol, 975PEModuleSymbol containingPEModule = _containingType.ContainingPEModule; 1008var result = ObsoleteAttributeHelpers.GetObsoleteDataFromMetadata(_handle, (PEModuleSymbol)(this.ContainingModule), ignoreByRefLikeMarker: false, ignoreRequiredMemberMarker: false); 1075PEModuleSymbol moduleSymbol,
Symbols\Metadata\PE\PETypeParameterSymbol.cs (16)
48PEModuleSymbol moduleSymbol, 57PEModuleSymbol moduleSymbol, 66PEModuleSymbol moduleSymbol, 160var moduleSymbol = ((PEModuleSymbol)this.ContainingModule); 250private MetadataDecoder GetDecoder(PEModuleSymbol moduleSymbol) 265private TypeWithAnnotations GetConstraintTypeOrDefault(PEModuleSymbol moduleSymbol, MetadataReader metadataReader, MetadataDecoder tokenDecoder, GenericParameterConstraintHandle constraintHandle, ref bool hasUnmanagedModreqPattern) 428return GetConstraintHandleCollection(((PEModuleSymbol)this.ContainingModule).Module); 477if (((PEModuleSymbol)this.ContainingModule).Module.HasNullableAttribute(_handle, out byte value, out _)) 521var moduleSymbol = ((PEModuleSymbol)this.ContainingModule); 644var containingPEModuleSymbol = (PEModuleSymbol)this.ContainingModule; 720=> PEUtilities.DeriveCompilerFeatureRequiredAttributeDiagnostic(this, (PEModuleSymbol)ContainingModule, Handle, CompilerFeatureRequiredFeatures.None, decoder); 726var containingModule = (PEModuleSymbol)ContainingModule;
Symbols\Metadata\PE\PEUtilities.cs (1)
11internal static DiagnosticInfo? DeriveCompilerFeatureRequiredAttributeDiagnostic(Symbol symbol, PEModuleSymbol module, EntityHandle handle, CompilerFeatureRequiredFeatures allowedFeatures, MetadataDecoder decoder)
Symbols\Metadata\PE\SymbolFactory.cs (12)
14internal sealed class SymbolFactory : SymbolFactory<PEModuleSymbol, TypeSymbol> 18internal override TypeSymbol GetMDArrayTypeSymbol(PEModuleSymbol moduleSymbol, int rank, TypeSymbol elementType, ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers, 29internal override TypeSymbol GetSpecialType(PEModuleSymbol moduleSymbol, SpecialType specialType) 34internal override TypeSymbol GetSystemTypeSymbol(PEModuleSymbol moduleSymbol) 39internal override TypeSymbol MakePointerTypeSymbol(PEModuleSymbol moduleSymbol, TypeSymbol type, ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers) 49internal override TypeSymbol MakeFunctionPointerTypeSymbol(PEModuleSymbol moduleSymbol, Cci.CallingConvention callingConvention, ImmutableArray<ParamInfo<TypeSymbol>> retAndParamTypes) 54internal override TypeSymbol GetEnumUnderlyingType(PEModuleSymbol moduleSymbol, TypeSymbol type) 59internal override Cci.PrimitiveTypeCode GetPrimitiveTypeCode(PEModuleSymbol moduleSymbol, TypeSymbol type) 64internal override TypeSymbol GetSZArrayTypeSymbol(PEModuleSymbol moduleSymbol, TypeSymbol elementType, ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers) 74internal override TypeSymbol GetUnsupportedMetadataTypeSymbol(PEModuleSymbol moduleSymbol, BadImageFormatException exception) 80PEModuleSymbol moduleSymbol, 161internal override TypeSymbol MakeUnboundIfGeneric(PEModuleSymbol moduleSymbol, TypeSymbol type)
Symbols\Metadata\PE\TupleTypeDecoder.cs (3)
26/// <see cref="DecodeTupleTypesIfApplicable(TypeSymbol, EntityHandle, PEModuleSymbol)"/> 83PEModuleSymbol containingModule) 103PEModuleSymbol containingModule)
Symbols\ObsoleteAttributeHelpers.cs (2)
31internal static void InitializeObsoleteDataFromMetadata(ref ObsoleteAttributeData data, EntityHandle token, PEModuleSymbol containingModule, bool ignoreByRefLikeMarker, bool ignoreRequiredMemberMarker) 44internal static ObsoleteAttributeData GetObsoleteDataFromMetadata(EntityHandle token, PEModuleSymbol containingModule, bool ignoreByRefLikeMarker, bool ignoreRequiredMemberMarker)
Symbols\Retargeting\RetargetingAssemblySymbol.cs (2)
114PEModuleSymbol under = (PEModuleSymbol)underlyingAssembly.Modules[i];
Symbols\Retargeting\RetargetingSymbolTranslator.cs (5)
304PEModuleSymbol addedModule = (PEModuleSymbol)this.RetargetingAssembly.Modules[module.Ordinal]; 305Debug.Assert(ReferenceEquals(((PEModuleSymbol)module).Module, addedModule.Module)); 401private static NamedTypeSymbol RetargetNamedTypeDefinition(PENamedTypeSymbol type, PEModuleSymbol addedModule) 404ReferenceEquals(((PEModuleSymbol)type.ContainingModule).Module, addedModule.Module));
Symbols\Source\SourceAssemblySymbol.cs (11)
183var peModuleSymbol = (Metadata.PE.PEModuleSymbol)_modules[i]; 1002if (!((PEModuleSymbol)m).Module.IsCOFFOnly) 1028var m = (PEModuleSymbol)_modules[i]; 1287var peModuleSymbol = (Metadata.PE.PEModuleSymbol)_modules[i]; 1394var peModuleSymbol = (PEModuleSymbol)_modules[i]; 2872var peModuleSymbol = (Metadata.PE.PEModuleSymbol)_modules[i];
Symbols\Symbol.cs (1)
216case PEModuleSymbol:
Symbols\TypeSymbol.cs (2)
895implementingTypeIsFromSomeCompilation = currType.OriginalDefinition.ContainingModule is not PEModuleSymbol; 1477if ((object)implementingMember != null && implementingMember.OriginalDefinition.ContainingModule is not PEModuleSymbol && implementingMember.IsExplicitInterfaceImplementation())