1 write to CompilationState
Microsoft.CodeAnalysis.VisualBasic (1)
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (1)
76
Me.
CompilationState
= compilationState
29 references to CompilationState
Microsoft.CodeAnalysis.VisualBasic (29)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Await.vb (1)
217
Dim useSiteInfo As New CompoundUseSiteInfo(Of AssemblySymbol)(Me.F.Diagnostics, Me.
CompilationState
.Compilation.Assembly)
Lowering\LambdaRewriter\LambdaRewriter.vb (24)
256
CompilationState
.AddSynthesizedMethod(frame.Constructor, MakeFrameCtor(frame, Diagnostics), stateMachineType:=Nothing, ImmutableArray(Of StateMachineStateDebugInfo).Empty)
284
Dim currentGeneration =
CompilationState
.ModuleBuilderOpt.CurrentGenerationOrdinal
304
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(_topLevelMethod.ContainingType, frame.GetCciAdapter())
316
Me._lazyStaticLambdaFrame =
CompilationState
.staticLambdaFrame
322
methodId = New DebugId(DebugId.UndefinedOrdinal,
CompilationState
.ModuleBuilderOpt.CurrentGenerationOrdinal)
340
CompilationState
.staticLambdaFrame = Me._lazyStaticLambdaFrame
346
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(_topLevelMethod.ContainingType, frame.GetCciAdapter())
355
CompilationState
.AddSynthesizedMethod(frame.Constructor, MakeFrameCtor(frame, diagnostics), stateMachineType:=Nothing, ImmutableArray(Of StateMachineStateDebugInfo).Empty)
359
Dim F = New SyntheticBoundNodeFactory(frame.SharedConstructor, frame.SharedConstructor, syntax,
CompilationState
, diagnostics)
366
CompilationState
.AddSynthesizedMethod(frame.SharedConstructor, body, stateMachineType:=Nothing, ImmutableArray(Of StateMachineStateDebugInfo).Empty)
571
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(frame, capturedFrame.GetCciAdapter())
923
Dim slotAllocatorOpt =
CompilationState
.ModuleBuilderOpt.TryCreateVariableSlotAllocator(method, method.TopLevelMethod, Diagnostics.DiagnosticBag)
924
Return Rewriter.RewriteIteratorAndAsync(loweredBody, method, methodOrdinal,
CompilationState
, Diagnostics, stateMachineStateDebugInfosBuilder, slotAllocatorOpt, stateMachineType)
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)
1075
Dim delegateType = type.ExpressionTargetDelegate(
CompilationState
.Compilation)
1076
rewrittenNode = ExpressionLambdaRewriter.RewriteLambda(node, Me._currentMethod, delegateType, Me.
CompilationState
, Me.TypeMap, Me.Diagnostics, Me._rewrittenNodes, Me.RecursionDepth)
1109
Dim generation =
CompilationState
.ModuleBuilderOpt.CurrentGenerationOrdinal
1120
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(translatedLambdaContainer, synthesizedMethod.GetCciAdapter())
1157
CompilationState
.AddSynthesizedMethod(synthesizedMethod, body, stateMachineType, stateMachineStateDebugInfosBuilder.ToImmutableAndFree())
1239
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(translatedLambdaContainer, cacheField.GetCciAdapter())
1241
Dim F = New SyntheticBoundNodeFactory(Me._topLevelMethod, Me._currentMethod, node.Syntax,
CompilationState
, Diagnostics)
1464
Dim useSiteInfo As New CompoundUseSiteInfo(Of AssemblySymbol)(Diagnostics,
CompilationState
.Compilation.Assembly)
Lowering\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (4)
67
Dim methodWrapper As MethodSymbol =
CompilationState
.GetMethodWrapper(method)
93
If Me.
CompilationState
.ModuleBuilderOpt IsNot Nothing Then
94
Me.
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(containingType, wrapperMethod.GetCciAdapter())
126
CompilationState
.AddMethodWrapper(method, wrapperMethod, boundMethodBody)