1 write to _moduleBeingBuiltOpt
Microsoft.CodeAnalysis.CSharp (1)
Compiler\MethodCompiler.cs (1)
96
_moduleBeingBuiltOpt
= moduleBeingBuiltOpt;
25 references to _moduleBeingBuiltOpt
Microsoft.CodeAnalysis.CSharp (25)
Compiler\MethodCompiler.cs (25)
350
=>
_moduleBeingBuiltOpt
?.IsEncDelta != true;
356
Debug.Assert(
_moduleBeingBuiltOpt
!= null);
358
_moduleBeingBuiltOpt
.DebugDocumentsBuilder.GetOrAddDebugDocument(path, basePath, CreateDebugDocumentForFile));
450
var compilationState = new TypeCompilationState(containingType, _compilation,
_moduleBeingBuiltOpt
);
595
if (
_moduleBeingBuiltOpt
!= null && !processedStaticInitializers.BoundInitializers.IsDefaultOrEmpty)
606
if (
_moduleBeingBuiltOpt
.GetMethodBody(method) != null)
608
_moduleBeingBuiltOpt
.AddSynthesizedDefinition(sourceTypeSymbol, method.GetCciAdapter());
647
if (
_moduleBeingBuiltOpt
!= null)
667
Debug.Assert(
_moduleBeingBuiltOpt
!= null);
669
var compilationState = new TypeCompilationState(null, _compilation,
_moduleBeingBuiltOpt
);
670
var context = new EmitContext(
_moduleBeingBuiltOpt
, null, diagnostics.DiagnosticBag, metadataOnly: false, includePrivateMembers: true);
688
var compilationState = new TypeCompilationState(additionalType, _compilation,
_moduleBeingBuiltOpt
);
705
Debug.Assert(
_moduleBeingBuiltOpt
!= null);
706
Debug.Assert(compilationState.ModuleBuilderOpt ==
_moduleBeingBuiltOpt
);
731
_moduleBeingBuiltOpt
.TryCreateVariableSlotAllocator(lambda, lambda.TopLevelMethod, diagnosticsThisMethod.DiagnosticBag) :
732
_moduleBeingBuiltOpt
.TryCreateVariableSlotAllocator(method, method, diagnosticsThisMethod.DiagnosticBag);
761
_moduleBeingBuiltOpt
,
795
_moduleBeingBuiltOpt
.SetMethodBody(method, emittedBody);
840
_moduleBeingBuiltOpt
.AddSynthesizedDefinition(sourceTypeSymbol, synthesizedExplicitImpl.GetCciAdapter());
861
_moduleBeingBuiltOpt
.AddSynthesizedDefinition(sourceProperty.ContainingType, synthesizedAccessor.GetCciAdapter());
911
if (
_moduleBeingBuiltOpt
== null && (object)sourceMethod != null)
932
if (
_moduleBeingBuiltOpt
!= null)
1151
if (
_moduleBeingBuiltOpt
== null || hasErrors)
1323
_moduleBeingBuiltOpt
,
1340
_moduleBeingBuiltOpt
.SetMethodBody(methodSymbol.PartialDefinitionPart ?? methodSymbol, emittedBody);