89 references to ContainingPEModule
Microsoft.CodeAnalysis.CSharp (89)
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)
251return _containingType.ContainingPEModule.Module.GetMarshallingType(_handle); 264return _containingType.ContainingPEModule.Module.GetMarshallingDescriptor(_handle); 272return _containingType.ContainingPEModule.Module.GetFieldOffset(_handle); 309var moduleSymbol = _containingType.ContainingPEModule; 408value = DecodeFlowAnalysisAttributes(_containingType.ContainingPEModule.Module, _handle); 490value = _containingType.ContainingPEModule.Module.GetConstantFieldValue(_handle); 499if (_containingType.ContainingPEModule.Module.HasDecimalConstantAttribute(Handle, out defaultValue)) 518return _containingType.ContainingPEModule.MetadataLocation.Cast<MetadataLocation, Location>(); 617var containingPEModuleSymbol = _containingType.ContainingPEModule; 625return PEDocumentationCommentUtils.GetDocumentationComment(this, _containingType.ContainingPEModule, preferredCulture, cancellationToken, ref _lazyDocComment); 650PEModuleSymbol containingPEModule = _containingType.ContainingPEModule;
Symbols\Metadata\PE\PEMethodSymbol.cs (22)
472? _containingType.ContainingPEModule.Module.GetDllImportData(_handle) 544MetadataDecoder.GetSignatureCountsOrThrow(_containingType.ContainingPEModule.Module, _handle, out parameterCount, out typeParameterCount); 647MetadataDecoder.GetSignatureCountsOrThrow(_containingType.ContainingPEModule.Module, _handle, 676var moduleSymbol = _containingType.ContainingPEModule; 709var module = _containingType.ContainingPEModule.Module; 831var moduleSymbol = _containingType.ContainingPEModule; 897return _containingType.ContainingPEModule.Module.GetMethodSignatureOrThrow(_handle); 936var moduleSymbol = _containingType.ContainingPEModule; 978var moduleSymbol = _containingType.ContainingPEModule; 987public override ImmutableArray<Location> Locations => _containingType.ContainingPEModule.MetadataLocation.Cast<MetadataLocation, Location>(); 997var containingPEModuleSymbol = _containingType.ContainingPEModule; 1086value = _containingType.ContainingPEModule.Module.HasNullableContextAttribute(_handle, out byte arg) ? 1302var moduleSymbol = _containingType.ContainingPEModule; 1397var moduleSymbol = _containingType.ContainingPEModule; 1423return PEDocumentationCommentUtils.GetDocumentationComment(this, _containingType.ContainingPEModule, preferredCulture, cancellationToken, ref AccessUncommonFields()._lazyDocComment); 1438_containingType.ContainingPEModule.RefSafetyRulesVersion == PEModuleSymbol.RefSafetyRulesAttributeVersion.UnrecognizedAttribute) 1466var containingModule = _containingType.ContainingPEModule; 1527var result = _containingType.ContainingPEModule.Module.GetConditionalAttributeValues(_handle); 1559var result = _containingType.ContainingPEModule.Module.HasAttribute(_handle, AttributeDescription.SetsRequiredMembersAttribute); 1688var moduleSymbol = _containingType.ContainingPEModule; 1701builderArgument = _containingType.ContainingPEModule.TryDecodeAttributeWithTypeArgument(this.Handle, AttributeDescription.AsyncMethodBuilderAttribute); 1709if (_containingType.ContainingPEModule.Module.TryGetOverloadResolutionPriorityValue(_handle, out int priority) &&
Symbols\Metadata\PE\PENamedTypeSymbol.cs (46)
114if (this.ContainingPEModule.HasAnyCustomAttributes(_handle)) 386return ContainingPEModule; 444uncommon.lazyHasInterpolatedStringHandlerAttribute = ContainingPEModule.Module.HasInterpolatedStringHandlerAttribute(_handle).ToThreeState(); 463uncommon.lazyHasEmbeddedAttribute = ContainingPEModule.Module.HasCodeAnalysisEmbeddedAttribute(_handle).ToThreeState(); 517var moduleSymbol = ContainingPEModule; 546var moduleSymbol = ContainingPEModule; 566var moduleSymbol = ContainingPEModule; 704var loadedCustomAttributes = ContainingPEModule.GetCustomAttributesForToken( 748value = ContainingPEModule.Module.HasNullableContextAttribute(_handle, out byte arg) ? 774var moduleSymbol = ContainingPEModule; 892var hasRequiredMemberAttribute = ContainingPEModule.Module.HasAttribute(_handle, AttributeDescription.RequiredMemberAttribute); 912var moduleSymbol = this.ContainingPEModule; 1042foreach (var handle in this.ContainingPEModule.Module.GetFieldsOfTypeOrThrow(_handle)) 1096var module = this.ContainingPEModule.Module; 1202var moduleSymbol = this.ContainingPEModule; 1288var moduleSymbol = this.ContainingPEModule; 1578var moduleSymbol = this.ContainingPEModule; 1608return ContainingPEModule.MetadataLocation.Cast<MetadataLocation, Location>(); 1731var moduleSymbol = this.ContainingPEModule; 1856return PEDocumentationCommentUtils.GetDocumentationComment(this, ContainingPEModule, preferredCulture, cancellationToken, ref _lazyDocComment); 1861var moduleSymbol = this.ContainingPEModule; 1897var moduleSymbol = this.ContainingPEModule; 1983var moduleSymbol = this.ContainingPEModule; 2010var moduleSymbol = this.ContainingPEModule; 2042var moduleSymbol = this.ContainingPEModule; 2081Debug.Assert(found || !module.ShouldImportMethod(typeDef, methodDef, this.ContainingPEModule.ImportOptions)); 2126if (this.ContainingPEModule.Module.HasRequiredAttributeAttribute(_handle)) 2171var decoder = new MetadataDecoder(ContainingPEModule, this); 2172var diag = PEUtilities.DeriveCompilerFeatureRequiredAttributeDiagnostic(this, ContainingPEModule, Handle, allowedFeatures: IsRefLikeType ? CompilerFeatureRequiredFeatures.RefStructs : CompilerFeatureRequiredFeatures.None, decoder); 2191: ContainingPEModule.GetCompilerFeatureRequiredDiagnostic(); 2208this.ContainingPEModule.Module.HasDefaultMemberAttribute(_handle, out defaultMemberName); 2243return ContainingPEModule.Module.HasGuidAttribute(_handle, out guidString); 2250return this.ContainingPEModule.Module.GetTypeLayout(_handle); 2293var moduleSymbol = this.ContainingPEModule; 2321var moduleSymbol = this.ContainingPEModule; 2360var type = this.ContainingPEModule.TryDecodeAttributeWithTypeArgument(this.Handle, AttributeDescription.CoClassAttribute); 2380ImmutableArray<string> conditionalSymbols = this.ContainingPEModule.Module.GetConditionalAttributeValues(_handle); 2399ObsoleteAttributeHelpers.InitializeObsoleteDataFromMetadata(ref uncommon.lazyObsoleteAttributeData, _handle, ContainingPEModule, ignoreByRefLikeMarker, ignoreRequiredMemberMarker: false); 2422if (this.ContainingPEModule.Module.HasAttributeUsageAttribute(_handle, new MetadataDecoder(ContainingPEModule), out AttributeUsageInfo info)) 2482if (this.ContainingPEModule.Module.HasInlineArrayAttribute(_handle, out length) && length > 0) 2524if (ContainingPEModule.Module.HasCollectionBuilderAttribute(_handle, out string builderTypeName, out string methodName)) 2526var decoder = new MetadataDecoder(ContainingPEModule); 2535builderArgument = this.ContainingPEModule.TryDecodeAttributeWithTypeArgument(this.Handle, AttributeDescription.AsyncMethodBuilderAttribute); 2696var moduleSymbol = ContainingPEModule; 2756var nestedType = Create(this.ContainingPEModule, (PENamespaceSymbol)this.ContainingNamespace, _handle, null);
Symbols\Metadata\PE\PEPropertySymbol.cs (5)
709var metadataDecoder = new MetadataDecoder(_containingType.ContainingPEModule, _containingType); 718return _containingType.ContainingPEModule.MetadataLocation.Cast<MetadataLocation, Location>(); 932return PEDocumentationCommentUtils.GetDocumentationComment(this, _containingType.ContainingPEModule, preferredCulture, cancellationToken, ref AccessUncommonFields()._lazyDocComment); 975PEModuleSymbol containingPEModule = _containingType.ContainingPEModule; 1051if (_containingType.ContainingPEModule.Module.TryGetOverloadResolutionPriorityValue(_handle, out int priority) &&