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