1 write to module
Microsoft.CodeAnalysis (1)
PEWriter\MetadataWriter.cs (1)
106
this.
module
= context.Module;
66 references to module
Microsoft.CodeAnalysis (66)
Emit\EditAndContinue\DeltaMetadataWriter.cs (6)
199
var synthesizedMembers = (_previousGeneration.Ordinal == 0) ?
module
.GetAllSynthesizedMembers() : _previousGeneration.SynthesizedMembers;
200
var synthesizedTypes = (_previousGeneration.Ordinal == 0) ?
module
.GetAllSynthesizedTypes() : _previousGeneration.SynthesizedTypes;
202
Debug.Assert(
module
.EncSymbolChanges is not null);
203
var deletedMembers = (_previousGeneration.Ordinal == 0) ?
module
.EncSymbolChanges.DeletedMembers : _previousGeneration.DeletedMembers;
219
module
,
502
var module = (IPEDeltaAssemblyBuilder)this.
module
;
PEWriter\FullMetadataWriter.cs (1)
87
int numMethods = this.
module
.HintNumberOfMethodDefinitions;
PEWriter\MetadataWriter.cs (54)
113
_signatureIndex = new SegmentedDictionary<ISignature, KeyValuePair<BlobHandle, ImmutableArray<byte>>>(
module
.HintNumberOfMethodDefinitions, ReferenceEqualityComparer.Instance); //ignores field signatures
146
private bool EmitAssemblyDefinition =>
module
.OutputKind != OutputKind.NetModule && !IsMinimalDelta;
458
internal CommonPEModuleBuilder Module =>
module
;
462
var referencesInIL =
module
.ReferencesInIL();
482
_referenceVisitor.Visit(
module
);
491
_pseudoStringTokenToStringMap =
module
.CopyStrings();
499
foreach (INamespaceTypeDefinition typeDef in
module
.GetTopLevelTypeDefinitions(Context))
504
if (
module
.GetUsedSynthesizedHotReloadExceptionType() is { } hotReloadException)
669
foreach (IAssemblyReference assemblyRef in this.
module
.GetAssemblyReferences(Context))
679
foreach (IFileReference fileRef in
module
.GetFiles(Context))
692
var containingAssembly = this.
module
.GetContainingAssembly(Context);
727
if (definingUnit != null && ReferenceEquals(definingUnit, this.
module
))
830
if (definingUnit != null && ReferenceEquals(definingUnit, this.
module
))
905
return aref == null || ReferenceEquals(aref, this.
module
.GetContainingAssembly(Context))
967
if (definingUnit != null && ReferenceEquals(definingUnit, this.
module
))
1172
if (definingUnit != null && ReferenceEquals(definingUnit, this.
module
))
1306
if (aref != null && aref !=
module
.GetContainingAssembly(Context))
1714
Debug.Assert(
module
.SerializationProperties.PersistentIdentifier != default(Guid));
1743
var rootBuilder = new MetadataRootBuilder(metadata,
module
.SerializationProperties.TargetRuntimeVersion, suppressValidation: true);
1820
EmbedTypeDefinitionDocumentInformation(
module
);
1822
if (
module
.SourceLinkStreamOpt != null)
1824
EmbedSourceLink(
module
.SourceLinkStreamOpt);
1827
EmbedCompilationOptions(
module
);
1828
EmbedMetadataReferenceInformation(
module
);
1874
return new MetadataRootBuilder(metadata,
module
.SerializationProperties.TargetRuntimeVersion, suppressValidation: true);
1887
IMethodReference entryPoint =
module
.PEEntryPoint;
1891
IMethodReference debugEntryPoint =
module
.DebugEntryPoint;
1990
var sourceAssembly =
module
.SourceAssemblyOpt;
2005
name: GetStringHandleForPathAndCheckLength(
module
.Name,
module
),
2025
AddModuleAttributesToTable(
module
);
2041
bool writingNetModule =
module
.OutputKind == OutputKind.NetModule;
2050
this.
module
.GetSourceAssemblySecurityAttributes().Select(sa => sa.Attribute),
2056
this.
module
.GetSourceAssemblyAttributes(Context.IsRefAssembly),
2091
resolutionScope: GetResolutionScopeHandle(
module
.GetCorLibrary(Context)),
2158
if (
module
.OutputKind != OutputKind.NetModule)
2160
this.PopulateDeclSecurityTableRowsFor(EntityHandle.AssemblyDefinition,
module
.GetSourceAssemblySecurityAttributes());
2231
var exportedTypes =
module
.GetExportedTypes(Context);
2441
ISourceAssemblySymbolInternal assembly =
module
.SourceAssemblyOpt;
2538
foreach (var resource in this.
module
.GetResources(Context))
2748
CheckPathLength(this.
module
.ModuleName);
2751
Guid mvid = this.
module
.SerializationProperties.PersistentIdentifier;
2769
moduleName: metadata.GetOrAddString(this.
module
.ModuleName),
3327
token = _dynamicAnalysisDataWriterOpt.GetOrAddDocument(
module
.GetSourceDocumentFromIndex((uint)(pseudoToken & 0x00ffffff)));
3541
else if (
module
.IsPlatformType(type, PlatformType.SystemObject))
3560
Debug.Assert(this.
module
.IsPlatformType(targetType, PlatformType.SystemObject));
3590
if (this.
module
.IsPlatformType(targetType, PlatformType.SystemObject))
3598
this.
module
.IsPlatformType(c.Type, PlatformType.SystemObject))
3620
Debug.Assert(!
module
.IsPlatformType(c.Type, PlatformType.SystemType) || c.Value == null);
3818
if (
module
.IsPlatformType(returnType, PlatformType.SystemVoid))
3856
if (
module
.IsPlatformType(typeReference, PlatformType.SystemTypedReference))
3926
if (
module
.IsPlatformType(typeReference, PlatformType.SystemObject))
4055
if (
module
.IsPlatformType(elementType, PlatformType.SystemObject))
4078
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));