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