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)
115if (this.ContainingPEModule.HasAnyCustomAttributes(_handle)) 387return ContainingPEModule; 445uncommon.lazyHasInterpolatedStringHandlerAttribute = ContainingPEModule.Module.HasInterpolatedStringHandlerAttribute(_handle).ToThreeState(); 464uncommon.lazyHasEmbeddedAttribute = ContainingPEModule.Module.HasCodeAnalysisEmbeddedAttribute(_handle).ToThreeState(); 518var moduleSymbol = ContainingPEModule; 547var moduleSymbol = ContainingPEModule; 567var moduleSymbol = ContainingPEModule; 705var loadedCustomAttributes = ContainingPEModule.GetCustomAttributesForToken( 749value = ContainingPEModule.Module.HasNullableContextAttribute(_handle, out byte arg) ? 775var moduleSymbol = ContainingPEModule; 893var hasRequiredMemberAttribute = ContainingPEModule.Module.HasAttribute(_handle, AttributeDescription.RequiredMemberAttribute); 913var moduleSymbol = this.ContainingPEModule; 1043foreach (var handle in this.ContainingPEModule.Module.GetFieldsOfTypeOrThrow(_handle)) 1097var module = this.ContainingPEModule.Module; 1203var moduleSymbol = this.ContainingPEModule; 1289var moduleSymbol = this.ContainingPEModule; 1579var moduleSymbol = this.ContainingPEModule; 1609return ContainingPEModule.MetadataLocation.Cast<MetadataLocation, Location>(); 1732var moduleSymbol = this.ContainingPEModule; 1857return PEDocumentationCommentUtils.GetDocumentationComment(this, ContainingPEModule, preferredCulture, cancellationToken, ref _lazyDocComment); 1862var moduleSymbol = this.ContainingPEModule; 1898var moduleSymbol = this.ContainingPEModule; 1984var moduleSymbol = this.ContainingPEModule; 2011var moduleSymbol = this.ContainingPEModule; 2043var moduleSymbol = this.ContainingPEModule; 2082Debug.Assert(found || !module.ShouldImportMethod(typeDef, methodDef, this.ContainingPEModule.ImportOptions)); 2127if (this.ContainingPEModule.Module.HasRequiredAttributeAttribute(_handle)) 2172var decoder = new MetadataDecoder(ContainingPEModule, this); 2173var diag = PEUtilities.DeriveCompilerFeatureRequiredAttributeDiagnostic(this, ContainingPEModule, Handle, allowedFeatures: IsRefLikeType ? CompilerFeatureRequiredFeatures.RefStructs : CompilerFeatureRequiredFeatures.None, decoder); 2192: ContainingPEModule.GetCompilerFeatureRequiredDiagnostic(); 2209this.ContainingPEModule.Module.HasDefaultMemberAttribute(_handle, out defaultMemberName); 2244return ContainingPEModule.Module.HasGuidAttribute(_handle, out guidString); 2251return this.ContainingPEModule.Module.GetTypeLayout(_handle); 2294var moduleSymbol = this.ContainingPEModule; 2322var moduleSymbol = this.ContainingPEModule; 2361var type = this.ContainingPEModule.TryDecodeAttributeWithTypeArgument(this.Handle, AttributeDescription.CoClassAttribute); 2381ImmutableArray<string> conditionalSymbols = this.ContainingPEModule.Module.GetConditionalAttributeValues(_handle); 2400ObsoleteAttributeHelpers.InitializeObsoleteDataFromMetadata(ref uncommon.lazyObsoleteAttributeData, _handle, ContainingPEModule, ignoreByRefLikeMarker, ignoreRequiredMemberMarker: false); 2423if (this.ContainingPEModule.Module.HasAttributeUsageAttribute(_handle, new MetadataDecoder(ContainingPEModule), out AttributeUsageInfo info)) 2483if (this.ContainingPEModule.Module.HasInlineArrayAttribute(_handle, out length) && length > 0) 2525if (ContainingPEModule.Module.HasCollectionBuilderAttribute(_handle, out string builderTypeName, out string methodName)) 2527var decoder = new MetadataDecoder(ContainingPEModule); 2536builderArgument = this.ContainingPEModule.TryDecodeAttributeWithTypeArgument(this.Handle, AttributeDescription.AsyncMethodBuilderAttribute); 2697var moduleSymbol = ContainingPEModule; 2757var 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) &&