2 instantiations of PEModule
Microsoft.CodeAnalysis (2)
MetadataReference\ModuleMetadata.cs (2)
35_module = new PEModule(this, peReader: peReader, metadataOpt: IntPtr.Zero, metadataSizeOpt: 0, includeEmbeddedInteropTypes: false, ignoreAssemblyRefs: false); 47_module = new PEModule(this, peReader: null, metadataOpt: metadata, metadataSizeOpt: size, includeEmbeddedInteropTypes: includeEmbeddedInteropTypes, ignoreAssemblyRefs: ignoreAssemblyRefs);
51 references to PEModule
Microsoft.CodeAnalysis (45)
DiagnosticAnalyzer\AnalyzerFileReference.cs (7)
34private delegate ImmutableArray<string> AttributeLanguagesFunc(PEModule module, CustomAttributeHandle attribute); 257private static ImmutableArray<string> GetSupportedLanguages(TypeDefinition typeDef, PEModule peModule, Type attributeType, AttributeLanguagesFunc languagesFunc) 283private static ImmutableArray<string> GetDiagnosticsAnalyzerSupportedLanguages(PEModule peModule, CustomAttributeHandle customAttrHandle) 292private static ImmutableArray<string> GetGeneratorSupportedLanguages(PEModule peModule, CustomAttributeHandle customAttrHandle) 319if (!PEModule.CrackStringInAttributeValue(out firstLanguageName, ref argsReader)) 325if (PEModule.CrackStringArrayInAttributeValue(out additionalLanguageNames, ref argsReader)) 350private static string GetFullyQualifiedTypeName(TypeDefinition typeDef, PEModule peModule)
MetadataReader\MetadataDecoder.cs (8)
121public readonly PEModule Module; 126internal MetadataDecoder(PEModule module, AssemblyIdentity containingAssemblyIdentity, SymbolFactory<ModuleSymbol, TypeSymbol> factory, ModuleSymbol moduleSymbol) : 1257internal static void GetSignatureCountsOrThrow(PEModule module, MethodDefinitionHandle methodDef, out int parameterCount, out int typeParameterCount) 1360if (!PEModule.CrackStringInAttributeValue(out enumTypeName, ref argReader)) 1528TypedConstantKind kind = PEModule.CrackStringInAttributeValue(out s, ref argReader) ? 1536TypeSymbol serializedType = PEModule.CrackStringInAttributeValue(out typeName, ref argReader) ? 1572if (!PEModule.CrackStringInAttributeValue(out name, ref argReader)) 1775internal static BlobReader DecodeSignatureHeaderOrThrow(PEModule module, BlobHandle signature, out SignatureHeader signatureHeader)
MetadataReader\ModuleExtensions.cs (2)
22public static bool ShouldImportField(this PEModule module, FieldDefinitionHandle field, MetadataImportOptions importOptions) 60public static bool ShouldImportMethod(this PEModule module, TypeDefinitionHandle typeDef, MethodDefinitionHandle methodDef, MetadataImportOptions importOptions)
MetadataReader\PEAssembly.cs (5)
33private readonly ImmutableArray<PEModule> _modules; 58internal PEAssembly(AssemblyMetadata owner, ImmutableArray<PEModule> modules) 92internal PEModule ManifestModule 97internal ImmutableArray<PEModule> Modules 117foreach (PEModule module in Modules)
MetadataReference\AssemblyMetadata.cs (1)
420var module = modules[i].Module;
MetadataReference\ModuleMetadata.cs (2)
23private readonly PEModule _module; 316internal PEModule Module
ReferenceManager\AssemblyDataForAssemblyBeingBuilt.cs (1)
29ImmutableArray<PEModule> modules)
ReferenceManager\CommonReferenceManager.Binding.cs (5)
35/// An array of <see cref="PEModule"/> objects describing standalone modules referenced by the compilation. 95ImmutableArray<PEModule> explicitModules, 211ImmutableArray<PEModule> explicitModules, 390ImmutableArray<PEModule> explicitModules, 438private static ImmutableArray<int> CalculateModuleToReferenceMap(ImmutableArray<PEModule> modules, ImmutableArray<ResolvedReference> resolvedReferences)
ReferenceManager\CommonReferenceManager.Resolution.cs (6)
217out ImmutableArray<PEModule> modules, 239ArrayBuilder<PEModule>? lazyModulesBuilder = null; 428modules = ImmutableArray<PEModule>.Empty; 646private static void AddModule(PEModule module, int referenceIndex, ResolvedReference[] referenceMap, [NotNull] ref ArrayBuilder<PEModule>? modules) 650modules = ArrayBuilder<PEModule>.GetInstance();
ReferenceManager\CommonReferenceManager.State.cs (3)
160private ImmutableArray<PEModule> _lazyReferencedModules; 288internal ImmutableArray<PEModule> ReferencedModules 418ImmutableArray<PEModule> referencedModules,
Symbols\Attributes\CommonEventEarlyWellKnownAttributeData.cs (1)
35if (PEModule.IsMoreImportantObsoleteKind(_obsoleteAttributeData.Kind, value.Kind))
Symbols\Attributes\CommonFieldEarlyWellKnownAttributeData.cs (1)
35if (PEModule.IsMoreImportantObsoleteKind(_obsoleteAttributeData.Kind, value.Kind))
Symbols\Attributes\CommonMethodEarlyWellKnownAttributeData.cs (1)
51if (PEModule.IsMoreImportantObsoleteKind(_obsoleteAttributeData.Kind, value.Kind))
Symbols\Attributes\CommonPropertyEarlyWellKnownAttributeData.cs (1)
31if (PEModule.IsMoreImportantObsoleteKind(_obsoleteAttributeData.Kind, value.Kind))
Symbols\Attributes\CommonTypeEarlyWellKnownAttributeData.cs (1)
89if (PEModule.IsMoreImportantObsoleteKind(_obsoleteAttributeData.Kind, value.Kind))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests.cs (1)
1632var metadata = ((PEModuleSymbol)module).Module;
Attributes\AttributeTests_Assembly.cs (1)
1787var metadata = module.Module;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\GenericConstraintTests.cs (1)
6581var metadata = ((PEModuleSymbol)module).Module;
Symbols\Metadata\PE\TypeForwarders.cs (2)
1633var metadata = module.Module; 1707var appModule = ModuleMetadata.CreateFromImage(appCompilation.EmitToArray()).Module;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
LifetimeAnnotationAttributesVisitor.cs (1)
94var module = ((PEModuleSymbol)parameter.ContainingModule).Module;