14 instantiations of StateMachineStateDebugInfo
Microsoft.CodeAnalysis (1)
Emit\EditAndContinueMethodDebugInformation.cs (1)
349mapBuilder.Add(new StateMachineStateDebugInfo(syntaxOffset, new AwaitDebugId((byte)relativeOrdinal), (StateMachineState)stateNumber));
Microsoft.CodeAnalysis.CSharp (1)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
229_stateDebugInfoBuilder.Add(new StateMachineStateDebugInfo(syntaxOffset, awaitId, state));
Microsoft.CodeAnalysis.UnitTests (12)
Emit\CustomDebugInfoTests.cs (12)
304new StateMachineStateDebugInfo(syntaxOffset: 0x10, new AwaitDebugId(2), (StateMachineState)0), 305new StateMachineStateDebugInfo(syntaxOffset: 0x30, new AwaitDebugId(0), (StateMachineState)5), 306new StateMachineStateDebugInfo(syntaxOffset: 0x10, new AwaitDebugId(0), (StateMachineState)1), 307new StateMachineStateDebugInfo(syntaxOffset: 0x20, new AwaitDebugId(0), (StateMachineState)3), 308new StateMachineStateDebugInfo(syntaxOffset: 0x10, new AwaitDebugId(1), (StateMachineState)2), 309new StateMachineStateDebugInfo(syntaxOffset: 0x20, new AwaitDebugId(1), (StateMachineState)4) 324new StateMachineStateDebugInfo(syntaxOffset: 0x10, new AwaitDebugId(0), (StateMachineState)1), 325new StateMachineStateDebugInfo(syntaxOffset: 0x10, new AwaitDebugId(1), (StateMachineState)2), 326new StateMachineStateDebugInfo(syntaxOffset: 0x10, new AwaitDebugId(2), (StateMachineState)0), 327new StateMachineStateDebugInfo(syntaxOffset: 0x20, new AwaitDebugId(0), (StateMachineState)3), 328new StateMachineStateDebugInfo(syntaxOffset: 0x20, new AwaitDebugId(1), (StateMachineState)4), 329new StateMachineStateDebugInfo(syntaxOffset: 0x30, new AwaitDebugId(0), (StateMachineState)5),
34 references to StateMachineStateDebugInfo
Microsoft.CodeAnalysis (9)
CodeGen\StateMachineStateDebugInfo.cs (3)
25public readonly ImmutableArray<StateMachineStateDebugInfo> States; 45private StateMachineStatesDebugInfo(ImmutableArray<StateMachineStateDebugInfo> states, StateMachineState? firstUnusedIncreasingStateMachineState, StateMachineState? firstUnusedDecreasingStateMachineState) 52public static StateMachineStatesDebugInfo Create(VariableSlotAllocator? variableSlotAllocator, ImmutableArray<StateMachineStateDebugInfo> stateInfos)
Emit\EditAndContinue\DefinitionMap.cs (1)
486private static IReadOnlyDictionary<(int syntaxOffset, AwaitDebugId debugId), StateMachineState>? MakeStateMachineStateMap(ImmutableArray<StateMachineStateDebugInfo> debugInfos)
Emit\EditAndContinueMethodDebugInformation.cs (5)
25internal readonly ImmutableArray<StateMachineStateDebugInfo> StateMachineStates; 32ImmutableArray<StateMachineStateDebugInfo> stateMachineStates) 309private static unsafe ImmutableArray<StateMachineStateDebugInfo> UncompressStateMachineStates(ImmutableArray<byte> compressedStateMachineStates) 316var mapBuilder = ArrayBuilder<StateMachineStateDebugInfo>.GetInstance(); 375foreach (StateMachineStateDebugInfo state in StateMachineStates.OrderBy(s => s.SyntaxOffset).ThenBy(s => s.AwaitId.RelativeStateOrdinal))
Microsoft.CodeAnalysis.CSharp (19)
Compiler\MethodCompiler.cs (7)
273var stateMachineStateDebugInfoBuilder = ArrayBuilder<StateMachineStateDebugInfo>.GetInstance(); 318ImmutableArray<StateMachineStateDebugInfo>.Empty, 734var stateMachineStateDebugInfoBuilder = ArrayBuilder<StateMachineStateDebugInfo>.GetInstance(); 1200var stateMachineStateDebugInfoBuilder = ArrayBuilder<StateMachineStateDebugInfo>.GetInstance(); 1439StateMachineStatesDebugInfo.Create(variableSlotAllocator: null, ImmutableArray<StateMachineStateDebugInfo>.Empty), 1466ArrayBuilder<StateMachineStateDebugInfo> stateMachineStateDebugInfoBuilder, 1599ImmutableArray<StateMachineStateDebugInfo> stateMachineStateDebugInfos,
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (1)
60ArrayBuilder<StateMachineStateDebugInfo> stateMachineStateDebugInfoBuilder,
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
83ArrayBuilder<StateMachineStateDebugInfo> stateMachineStateDebugInfoBuilder,
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (1)
39ArrayBuilder<StateMachineStateDebugInfo> stateMachineStateDebugInfoBuilder,
Lowering\AsyncRewriter\AsyncRewriter.cs (2)
28ArrayBuilder<StateMachineStateDebugInfo> stateMachineStateDebugInfoBuilder, 45ArrayBuilder<StateMachineStateDebugInfo> stateMachineStateDebugInfoBuilder,
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (1)
66ArrayBuilder<StateMachineStateDebugInfo> stateMachineStateDebugInfoBuilder,
Lowering\IteratorRewriter\IteratorRewriter.cs (2)
34ArrayBuilder<StateMachineStateDebugInfo> stateMachineStateDebugInfoBuilder, 53ArrayBuilder<StateMachineStateDebugInfo> stateMachineStateDebugInfoBuilder,
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
94private readonly ArrayBuilder<StateMachineStateDebugInfo> _stateDebugInfoBuilder; 109ArrayBuilder<StateMachineStateDebugInfo> stateMachineStateDebugInfoBuilder,
Lowering\StateMachineRewriter\StateMachineRewriter.cs (2)
26protected readonly ArrayBuilder<StateMachineStateDebugInfo> stateMachineStateDebugInfoBuilder; 41ArrayBuilder<StateMachineStateDebugInfo> stateMachineStateDebugInfoBuilder,
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\CompilationTestDataExtensions.cs (1)
112stateMachineStates: ImmutableArray<StateMachineStateDebugInfo>.Empty);
Microsoft.CodeAnalysis.UnitTests (5)
Emit\CustomDebugInfoTests.cs (5)
202var states = ImmutableArray<StateMachineStateDebugInfo>.Empty; 231var states = ImmutableArray<StateMachineStateDebugInfo>.Empty; 253var states = ImmutableArray<StateMachineStateDebugInfo>.Empty; 277var states = ImmutableArray<StateMachineStateDebugInfo>.Empty; 360var states = ImmutableArray<StateMachineStateDebugInfo>.Empty;