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