81 references to ContainingPEModule
Microsoft.CodeAnalysis.CSharp (81)
Symbols\Metadata\PE\MetadataDecoder.cs (2)
492if (typeSymbol is PENamedTypeSymbol peTypeSymbol && ReferenceEquals(peTypeSymbol.ContainingPEModule, moduleSymbol)) 591if ((object)peTypeSymbol != null && ReferenceEquals(peTypeSymbol.ContainingPEModule, moduleSymbol))
Symbols\Metadata\PE\PEEventSymbol.cs (3)
348return _containingType.ContainingPEModule.MetadataLocation.Cast<MetadataLocation, Location>(); 460return PEDocumentationCommentUtils.GetDocumentationComment(this, _containingType.ContainingPEModule, preferredCulture, cancellationToken, ref _lazyDocComment); 480PEModuleSymbol containingPEModule = _containingType.ContainingPEModule;
Symbols\Metadata\PE\PEFieldSymbol.cs (11)
249return _containingType.ContainingPEModule.Module.GetMarshallingType(_handle); 262return _containingType.ContainingPEModule.Module.GetMarshallingDescriptor(_handle); 270return _containingType.ContainingPEModule.Module.GetFieldOffset(_handle); 307var moduleSymbol = _containingType.ContainingPEModule; 406value = DecodeFlowAnalysisAttributes(_containingType.ContainingPEModule.Module, _handle); 488value = _containingType.ContainingPEModule.Module.GetConstantFieldValue(_handle); 497if (_containingType.ContainingPEModule.Module.HasDecimalConstantAttribute(Handle, out defaultValue)) 516return _containingType.ContainingPEModule.MetadataLocation.Cast<MetadataLocation, Location>(); 615var containingPEModuleSymbol = _containingType.ContainingPEModule; 623return PEDocumentationCommentUtils.GetDocumentationComment(this, _containingType.ContainingPEModule, preferredCulture, cancellationToken, ref _lazyDocComment); 648PEModuleSymbol containingPEModule = _containingType.ContainingPEModule;
Symbols\Metadata\PE\PEMethodSymbol.cs (19)
444? _containingType.ContainingPEModule.Module.GetDllImportData(_handle) 516MetadataDecoder.GetSignatureCountsOrThrow(_containingType.ContainingPEModule.Module, _handle, out parameterCount, out typeParameterCount); 619MetadataDecoder.GetSignatureCountsOrThrow(_containingType.ContainingPEModule.Module, _handle, 648var moduleSymbol = _containingType.ContainingPEModule; 681var module = _containingType.ContainingPEModule.Module; 803var moduleSymbol = _containingType.ContainingPEModule; 893var moduleSymbol = _containingType.ContainingPEModule; 935var moduleSymbol = _containingType.ContainingPEModule; 944public override ImmutableArray<Location> Locations => _containingType.ContainingPEModule.MetadataLocation.Cast<MetadataLocation, Location>(); 954var containingPEModuleSymbol = _containingType.ContainingPEModule; 1043value = _containingType.ContainingPEModule.Module.HasNullableContextAttribute(_handle, out byte arg) ? 1257var moduleSymbol = _containingType.ContainingPEModule; 1352var moduleSymbol = _containingType.ContainingPEModule; 1378return PEDocumentationCommentUtils.GetDocumentationComment(this, _containingType.ContainingPEModule, preferredCulture, cancellationToken, ref AccessUncommonFields()._lazyDocComment); 1393_containingType.ContainingPEModule.RefSafetyRulesVersion == PEModuleSymbol.RefSafetyRulesAttributeVersion.UnrecognizedAttribute) 1421var containingModule = _containingType.ContainingPEModule; 1482var result = _containingType.ContainingPEModule.Module.GetConditionalAttributeValues(_handle); 1514var result = _containingType.ContainingPEModule.Module.HasAttribute(_handle, AttributeDescription.SetsRequiredMembersAttribute); 1643var moduleSymbol = _containingType.ContainingPEModule;
Symbols\Metadata\PE\PENamedTypeSymbol.cs (42)
113if (this.ContainingPEModule.HasAnyCustomAttributes(_handle)) 383return ContainingPEModule; 432uncommon.lazyHasInterpolatedStringHandlerAttribute = ContainingPEModule.Module.HasInterpolatedStringHandlerAttribute(_handle).ToThreeState(); 451uncommon.lazyHasEmbeddedAttribute = ContainingPEModule.Module.HasCodeAnalysisEmbeddedAttribute(_handle).ToThreeState(); 505var moduleSymbol = ContainingPEModule; 534var moduleSymbol = ContainingPEModule; 554var moduleSymbol = ContainingPEModule; 692var loadedCustomAttributes = ContainingPEModule.GetCustomAttributesForToken( 736value = ContainingPEModule.Module.HasNullableContextAttribute(_handle, out byte arg) ? 762var moduleSymbol = ContainingPEModule; 880var hasRequiredMemberAttribute = ContainingPEModule.Module.HasAttribute(_handle, AttributeDescription.RequiredMemberAttribute); 900var moduleSymbol = this.ContainingPEModule; 1030foreach (var handle in this.ContainingPEModule.Module.GetFieldsOfTypeOrThrow(_handle)) 1084var module = this.ContainingPEModule.Module; 1190var moduleSymbol = this.ContainingPEModule; 1276var moduleSymbol = this.ContainingPEModule; 1566var moduleSymbol = this.ContainingPEModule; 1596return ContainingPEModule.MetadataLocation.Cast<MetadataLocation, Location>(); 1719var moduleSymbol = this.ContainingPEModule; 1844return PEDocumentationCommentUtils.GetDocumentationComment(this, ContainingPEModule, preferredCulture, cancellationToken, ref _lazyDocComment); 1849var moduleSymbol = this.ContainingPEModule; 1885var moduleSymbol = this.ContainingPEModule; 1944var moduleSymbol = this.ContainingPEModule; 1971var moduleSymbol = this.ContainingPEModule; 2003var moduleSymbol = this.ContainingPEModule; 2042Debug.Assert(found || !module.ShouldImportMethod(typeDef, methodDef, this.ContainingPEModule.ImportOptions)); 2087if (this.ContainingPEModule.Module.HasRequiredAttributeAttribute(_handle)) 2132var decoder = new MetadataDecoder(ContainingPEModule, this); 2133var diag = PEUtilities.DeriveCompilerFeatureRequiredAttributeDiagnostic(this, ContainingPEModule, Handle, allowedFeatures: IsRefLikeType ? CompilerFeatureRequiredFeatures.RefStructs : CompilerFeatureRequiredFeatures.None, decoder); 2152: ContainingPEModule.GetCompilerFeatureRequiredDiagnostic(); 2169this.ContainingPEModule.Module.HasDefaultMemberAttribute(_handle, out defaultMemberName); 2204return ContainingPEModule.Module.HasGuidAttribute(_handle, out guidString); 2211return this.ContainingPEModule.Module.GetTypeLayout(_handle); 2252var moduleSymbol = this.ContainingPEModule; 2280var moduleSymbol = this.ContainingPEModule; 2319var type = this.ContainingPEModule.TryDecodeAttributeWithTypeArgument(this.Handle, AttributeDescription.CoClassAttribute); 2339ImmutableArray<string> conditionalSymbols = this.ContainingPEModule.Module.GetConditionalAttributeValues(_handle); 2358ObsoleteAttributeHelpers.InitializeObsoleteDataFromMetadata(ref uncommon.lazyObsoleteAttributeData, _handle, ContainingPEModule, ignoreByRefLikeMarker, ignoreRequiredMemberMarker: false); 2381var handle = this.ContainingPEModule.Module.GetAttributeUsageAttributeHandle(_handle); 2385var decoder = new MetadataDecoder(ContainingPEModule); 2596var moduleSymbol = ContainingPEModule; 2655var nestedType = Create(this.ContainingPEModule, (PENamespaceSymbol)this.ContainingNamespace, _handle, null);
Symbols\Metadata\PE\PEPropertySymbol.cs (4)
615var metadataDecoder = new MetadataDecoder(_containingType.ContainingPEModule, _containingType); 624return _containingType.ContainingPEModule.MetadataLocation.Cast<MetadataLocation, Location>(); 815return PEDocumentationCommentUtils.GetDocumentationComment(this, _containingType.ContainingPEModule, preferredCulture, cancellationToken, ref _lazyDocComment); 837PEModuleSymbol containingPEModule = _containingType.ContainingPEModule;