1 write to ModuleBuilderOpt
Microsoft.CodeAnalysis.VisualBasic (1)
Compilation\TypeCompilationState.vb (1)
81
Me.
ModuleBuilderOpt
= moduleBuilderOpt
27 references to ModuleBuilderOpt
Microsoft.CodeAnalysis.VisualBasic (27)
CodeGen\ResumableStateMachineStateAllocator.vb (2)
78
Debug.Assert(f.CompilationState.
ModuleBuilderOpt
IsNot Nothing)
92
DirectCast(f.CompilationState.
ModuleBuilderOpt
.GetOrCreateHotReloadExceptionConstructorDefinition(), MethodSymbol),
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.vb (1)
113
If Me.SlotAllocatorOpt Is Nothing OrElse Not Me.SlotAllocatorOpt.TryGetPreviousAwaiterSlotIndex(F.CompilationState.
ModuleBuilderOpt
.Translate(awaiterType, F.Syntax, F.Diagnostics.DiagnosticBag), F.Diagnostics.DiagnosticBag, slotIndex) Then
Lowering\AsyncRewriter\AsyncRewriter.vb (2)
42
If compilationState.
ModuleBuilderOpt
.IgnoreAccessibility Then
95
compilationState.
ModuleBuilderOpt
.CompilationState.SetStateMachineType(method, stateMachineType)
Lowering\IteratorRewriter\IteratorRewriter.vb (1)
75
compilationState.
ModuleBuilderOpt
.CompilationState.SetStateMachineType(method, stateMachineType)
Lowering\LambdaRewriter\LambdaRewriter.vb (12)
284
Dim currentGeneration = CompilationState.
ModuleBuilderOpt
.CurrentGenerationOrdinal
304
CompilationState.
ModuleBuilderOpt
.AddSynthesizedDefinition(_topLevelMethod.ContainingType, frame.GetCciAdapter())
322
methodId = New DebugId(DebugId.UndefinedOrdinal, CompilationState.
ModuleBuilderOpt
.CurrentGenerationOrdinal)
346
CompilationState.
ModuleBuilderOpt
.AddSynthesizedDefinition(_topLevelMethod.ContainingType, frame.GetCciAdapter())
571
CompilationState.
ModuleBuilderOpt
.AddSynthesizedDefinition(frame, capturedFrame.GetCciAdapter())
923
Dim slotAllocatorOpt = CompilationState.
ModuleBuilderOpt
.TryCreateVariableSlotAllocator(method, method.TopLevelMethod, Diagnostics.DiagnosticBag)
979
Return If(SlotAllocatorOpt?.MethodId, New DebugId(_topLevelMethodOrdinal, CompilationState.
ModuleBuilderOpt
.CurrentGenerationOrdinal))
1006
closureId = New DebugId(closureDebugInfo.Count, CompilationState.
ModuleBuilderOpt
.CurrentGenerationOrdinal)
1050
lambdaId = New DebugId(_lambdaDebugInfoBuilder.Count, CompilationState.
ModuleBuilderOpt
.CurrentGenerationOrdinal)
1109
Dim generation = CompilationState.
ModuleBuilderOpt
.CurrentGenerationOrdinal
1120
CompilationState.
ModuleBuilderOpt
.AddSynthesizedDefinition(translatedLambdaContainer, synthesizedMethod.GetCciAdapter())
1239
CompilationState.
ModuleBuilderOpt
.AddSynthesizedDefinition(translatedLambdaContainer, cacheField.GetCciAdapter())
Lowering\LocalRewriter\LocalRewriter.vb (1)
133
Me._emitModule = compilationState.
ModuleBuilderOpt
Lowering\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (2)
93
If Me.CompilationState.
ModuleBuilderOpt
IsNot Nothing Then
94
Me.CompilationState.
ModuleBuilderOpt
.AddSynthesizedDefinition(containingType, wrapperMethod.GetCciAdapter())
Lowering\Rewriter.vb (3)
38
Debug.Assert(compilationState.
ModuleBuilderOpt
IsNot Nothing)
87
lazyVariableSlotAllocator = compilationState.
ModuleBuilderOpt
.TryCreateVariableSlotAllocator(method, method, diagnostics.DiagnosticBag)
135
Debug.Assert(compilationState.
ModuleBuilderOpt
IsNot Nothing)
Lowering\StateMachineRewriter\StateMachineRewriter.vb (1)
306
F.CompilationState.
ModuleBuilderOpt
.Translate(fieldType, declaratorSyntax, Diagnostics.DiagnosticBag),
Lowering\StateMachineRewriter\StateMachineTypeSymbol.vb (1)
40
If(compilationState.
ModuleBuilderOpt
?.CurrentGenerationOrdinal, 0))) ' Note: module builder is not available only when testing emit diagnostics
Lowering\SyntheticBoundNodeFactory.vb (1)
63
Return If(Me.CompilationState IsNot Nothing, Me.CompilationState.
ModuleBuilderOpt
, Nothing)