1 write to CachedState
Microsoft.CodeAnalysis.VisualBasic (1)
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (1)
96
CachedState
= F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int32), SynthesizedLocalKind.StateMachineCachedState, F.Syntax)
15 references to CachedState
Microsoft.CodeAnalysis.VisualBasic (15)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Await.vb (2)
130
Me.F.AssignmentExpression(Me.F.Local(Me.
CachedState
, True), Me.F.Literal(state))))
256
Me.F.AssignmentExpression(Me.F.Local(Me.
CachedState
, True), Me.F.Literal(StateMachineState.NotStartedOrRunningState))))
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.vb (4)
160
Me.F.Local(Me.
CachedState
, True),
197
Me.F.AssignmentExpression(Me.F.Local(Me.
CachedState
, True), Me.F.Literal(StateMachineState.FinishedState)))
223
ImmutableArray.Create(Me._exprRetValue, Me.
CachedState
),
224
ImmutableArray.Create(Me.
CachedState
)),
Lowering\IteratorRewriter\IteratorRewriter.IteratorMethodToClassRewriter.vb (5)
81
ImmutableArray.Create(Me._methodValue, Me.
CachedState
),
83
F.Assignment(Me.F.Local(Me.
CachedState
, True), F.Field(F.Me, Me.StateField, False)),
87
F.Assignment(F.Field(F.Me, Me.StateField, True), Me.F.AssignmentExpression(Me.F.Local(Me.
CachedState
, True), Me.F.Literal(StateMachineState.NotStartedOrRunningState))),
202
F.Assignment(F.Field(F.Me, Me.StateField, True), F.AssignmentExpression(F.Local(Me.
CachedState
, True), F.Literal(stateNumber))),
205
F.Assignment(F.Field(F.Me, Me.StateField, True), F.AssignmentExpression(F.Local(Me.
CachedState
, True), F.Literal(StateMachineState.NotStartedOrRunningState)))
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (4)
207
Dim result = F.Select(F.Local(
CachedState
, isLValue:=False), sections)
226
Return _resumableStateAllocator.GenerateThrowMissingStateDispatch(F, F.Local(
CachedState
, isLValue:=False), EncMissingStateErrorCode)
364
F.AssignmentExpression(F.Local(Me.
CachedState
, True), F.Literal(StateMachineState.NotStartedOrRunningState))),
391
Me.F.Local(Me.
CachedState
, False),