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