16 instantiations of AwaitDebugId
Microsoft.CodeAnalysis (1)
Emit\EditAndContinueMethodDebugInformation.cs (1)
349
mapBuilder.Add(new StateMachineStateDebugInfo(syntaxOffset, new
AwaitDebugId
((byte)relativeOrdinal), (StateMachineState)stateNumber));
Microsoft.CodeAnalysis.CSharp (3)
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
506
AddResumableState(awaitSyntax, new
AwaitDebugId
((byte)(debugInfo.AwaitId.RelativeStateOrdinal + 1 + i)), out _, out var dummyResumeLabel);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (2)
19
private static readonly AwaitDebugId s_moveNextAsyncAwaitId = new
AwaitDebugId
(RelativeStateOrdinal: 0);
20
private static readonly AwaitDebugId s_disposeAsyncAwaitId = new
AwaitDebugId
(RelativeStateOrdinal: 1);
Microsoft.CodeAnalysis.UnitTests (12)
Emit\CustomDebugInfoTests.cs (12)
304
new StateMachineStateDebugInfo(syntaxOffset: 0x10, new
AwaitDebugId
(2), (StateMachineState)0),
305
new StateMachineStateDebugInfo(syntaxOffset: 0x30, new
AwaitDebugId
(0), (StateMachineState)5),
306
new StateMachineStateDebugInfo(syntaxOffset: 0x10, new
AwaitDebugId
(0), (StateMachineState)1),
307
new StateMachineStateDebugInfo(syntaxOffset: 0x20, new
AwaitDebugId
(0), (StateMachineState)3),
308
new StateMachineStateDebugInfo(syntaxOffset: 0x10, new
AwaitDebugId
(1), (StateMachineState)2),
309
new StateMachineStateDebugInfo(syntaxOffset: 0x20, new
AwaitDebugId
(1), (StateMachineState)4)
324
new StateMachineStateDebugInfo(syntaxOffset: 0x10, new
AwaitDebugId
(0), (StateMachineState)1),
325
new StateMachineStateDebugInfo(syntaxOffset: 0x10, new
AwaitDebugId
(1), (StateMachineState)2),
326
new StateMachineStateDebugInfo(syntaxOffset: 0x10, new
AwaitDebugId
(2), (StateMachineState)0),
327
new StateMachineStateDebugInfo(syntaxOffset: 0x20, new
AwaitDebugId
(0), (StateMachineState)3),
328
new StateMachineStateDebugInfo(syntaxOffset: 0x20, new
AwaitDebugId
(1), (StateMachineState)4),
329
new StateMachineStateDebugInfo(syntaxOffset: 0x30, new
AwaitDebugId
(0), (StateMachineState)5),
15 references to AwaitDebugId
Microsoft.CodeAnalysis (8)
CodeGen\StateMachineStateDebugInfo.cs (2)
12
internal readonly struct StateMachineStateDebugInfo(int syntaxOffset,
AwaitDebugId
awaitId, StateMachineState stateNumber)
15
public readonly
AwaitDebugId
AwaitId = awaitId;
CodeGen\VariableSlotAllocator.cs (1)
116
public abstract bool TryGetPreviousStateMachineState(SyntaxNode syntax,
AwaitDebugId
awaitId, out StateMachineState state);
Emit\EditAndContinue\DefinitionMap.cs (2)
232
IReadOnlyDictionary<(int syntaxOffset,
AwaitDebugId
debugId), StateMachineState>? stateMachineStateMap = null;
486
private static IReadOnlyDictionary<(int syntaxOffset,
AwaitDebugId
debugId), StateMachineState>? MakeStateMachineStateMap(ImmutableArray<StateMachineStateDebugInfo> debugInfos)
Emit\EditAndContinue\EncVariableSlotAllocator.cs (3)
37
private readonly IReadOnlyDictionary<(int syntaxOffset,
AwaitDebugId
awaitId), StateMachineState>? _stateMachineStateMap;
59
IReadOnlyDictionary<(int syntaxOffset,
AwaitDebugId
awaitId), StateMachineState>? stateMachineStateMap,
361
public override bool TryGetPreviousStateMachineState(SyntaxNode syntax,
AwaitDebugId
awaitId, out StateMachineState state)
Microsoft.CodeAnalysis.CSharp (7)
BoundTree\BoundAwaitExpressionDebugInfo.cs (1)
36
internal readonly record struct BoundAwaitExpressionDebugInfo(
AwaitDebugId
AwaitId, byte ReservedStateMachineCount);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (2)
19
private static readonly
AwaitDebugId
s_moveNextAsyncAwaitId = new AwaitDebugId(RelativeStateOrdinal: 0);
20
private static readonly
AwaitDebugId
s_disposeAsyncAwaitId = new AwaitDebugId(RelativeStateOrdinal: 1);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (3)
214
protected void AddResumableState(SyntaxNode awaitOrYieldReturnSyntax,
AwaitDebugId
awaitId, out StateMachineState state, out GeneratedLabelSymbol resumeLabel)
217
protected void AddResumableState(ResumableStateMachineStateAllocator allocator, SyntaxNode awaitOrYieldReturnSyntax,
AwaitDebugId
awaitId, out StateMachineState stateNumber, out GeneratedLabelSymbol resumeLabel)
224
protected void AddStateDebugInfo(SyntaxNode node,
AwaitDebugId
awaitId, StateMachineState state)
Lowering\StateMachineRewriter\ResumableStateMachineStateAllocator.cs (1)
50
public StateMachineState AllocateState(SyntaxNode awaitOrYieldReturnSyntax,
AwaitDebugId
awaitId)