125 references to Module
Microsoft.CodeAnalysis.CSharp (125)
Compilation\CSharpCompilation.cs (1)
3716
resources = m.
Module
.GetEmbeddedResourcesOrThrow();
Emitter\Model\PEAssemblyBuilder.cs (1)
176
foreach (EmbeddedResource resource in ((Symbols.Metadata.PE.PEModuleSymbol)modules[i]).
Module
.GetEmbeddedResourcesOrThrow())
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
74
if (containingModule.
Module
.HasDynamicAttribute(targetSymbolToken, out dynamicTransformFlags))
Symbols\Metadata\PE\MetadataDecoder.cs (1)
56
: base(moduleSymbol.
Module
, (moduleSymbol.ContainingAssembly is PEAssemblySymbol) ? moduleSymbol.ContainingAssembly.Identity : null, SymbolFactory.Instance, moduleSymbol)
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
24
return containingModule.
Module
.HasNativeIntegerAttribute(handle, out var transformFlags) ?
Symbols\Metadata\PE\NullableTypeDecoder.cs (1)
38
if (!containingModule.
Module
.HasNullableAttribute(targetSymbolToken, out defaultTransformFlag, out nullableTransformFlags))
Symbols\Metadata\PE\PEAssemblySymbol.cs (3)
135
=> PrimaryModule.
Module
.HasImportedFromTypeLibAttribute(Assembly.Handle, out _);
138
=> PrimaryModule.
Module
.HasPrimaryInteropAssemblyAttribute(Assembly.Handle, out _, out _);
329
var experimentalData = PrimaryModule.
Module
.TryDecodeExperimentalAttributeData(Assembly.Handle, new MetadataDecoder(PrimaryModule));
Symbols\Metadata\PE\PEEventSymbol.cs (1)
76
var module = moduleSymbol.
Module
;
Symbols\Metadata\PE\PEFieldSymbol.cs (11)
149
moduleSymbol.
Module
.GetFieldDefPropsOrThrow(fieldDef, out _name, out _flags);
251
return _containingType.ContainingPEModule.
Module
.GetMarshallingType(_handle);
264
return _containingType.ContainingPEModule.
Module
.GetMarshallingDescriptor(_handle);
272
return _containingType.ContainingPEModule.
Module
.GetFieldOffset(_handle);
326
moduleSymbol.
Module
.HasIsReadOnlyAttribute(_handle) ? RefKind.RefReadOnly : RefKind.Ref :
354
if (containingPEModule.
Module
.HasFixedBufferAttribute(_handle, out elementTypeName, out bufferSize))
408
value = DecodeFlowAnalysisAttributes(_containingType.ContainingPEModule.
Module
, _handle);
490
value = _containingType.ContainingPEModule.
Module
.GetConstantFieldValue(_handle);
499
if (_containingType.ContainingPEModule.
Module
.HasDecimalConstantAttribute(Handle, out defaultValue))
619
containingPEModuleSymbol.
Module
.FindLastTargetAttribute(_handle, AttributeDescription.DecimalConstantAttribute).Handle);
687
hasRequiredMemberAttribute = ContainingPEModule.
Module
.HasAttribute(_handle, AttributeDescription.RequiredMemberAttribute);
Symbols\Metadata\PE\PEGlobalNamespaceSymbol.cs (1)
90
groups = _moduleSymbol.
Module
.GroupTypesByNamespaceOrThrow(System.StringComparer.Ordinal);
Symbols\Metadata\PE\PEMethodSymbol.cs (16)
419
moduleSymbol.
Module
.GetMethodDefPropsOrThrow(methodDef, out _name, out implFlags, out localflags, out rva);
472
? _containingType.ContainingPEModule.
Module
.GetDllImportData(_handle)
544
MetadataDecoder.GetSignatureCountsOrThrow(_containingType.ContainingPEModule.
Module
, _handle, out parameterCount, out typeParameterCount);
647
MetadataDecoder.GetSignatureCountsOrThrow(_containingType.ContainingPEModule.
Module
, _handle,
677
bool doesNotReturn = moduleSymbol.
Module
.HasDoesNotReturnAttribute(_handle);
709
var module = _containingType.ContainingPEModule.
Module
;
897
return _containingType.ContainingPEModule.
Module
.GetMethodSignatureOrThrow(_handle);
937
var gpHandles = moduleSymbol.
Module
.GetGenericParametersForMethodOrThrow(_handle);
979
isExtensionMethod = moduleSymbol.
Module
.HasExtensionAttribute(_handle, ignoreCase: false);
1086
value = _containingType.ContainingPEModule.
Module
.HasNullableContextAttribute(_handle, out byte arg) ?
1398
isReadOnly = moduleSymbol.
Module
.HasIsReadOnlyAttribute(_handle);
1527
var result = _containingType.ContainingPEModule.
Module
.GetConditionalAttributeValues(_handle);
1559
var result = _containingType.ContainingPEModule.
Module
.HasAttribute(_handle, AttributeDescription.SetsRequiredMembersAttribute);
1609
var unmanagedCallersOnlyData = containingModule.
Module
.TryGetUnmanagedCallersOnlyAttribute(_handle, new MetadataDecoder(containingModule),
1689
bool unscopedRef = moduleSymbol.
Module
.HasUnscopedRefAttribute(_handle);
1709
if (_containingType.ContainingPEModule.
Module
.TryGetOverloadResolutionPriorityValue(_handle, out int priority) &&
Symbols\Metadata\PE\PEModuleSymbol.cs (6)
258
EntityHandle assemblyMSCorLib =
Module
.GetAssemblyRef(corlibName);
264
Module
.GetTypeRef(
273
foreach (var customAttributeHandle in
Module
.GetCustomAttributesOrThrow(typerefAssemblyAttributesGoHere))
413
=> filter.Signatures != null &&
Module
.GetTargetAttributeSignatureIndex(handle, filter) != -1;
744
(int firstIndex, int secondIndex) = this.
Module
.GetAssemblyRefsForForwardedType(fullName.FullName, ignoreCase: false, matchedName: out matchedName);
766
foreach (KeyValuePair<string, (int FirstIndex, int SecondIndex)> forwarder in
Module
.GetForwardedTypes())
Symbols\Metadata\PE\PENamedTypeSymbol.cs (32)
218
genericParameterHandles = moduleSymbol.
Module
.GetTypeDefGenericParamsOrThrow(handle);
291
metadataName = moduleSymbol.
Module
.GetTypeDefNameOrThrow(handle);
304
_flags = moduleSymbol.
Module
.GetTypeDefFlagsOrThrow(handle);
444
uncommon.lazyHasInterpolatedStringHandlerAttribute = ContainingPEModule.
Module
.HasInterpolatedStringHandlerAttribute(_handle).ToThreeState();
463
uncommon.lazyHasEmbeddedAttribute = ContainingPEModule.
Module
.HasCodeAnalysisEmbeddedAttribute(_handle).ToThreeState();
547
EntityHandle token = moduleSymbol.
Module
.GetBaseTypeOfTypeOrThrow(_handle);
567
var interfaceImpls = moduleSymbol.
Module
.GetInterfaceImplementationsOrThrow(_handle);
576
EntityHandle interfaceHandle = moduleSymbol.
Module
.MetadataReader.GetInterfaceImplementation(interfaceImpl).Interface;
748
value = ContainingPEModule.
Module
.HasNullableContextAttribute(_handle, out byte arg) ?
775
var module = moduleSymbol.
Module
;
892
var hasRequiredMemberAttribute = ContainingPEModule.
Module
.HasAttribute(_handle, AttributeDescription.RequiredMemberAttribute);
913
var module = moduleSymbol.
Module
;
1042
foreach (var handle in this.ContainingPEModule.
Module
.GetFieldsOfTypeOrThrow(_handle))
1096
var module = this.ContainingPEModule.
Module
;
1203
var module = moduleSymbol.
Module
;
1289
var module = moduleSymbol.
Module
;
1732
var module = moduleSymbol.
Module
;
1862
var module = moduleSymbol.
Module
;
1898
var module = moduleSymbol.
Module
;
1984
var module = moduleSymbol.
Module
;
2011
var module = moduleSymbol.
Module
;
2043
var module = moduleSymbol.
Module
;
2126
if (this.ContainingPEModule.
Module
.HasRequiredAttributeAttribute(_handle))
2208
this.ContainingPEModule.
Module
.HasDefaultMemberAttribute(_handle, out defaultMemberName);
2243
return ContainingPEModule.
Module
.HasGuidAttribute(_handle, out guidString);
2250
return this.ContainingPEModule.
Module
.GetTypeLayout(_handle);
2294
var module = moduleSymbol.
Module
;
2322
var module = moduleSymbol.
Module
;
2380
ImmutableArray<string> conditionalSymbols = this.ContainingPEModule.
Module
.GetConditionalAttributeValues(_handle);
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))
Symbols\Metadata\PE\PENamespaceSymbol.cs (3)
279
var skipCheckForPiaType = !moduleSymbol.
Module
.ContainsNoPiaLocalTypes();
286
if (skipCheckForPiaType || !moduleSymbol.
Module
.IsNoPiaLocalType(t))
294
string typeDefName = moduleSymbol.
Module
.GetTypeDefNameOrThrow(t);
Symbols\Metadata\PE\PEParameterSymbol.cs (23)
279
moduleSymbol.
Module
.GetParamPropsOrThrow(handle, out _name, out _flags);
294
else if (!isReturn && moduleSymbol.
Module
.HasRequiresLocationAttribute(handle))
298
else if (moduleSymbol.
Module
.HasIsReadOnlyAttribute(handle))
320
hasUnscopedRefAttribute = _moduleSymbol.
Module
.HasUnscopedRefAttribute(_handle);
323
if (_moduleSymbol.
Module
.HasScopedRefAttribute(_handle))
329
else if (_moduleSymbol.
Module
.HasScopedRefAttribute(_handle))
543
value = _moduleSymbol.
Module
.GetParamDefaultValue(_handle);
579
if (_moduleSymbol.
Module
.HasDateTimeConstantAttribute(_handle, out value))
586
if (_moduleSymbol.
Module
.HasDecimalConstantAttribute(_handle, out value))
611
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.
Module
.HasAttribute(_handle,
627
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.
Module
.HasAttribute(_handle,
643
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.
Module
.HasAttribute(_handle,
659
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.
Module
.HasAttribute(_handle,
675
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.
Module
.HasAttribute(_handle,
751
var info = _moduleSymbol.
Module
.FindTargetAttribute(_handle, AttributeDescription.CallerArgumentExpressionAttribute);
761
_moduleSymbol.
Module
.TryExtractStringValueFromAttribute(info.Handle, out var parameterName);
785
value = DecodeFlowAnalysisAttributes(_moduleSymbol.
Module
, _handle);
861
var (paramNames, hasAttribute) = _moduleSymbol.
Module
.GetInterpolatedStringHandlerArgumentAttributeValues(_handle);
917
return _moduleSymbol.
Module
.GetStringValuesOfNotNullIfNotNullAttribute(_handle);
974
return _moduleSymbol.
Module
.GetMarshallingDescriptor(_handle);
988
return _moduleSymbol.
Module
.GetMarshallingType(_handle);
1017
if (_moduleSymbol.
Module
.HasParamArrayAttribute(_handle))
1022
if (_moduleSymbol.
Module
.HasParamCollectionAttribute(_handle))
Symbols\Metadata\PE\PEPropertySymbol.cs (5)
231
var module = moduleSymbol.
Module
;
279
if (moduleSymbol.
Module
.HasIsReadOnlyAttribute(handle))
617
hasRequiredMemberAttribute = containingPEModuleSymbol.
Module
.HasAttribute(_handle, AttributeDescription.RequiredMemberAttribute);
632
hasUnscopedRefAttribute = containingPEModuleSymbol.
Module
.HasUnscopedRefAttribute(_handle);
1051
if (_containingType.ContainingPEModule.
Module
.TryGetOverloadResolutionPriorityValue(_handle, out int priority) &&
Symbols\Metadata\PE\PETypeParameterSymbol.cs (5)
81
moduleSymbol.
Module
.GetGenericParamPropsOrThrow(handle, out _name, out flags);
160
PEModule peModule = moduleSymbol.
Module
;
427
return GetConstraintHandleCollection(((PEModuleSymbol)this.ContainingModule).
Module
);
476
if (((PEModuleSymbol)this.ContainingModule).
Module
.HasNullableAttribute(_handle, out byte value, out _))
521
PEModule module = moduleSymbol.
Module
;
Symbols\Metadata\PE\PEUtilities.cs (1)
13
string? disallowedFeature = module.
Module
.GetFirstUnsupportedCompilerFeatureFromToken(handle, decoder, allowedFeatures);
Symbols\Metadata\PE\SymbolFactory.cs (1)
107
if (!linkedAssemblies.IsDefaultOrEmpty || moduleSymbol.
Module
.ContainsNoPiaLocalTypes())
Symbols\Metadata\PE\TupleTypeDecoder.cs (2)
87
.
Module
107
.
Module
Symbols\ObsoleteAttributeHelpers.cs (1)
46
var obsoleteAttributeData = containingModule.
Module
.TryGetDeprecatedOrExperimentalOrObsoleteAttribute(token, new MetadataDecoder(containingModule), ignoreByRefLikeMarker, ignoreRequiredMemberMarker);
Symbols\Retargeting\RetargetingAssemblySymbol.cs (1)
115
modules[i] = new PEModuleSymbol(this, under.
Module
, under.ImportOptions, i);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (4)
305
Debug.Assert(ReferenceEquals(((PEModuleSymbol)module).
Module
, addedModule.
Module
));
404
ReferenceEquals(((PEModuleSymbol)type.ContainingModule).
Module
, addedModule.
Module
));
Symbols\Source\SourceAssemblySymbol.cs (3)
184
if (peModuleSymbol.
Module
.ContainsNoPiaLocalTypes())
1002
if (!((PEModuleSymbol)m).
Module
.IsCOFFOnly)
1032
foreach (var referencedModuleName in m.
Module
.GetReferencedManagedModulesOrThrow())