90 references to ContainingPEModule
Microsoft.CodeAnalysis.CSharp (90)
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 (47)
115
if (this.
ContainingPEModule
.HasAnyCustomAttributes(_handle))
388
return
ContainingPEModule
;
446
uncommon.lazyHasInterpolatedStringHandlerAttribute =
ContainingPEModule
.Module.HasInterpolatedStringHandlerAttribute(_handle).ToThreeState();
465
uncommon.lazyHasEmbeddedAttribute =
ContainingPEModule
.Module.HasCodeAnalysisEmbeddedAttribute(_handle).ToThreeState();
484
uncommon.lazyHasCompilerLoweringPreserveAttribute =
ContainingPEModule
.Module.HasCompilerLoweringPreserveAttribute(_handle).ToThreeState();
538
var moduleSymbol =
ContainingPEModule
;
567
var moduleSymbol =
ContainingPEModule
;
587
var moduleSymbol =
ContainingPEModule
;
725
var loadedCustomAttributes =
ContainingPEModule
.GetCustomAttributesForToken(
769
value =
ContainingPEModule
.Module.HasNullableContextAttribute(_handle, out byte arg) ?
795
var moduleSymbol =
ContainingPEModule
;
913
var hasRequiredMemberAttribute =
ContainingPEModule
.Module.HasAttribute(_handle, AttributeDescription.RequiredMemberAttribute);
933
var moduleSymbol = this.
ContainingPEModule
;
1063
foreach (var handle in this.
ContainingPEModule
.Module.GetFieldsOfTypeOrThrow(_handle))
1117
var module = this.
ContainingPEModule
.Module;
1223
var moduleSymbol = this.
ContainingPEModule
;
1309
var moduleSymbol = this.
ContainingPEModule
;
1599
var moduleSymbol = this.
ContainingPEModule
;
1629
return
ContainingPEModule
.MetadataLocation.Cast<MetadataLocation, Location>();
1752
var moduleSymbol = this.
ContainingPEModule
;
1877
return PEDocumentationCommentUtils.GetDocumentationComment(this,
ContainingPEModule
, preferredCulture, cancellationToken, ref _lazyDocComment);
1882
var moduleSymbol = this.
ContainingPEModule
;
1918
var moduleSymbol = this.
ContainingPEModule
;
2004
var moduleSymbol = this.
ContainingPEModule
;
2031
var moduleSymbol = this.
ContainingPEModule
;
2063
var moduleSymbol = this.
ContainingPEModule
;
2102
Debug.Assert(found || !module.ShouldImportMethod(typeDef, methodDef, this.
ContainingPEModule
.ImportOptions));
2147
if (this.
ContainingPEModule
.Module.HasRequiredAttributeAttribute(_handle))
2192
var decoder = new MetadataDecoder(
ContainingPEModule
, this);
2193
var diag = PEUtilities.DeriveCompilerFeatureRequiredAttributeDiagnostic(this,
ContainingPEModule
, Handle, allowedFeatures: IsRefLikeType ? CompilerFeatureRequiredFeatures.RefStructs : CompilerFeatureRequiredFeatures.None, decoder);
2212
:
ContainingPEModule
.GetCompilerFeatureRequiredDiagnostic();
2229
this.
ContainingPEModule
.Module.HasDefaultMemberAttribute(_handle, out defaultMemberName);
2264
return
ContainingPEModule
.Module.HasGuidAttribute(_handle, out guidString);
2271
return this.
ContainingPEModule
.Module.GetTypeLayout(_handle);
2314
var moduleSymbol = this.
ContainingPEModule
;
2342
var moduleSymbol = this.
ContainingPEModule
;
2381
var type = this.
ContainingPEModule
.TryDecodeAttributeWithTypeArgument(this.Handle, AttributeDescription.CoClassAttribute);
2401
ImmutableArray<string> conditionalSymbols = this.
ContainingPEModule
.Module.GetConditionalAttributeValues(_handle);
2420
ObsoleteAttributeHelpers.InitializeObsoleteDataFromMetadata(ref uncommon.lazyObsoleteAttributeData, _handle,
ContainingPEModule
, ignoreByRefLikeMarker, ignoreRequiredMemberMarker: false);
2443
if (this.
ContainingPEModule
.Module.HasAttributeUsageAttribute(_handle, new MetadataDecoder(
ContainingPEModule
), out AttributeUsageInfo info))
2503
if (this.
ContainingPEModule
.Module.HasInlineArrayAttribute(_handle, out length) && length > 0)
2545
if (
ContainingPEModule
.Module.HasCollectionBuilderAttribute(_handle, out string builderTypeName, out string methodName))
2547
var decoder = new MetadataDecoder(
ContainingPEModule
);
2556
builderArgument = this.
ContainingPEModule
.TryDecodeAttributeWithTypeArgument(this.Handle, AttributeDescription.AsyncMethodBuilderAttribute);
2717
var moduleSymbol =
ContainingPEModule
;
2777
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) &&