20 references to StateMachineState
Microsoft.CodeAnalysis (17)
CodeGen\StateMachineStateDebugInfo.cs (2)
12
internal readonly struct StateMachineStateDebugInfo(int syntaxOffset, AwaitDebugId awaitId,
StateMachineState
stateNumber)
16
public readonly
StateMachineState
StateNumber = stateNumber;
CodeGen\VariableSlotAllocator.cs (2)
106
public abstract
StateMachineState
? GetFirstUnusedStateMachineState(bool increasing);
116
public abstract bool TryGetPreviousStateMachineState(SyntaxNode syntax, AwaitDebugId awaitId, out
StateMachineState
state);
Emit\EditAndContinue\DefinitionMap.cs (4)
232
IReadOnlyDictionary<(int syntaxOffset, AwaitDebugId debugId),
StateMachineState
>? stateMachineStateMap = null;
233
StateMachineState
? firstUnusedIncreasingStateMachineState = null;
234
StateMachineState
? firstUnusedDecreasingStateMachineState = null;
486
private static IReadOnlyDictionary<(int syntaxOffset, AwaitDebugId debugId),
StateMachineState
>? MakeStateMachineStateMap(ImmutableArray<StateMachineStateDebugInfo> debugInfos)
Emit\EditAndContinue\EncVariableSlotAllocator.cs (8)
37
private readonly IReadOnlyDictionary<(int syntaxOffset, AwaitDebugId awaitId),
StateMachineState
>? _stateMachineStateMap;
38
private readonly
StateMachineState
? _firstUnusedDecreasingStateMachineState;
39
private readonly
StateMachineState
? _firstUnusedIncreasingStateMachineState;
59
IReadOnlyDictionary<(int syntaxOffset, AwaitDebugId awaitId),
StateMachineState
>? stateMachineStateMap,
60
StateMachineState
? firstUnusedIncreasingStateMachineState,
61
StateMachineState
? firstUnusedDecreasingStateMachineState,
358
public override
StateMachineState
? GetFirstUnusedStateMachineState(bool increasing)
361
public override bool TryGetPreviousStateMachineState(SyntaxNode syntax, AwaitDebugId awaitId, out
StateMachineState
state)
Emit\EditAndContinueMethodDebugInformation.cs (1)
349
mapBuilder.Add(new StateMachineStateDebugInfo(syntaxOffset, new AwaitDebugId((byte)relativeOrdinal), (
StateMachineState
)stateNumber));
Microsoft.CodeAnalysis.CSharp (3)
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (1)
43
/// States for `yield return` are decreasing from <see cref="
StateMachineState
.InitialAsyncIteratorState"/>.
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (1)
466
if (slotAllocator?.TryGetPreviousStateMachineState(syntax, awaitId: default, out
var
finalizeState) != true)
Lowering\StateMachineRewriter\ResumableStateMachineStateAllocator.cs (1)
56
if (_slotAllocator?.TryGetPreviousStateMachineState(awaitOrYieldReturnSyntax, awaitId, out
var
state) == true)