20 references to StateMachineState
Microsoft.CodeAnalysis (17)
CodeGen\StateMachineStateDebugInfo.cs (2)
12internal readonly struct StateMachineStateDebugInfo(int syntaxOffset, AwaitDebugId awaitId, StateMachineState stateNumber) 16public readonly StateMachineState StateNumber = stateNumber;
CodeGen\VariableSlotAllocator.cs (2)
106public abstract StateMachineState? GetFirstUnusedStateMachineState(bool increasing); 116public abstract bool TryGetPreviousStateMachineState(SyntaxNode syntax, AwaitDebugId awaitId, out StateMachineState state);
Emit\EditAndContinue\DefinitionMap.cs (4)
232IReadOnlyDictionary<(int syntaxOffset, AwaitDebugId debugId), StateMachineState>? stateMachineStateMap = null; 233StateMachineState? firstUnusedIncreasingStateMachineState = null; 234StateMachineState? firstUnusedDecreasingStateMachineState = null; 486private static IReadOnlyDictionary<(int syntaxOffset, AwaitDebugId debugId), StateMachineState>? MakeStateMachineStateMap(ImmutableArray<StateMachineStateDebugInfo> debugInfos)
Emit\EditAndContinue\EncVariableSlotAllocator.cs (8)
37private readonly IReadOnlyDictionary<(int syntaxOffset, AwaitDebugId awaitId), StateMachineState>? _stateMachineStateMap; 38private readonly StateMachineState? _firstUnusedDecreasingStateMachineState; 39private readonly StateMachineState? _firstUnusedIncreasingStateMachineState; 59IReadOnlyDictionary<(int syntaxOffset, AwaitDebugId awaitId), StateMachineState>? stateMachineStateMap, 60StateMachineState? firstUnusedIncreasingStateMachineState, 61StateMachineState? firstUnusedDecreasingStateMachineState, 358public override StateMachineState? GetFirstUnusedStateMachineState(bool increasing) 361public override bool TryGetPreviousStateMachineState(SyntaxNode syntax, AwaitDebugId awaitId, out StateMachineState state)
Emit\EditAndContinueMethodDebugInformation.cs (1)
349mapBuilder.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)
466if (slotAllocator?.TryGetPreviousStateMachineState(syntax, awaitId: default, out var finalizeState) != true)
Lowering\StateMachineRewriter\ResumableStateMachineStateAllocator.cs (1)
56if (_slotAllocator?.TryGetPreviousStateMachineState(awaitOrYieldReturnSyntax, awaitId, out var state) == true)