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