1 write to Module
Microsoft.CodeAnalysis (1)
Emit\Context.cs (1)
46Module = module;
61 references to Module
Microsoft.CodeAnalysis (61)
CodeGen\ArrayMembers.cs (3)
151=> context.Module.GetPlatformType(Cci.PlatformType.SystemVoid, context); 195=> context.Module.GetPlatformType(Cci.PlatformType.SystemVoid, context); 259=> context.Module.GetPlatformType(Cci.PlatformType.SystemInt32, context);
CodeGen\PermissionSetAttribute.cs (3)
66Cci.ITypeReference stringType = context.Module.GetPlatformType(Cci.PlatformType.SystemString, context); 76Debug.Assert(context.Module.IsPlatformType(fileArg.Type, Cci.PlatformType.SystemString)); 93var resolver = context.Module.CommonCompilation.Options.XmlReferenceResolver;
CodeGen\PrivateImplementationDetails.cs (1)
446Debug.Assert(context.Module == _moduleBuilder);
Emit\CommonPEModuleBuilder.cs (2)
307Debug.Assert(ReferenceEquals(context.Module, this)); 1120Debug.Assert((object)this == context.Module);
Emit\EditAndContinue\DeletedMethodBody.cs (2)
69var hotReloadExceptionCtorDef = context.Module.GetOrCreateHotReloadExceptionConstructorDefinition(); 71var builder = new ILBuilder((ITokenDeferral)context.Module, null, OptimizationLevel.Debug, false);
Emit\EditAndContinue\DeltaMetadataWriter.cs (4)
81debugMetadataOpt: (context.Module.DebugInformationFormat == DebugInformationFormat.PortablePdb) ? new MetadataBuilder() : null, 93Debug.Assert(context.Module.DebugInformationFormat != DebugInformationFormat.Embedded); 500foreach (var typeDef in context.Module.GetTopLevelTypeDefinitions(context)) 917translatedType = Context.Module.EncTranslateType(typeSymbol, Context.Diagnostics);
Emit\NoPia\CommonEmbeddedEvent.cs (1)
145return GetType((TPEModuleBuilder)context.Module, (TSyntaxNode)context.SyntaxNode, context.Diagnostics);
Emit\NoPia\CommonEmbeddedMember.cs (1)
96var attributes = GetAttributes((TPEModuleBuilder)context.Module, (TSyntaxNode)context.SyntaxNode, diagnostics);
Emit\NoPia\CommonEmbeddedParameter.cs (1)
198var attributes = GetAttributes((TPEModuleBuilder)context.Module, (TSyntaxNode)context.SyntaxNode, diagnostics);
Emit\NoPia\CommonEmbeddedType.cs (2)
240return GetBaseClass((TPEModuleBuilder)context.Module, (TSyntaxNode)context.SyntaxNode, context.Diagnostics); 537var attributes = GetAttributes((TPEModuleBuilder)context.Module, (TSyntaxNode)context.SyntaxNode, diagnostics);
Emit\NoPia\VtblGap.cs (1)
256return context.Module.GetPlatformType(Cci.PlatformType.SystemVoid, context);
NativePdbWriter\PdbWriter.cs (5)
63private CommonPEModuleBuilder Module => Context.Module; 79methodBody.MethodDefinition == (Context.Module.DebugEntryPoint ?? Context.Module.PEEntryPoint); 81var compilationOptions = Context.Module.CommonCompilation.Options; 421var allAliases = _metadataWriter.Context.Module.GetAssemblyReferenceAliases(_metadataWriter.Context);
PEWriter\CustomDebugInfoWriter.cs (4)
48if (context.Module.GenerateVisualBasicStylePdb) 90if (context.Module.GetAssemblyReferenceAliases(context).Any()) 264if (context.Module.GenerateVisualBasicStylePdb) 300if (context.Module.GenerateVisualBasicStylePdb)
PEWriter\FullMetadataWriter.cs (3)
51switch (context.Module.DebugInformationFormat) 67new DynamicAnalysisDataWriter(context.Module.DebugDocumentCount, context.Module.HintNumberOfMethodDefinitions) :
PEWriter\Members.cs (1)
1030acceptBasedOnVisibility = context.IncludePrivateMembers || context.Module.SourceAssemblyOpt?.InternalsAreVisible == true;
PEWriter\MetadataWriter.cs (3)
107this.module = context.Module; 2775var moduleBuilder = Context.Module; 3453Context.Module,
PEWriter\MetadataWriter.PortablePdb.cs (1)
158if (Context.Module.CommonCompilation.Options.EnableEditAndContinue && IsFullMetadata)
PEWriter\PeWriter.cs (12)
99var properties = context.Module.SerializationProperties; 101context.Module.TestData?.SetMetadataWriter(mdWriter); 130if (context.Module.SourceLinkStreamOpt != null) 132nativePdbWriterOpt.EmbedSourceLink(context.Module.SourceLinkStreamOpt); 152nativePdbWriterOpt.WriteCompilerVersion(context.Module.CommonCompilation.Language); 204Debug.Assert(!isDeterministic || context.Module.PdbChecksumAlgorithm.Name != null); 206var portablePdbIdProvider = (context.Module.PdbChecksumAlgorithm.Name != null) ? 207new Func<IEnumerable<Blob>, BlobContentId>(content => BlobContentId.FromHash(portablePdbContentHash = CryptographicHashProvider.ComputeHash(context.Module.PdbChecksumAlgorithm, content))) : 252debugDirectoryBuilder.AddPdbChecksumEntry(context.Module.PdbChecksumAlgorithm.Name!, portablePdbContentHash); 271var strongNameProvider = context.Module.CommonCompilation.Options.StrongNameProvider; 280CreateNativeResourceSectionSerializer(context.Module), 282CalculateStrongNameSignatureSize(context.Module, privateKeyOpt),
PEWriter\ReferenceIndexer.cs (1)
60if (definingAssembly != null && !ReferenceEquals(definingAssembly, Context.Module.GetContainingAssembly(Context)))
PEWriter\ReferenceIndexerBase.cs (5)
35if (assemblyReference != Context.Module.GetContainingAssembly(Context)) 65if (definingUnit != null && ReferenceEquals(definingUnit, Context.Module)) 157if (definingUnit != null && ReferenceEquals(definingUnit, Context.Module) && !methodReference.AcceptsExtraArguments) 188if (moduleReference != Context.Module) 222if (assemblyReference != null && assemblyReference != Context.Module.GetContainingAssembly(Context))
PEWriter\RootModuleStaticConstructor.cs (1)
124public ITypeReference GetType(EmitContext context) => context.Module.GetPlatformType(PlatformType.SystemVoid, context);
PEWriter\TypeNameSerializer.cs (2)
83var messageProvider = context.Module.CommonCompilation.MessageProvider; 196var containingAssembly = context.Module.GetContainingAssembly(context);
Symbols\Attributes\MarshalPseudoCustomAttributeData.cs (2)
123return ((CommonPEModuleBuilder)context.Module).Translate(typeSymbol, context.SyntaxNode, context.Diagnostics); 186return ((CommonPEModuleBuilder)context.Module).Translate((ITypeSymbolInternal)_marshalTypeNameOrSymbol, context.SyntaxNode, context.Diagnostics);