1 write to module
Microsoft.CodeAnalysis (1)
PEWriter\MetadataWriter.cs (1)
107
this.
module
= context.Module;
66 references to module
Microsoft.CodeAnalysis (66)
Emit\EditAndContinue\DeltaMetadataWriter.cs (6)
189
var synthesizedMembers = (_previousGeneration.Ordinal == 0) ?
module
.GetAllSynthesizedMembers() : _previousGeneration.SynthesizedMembers;
191
Debug.Assert(
module
.EncSymbolChanges is not null);
192
var deletedMembers = (_previousGeneration.Ordinal == 0) ?
module
.EncSymbolChanges.DeletedMembers : _previousGeneration.DeletedMembers;
208
module
,
231
synthesizedTypes: ((IPEDeltaAssemblyBuilder)
module
).GetSynthesizedTypes(),
491
var module = (IPEDeltaAssemblyBuilder)this.
module
;
PEWriter\FullMetadataWriter.cs (1)
88
int numMethods = this.
module
.HintNumberOfMethodDefinitions;
PEWriter\MetadataWriter.cs (54)
114
_signatureIndex = new Dictionary<ISignature, KeyValuePair<BlobHandle, ImmutableArray<byte>>>(
module
.HintNumberOfMethodDefinitions, ReferenceEqualityComparer.Instance); //ignores field signatures
147
private bool EmitAssemblyDefinition =>
module
.OutputKind != OutputKind.NetModule && !IsMinimalDelta;
459
internal CommonPEModuleBuilder Module =>
module
;
463
var referencesInIL =
module
.ReferencesInIL();
483
_referenceVisitor.Visit(
module
);
492
_pseudoStringTokenToStringMap =
module
.CopyStrings();
500
foreach (INamespaceTypeDefinition typeDef in
module
.GetTopLevelTypeDefinitions(Context))
505
if (
module
.GetUsedSynthesizedHotReloadExceptionType() is { } hotReloadException)
670
foreach (IAssemblyReference assemblyRef in this.
module
.GetAssemblyReferences(Context))
680
foreach (IFileReference fileRef in
module
.GetFiles(Context))
693
var containingAssembly = this.
module
.GetContainingAssembly(Context);
728
if (definingUnit != null && ReferenceEquals(definingUnit, this.
module
))
831
if (definingUnit != null && ReferenceEquals(definingUnit, this.
module
))
906
return aref == null || ReferenceEquals(aref, this.
module
.GetContainingAssembly(Context))
968
if (definingUnit != null && ReferenceEquals(definingUnit, this.
module
))
1173
if (definingUnit != null && ReferenceEquals(definingUnit, this.
module
))
1307
if (aref != null && aref !=
module
.GetContainingAssembly(Context))
1708
Debug.Assert(
module
.SerializationProperties.PersistentIdentifier != default(Guid));
1738
var rootBuilder = new MetadataRootBuilder(metadata,
module
.SerializationProperties.TargetRuntimeVersion, suppressValidation: true);
1811
EmbedTypeDefinitionDocumentInformation(
module
);
1813
if (
module
.SourceLinkStreamOpt != null)
1815
EmbedSourceLink(
module
.SourceLinkStreamOpt);
1818
EmbedCompilationOptions(
module
);
1819
EmbedMetadataReferenceInformation(
module
);
1862
return new MetadataRootBuilder(metadata,
module
.SerializationProperties.TargetRuntimeVersion, suppressValidation: true);
1875
IMethodReference entryPoint =
module
.PEEntryPoint;
1879
IMethodReference debugEntryPoint =
module
.DebugEntryPoint;
1978
var sourceAssembly =
module
.SourceAssemblyOpt;
1993
name: GetStringHandleForPathAndCheckLength(
module
.Name,
module
),
2013
AddModuleAttributesToTable(
module
);
2029
bool writingNetModule =
module
.OutputKind == OutputKind.NetModule;
2038
this.
module
.GetSourceAssemblySecurityAttributes().Select(sa => sa.Attribute),
2044
this.
module
.GetSourceAssemblyAttributes(Context.IsRefAssembly),
2079
resolutionScope: GetResolutionScopeHandle(
module
.GetCorLibrary(Context)),
2152
if (
module
.OutputKind != OutputKind.NetModule)
2154
this.PopulateDeclSecurityTableRowsFor(EntityHandle.AssemblyDefinition,
module
.GetSourceAssemblySecurityAttributes());
2225
var exportedTypes =
module
.GetExportedTypes(Context.Diagnostics);
2428
ISourceAssemblySymbolInternal assembly =
module
.SourceAssemblyOpt;
2525
foreach (var resource in this.
module
.GetResources(Context))
2711
CheckPathLength(this.
module
.ModuleName);
2714
Guid mvid = this.
module
.SerializationProperties.PersistentIdentifier;
2732
moduleName: metadata.GetOrAddString(this.
module
.ModuleName),
3290
token = _dynamicAnalysisDataWriterOpt.GetOrAddDocument(
module
.GetSourceDocumentFromIndex((uint)(pseudoToken & 0x00ffffff)));
3504
else if (
module
.IsPlatformType(type, PlatformType.SystemObject))
3523
Debug.Assert(this.
module
.IsPlatformType(targetType, PlatformType.SystemObject));
3553
if (this.
module
.IsPlatformType(targetType, PlatformType.SystemObject))
3561
this.
module
.IsPlatformType(c.Type, PlatformType.SystemObject))
3583
Debug.Assert(!
module
.IsPlatformType(c.Type, PlatformType.SystemType) || c.Value == null);
3781
if (
module
.IsPlatformType(returnType, PlatformType.SystemVoid))
3819
if (
module
.IsPlatformType(typeReference, PlatformType.SystemTypedReference))
3891
if (
module
.IsPlatformType(typeReference, PlatformType.SystemObject))
4020
if (
module
.IsPlatformType(elementType, PlatformType.SystemObject))
4043
else if (
module
.IsPlatformType(typeReference, PlatformType.SystemType))
PEWriter\MetadataWriter.PortablePdb.cs (5)
226
else if (this.
module
.IsPlatformType(type, PlatformType.SystemObject))
419
foreach (AssemblyReferenceAlias alias in
module
.GetAssemblyReferenceAliases(Context))
424
foreach (UsedNamespaceOrType import in
module
.GetImports())
472
if (
module
.DefaultNamespace == null)
480
value: _debugMetadataOpt.GetOrAddBlobUTF8(
module
.DefaultNamespace));