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)
246
CompilationState
.AddSynthesizedMethod(frame.Constructor, MakeFrameCtor(frame, Diagnostics), stateMachineType:=Nothing, ImmutableArray(Of StateMachineStateDebugInfo).Empty)
273
Dim currentGeneration =
CompilationState
.ModuleBuilderOpt.CurrentGenerationOrdinal
292
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(_topLevelMethod.ContainingType, frame.GetCciAdapter())
304
Me._lazyStaticLambdaFrame =
CompilationState
.staticLambdaFrame
310
methodId = New DebugId(DebugId.UndefinedOrdinal,
CompilationState
.ModuleBuilderOpt.CurrentGenerationOrdinal)
320
CompilationState
.staticLambdaFrame = Me._lazyStaticLambdaFrame
326
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(_topLevelMethod.ContainingType, frame.GetCciAdapter())
335
CompilationState
.AddSynthesizedMethod(frame.Constructor, MakeFrameCtor(frame, diagnostics), stateMachineType:=Nothing, ImmutableArray(Of StateMachineStateDebugInfo).Empty)
339
Dim F = New SyntheticBoundNodeFactory(frame.SharedConstructor, frame.SharedConstructor, syntax,
CompilationState
, diagnostics)
346
CompilationState
.AddSynthesizedMethod(frame.SharedConstructor, body, stateMachineType:=Nothing, ImmutableArray(Of StateMachineStateDebugInfo).Empty)
551
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(frame, capturedFrame.GetCciAdapter())
903
Dim slotAllocatorOpt =
CompilationState
.ModuleBuilderOpt.TryCreateVariableSlotAllocator(method, method.TopLevelMethod, Diagnostics.DiagnosticBag)
904
Return Rewriter.RewriteIteratorAndAsync(loweredBody, method, methodOrdinal,
CompilationState
, Diagnostics, stateMachineStateDebugInfosBuilder, slotAllocatorOpt, stateMachineType)
959
Return If(SlotAllocatorOpt?.MethodId, New DebugId(_topLevelMethodOrdinal,
CompilationState
.ModuleBuilderOpt.CurrentGenerationOrdinal))
970
closureId = New DebugId(closureDebugInfo.Count,
CompilationState
.ModuleBuilderOpt.CurrentGenerationOrdinal)
1011
lambdaId = New DebugId(_lambdaDebugInfoBuilder.Count,
CompilationState
.ModuleBuilderOpt.CurrentGenerationOrdinal)
1031
Dim delegateType = type.ExpressionTargetDelegate(
CompilationState
.Compilation)
1032
rewrittenNode = ExpressionLambdaRewriter.RewriteLambda(node, Me._currentMethod, delegateType, Me.
CompilationState
, Me.TypeMap, Me.Diagnostics, Me._rewrittenNodes, Me.RecursionDepth)
1061
Dim generation =
CompilationState
.ModuleBuilderOpt.CurrentGenerationOrdinal
1072
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(translatedLambdaContainer, synthesizedMethod.GetCciAdapter())
1109
CompilationState
.AddSynthesizedMethod(synthesizedMethod, body, stateMachineType, stateMachineStateDebugInfosBuilder.ToImmutableAndFree())
1191
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(translatedLambdaContainer, cacheField.GetCciAdapter())
1193
Dim F = New SyntheticBoundNodeFactory(Me._topLevelMethod, Me._currentMethod, node.Syntax,
CompilationState
, Diagnostics)
1416
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)