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