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