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