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)
209
var synthesizedMembers = (_previousGeneration.Ordinal == 0) ?
module
.GetAllSynthesizedMembers() : _previousGeneration.SynthesizedMembers;
210
var synthesizedTypes = (_previousGeneration.Ordinal == 0) ?
module
.GetAllSynthesizedTypes() : _previousGeneration.SynthesizedTypes;
212
Debug.Assert(
module
.EncSymbolChanges is not null);
213
var deletedMembers = (_previousGeneration.Ordinal == 0) ?
module
.EncSymbolChanges.DeletedMembers : _previousGeneration.DeletedMembers;
229
module
,
512
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);
1824
EmbedTypeDefinitionDocumentInformation(
module
);
1826
if (
module
.SourceLinkStreamOpt != null)
1828
EmbedSourceLink(
module
.SourceLinkStreamOpt);
1831
EmbedCompilationOptions(
module
);
1832
EmbedMetadataReferenceInformation(
module
);
1878
return new MetadataRootBuilder(metadata,
module
.SerializationProperties.TargetRuntimeVersion, suppressValidation: true);
1891
IMethodReference entryPoint =
module
.PEEntryPoint;
1895
IMethodReference debugEntryPoint =
module
.DebugEntryPoint;
1994
var sourceAssembly =
module
.SourceAssemblyOpt;
2009
name: GetStringHandleForPathAndCheckLength(
module
.Name,
module
),
2029
AddModuleAttributesToTable(
module
);
2045
bool writingNetModule =
module
.OutputKind == OutputKind.NetModule;
2054
this.
module
.GetSourceAssemblySecurityAttributes().Select(sa => sa.Attribute),
2060
this.
module
.GetSourceAssemblyAttributes(Context.IsRefAssembly),
2095
resolutionScope: GetResolutionScopeHandle(
module
.GetCorLibrary(Context)),
2162
if (
module
.OutputKind != OutputKind.NetModule)
2164
this.PopulateDeclSecurityTableRowsFor(EntityHandle.AssemblyDefinition,
module
.GetSourceAssemblySecurityAttributes());
2235
var exportedTypes =
module
.GetExportedTypes(Context);
2445
ISourceAssemblySymbolInternal assembly =
module
.SourceAssemblyOpt;
2544
foreach (var resource in this.
module
.GetResources(Context))
2763
CheckPathLength(this.
module
.ModuleName);
2766
Guid mvid = this.
module
.SerializationProperties.PersistentIdentifier;
2784
moduleName: metadata.GetOrAddString(this.
module
.ModuleName),
3342
token = _dynamicAnalysisDataWriterOpt.GetOrAddDocument(
module
.GetSourceDocumentFromIndex((uint)(pseudoToken & 0x00ffffff)));
3551
else if (
module
.IsPlatformType(type, PlatformType.SystemObject))
3570
Debug.Assert(this.
module
.IsPlatformType(targetType, PlatformType.SystemObject));
3600
if (this.
module
.IsPlatformType(targetType, PlatformType.SystemObject))
3608
this.
module
.IsPlatformType(c.Type, PlatformType.SystemObject))
3630
Debug.Assert(!
module
.IsPlatformType(c.Type, PlatformType.SystemType) || c.Value == null);
3828
if (
module
.IsPlatformType(returnType, PlatformType.SystemVoid))
3866
if (
module
.IsPlatformType(typeReference, PlatformType.SystemTypedReference))
3936
if (
module
.IsPlatformType(typeReference, PlatformType.SystemObject))
4065
if (
module
.IsPlatformType(elementType, PlatformType.SystemObject))
4088
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));