5 instantiations of ActiveStatementsMap
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (1)
319var baseActiveStatements = new ActiveStatementsMap(
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
EditAndContinue\ActiveStatementsDescription.cs (1)
51OldStatementsMap = new ActiveStatementsMap(
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\ActiveStatementsMap.cs (2)
22new(ImmutableDictionary<string, ImmutableArray<ActiveStatement>>.Empty, 118return new ActiveStatementsMap(byDocumentPath, byInstruction.ToImmutableDictionary());
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
EditAndContinue\VisualBasicEditAndContinueAnalyzerTests.vb (1)
489Dim baseActiveStatements = New ActiveStatementsMap(
56 references to ActiveStatementsMap
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (5)
123ActiveStatementsMap activeStatementMap = null, 127var baseActiveStatements = AsyncLazy.Create(activeStatementMap ?? ActiveStatementsMap.Empty); 319var baseActiveStatements = new ActiveStatementsMap( 329ActiveStatementsMap.Empty.InstructionMap); 750var baseActiveStatements = AsyncLazy.Create(ActiveStatementsMap.Empty);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
EditAndContinue\ActiveStatementsDescription.cs (3)
26public readonly ActiveStatementsMap OldStatementsMap; 35OldStatementsMap = ActiveStatementsMap.Empty; 52documentPathMap: oldDocumentMap.ToImmutableDictionary(e => e.Key, e => e.Value.OrderBy(ActiveStatementsMap.Comparer).ToImmutableArray()),
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (19)
EditAndContinue\ActiveStatementsMapTests.cs (12)
43Assert.Equal(new Range(s, e), ActiveStatementsMap.GetSpansStartingInSpan(span.Start, span.End, array, startPositionComparer: (x, y) => x.Start.CompareTo(y))); 61Assert.Equal(new Range(5, 6), ActiveStatementsMap.GetSpansStartingInSpan(span.Start, span.End, array, startPositionComparer: (x, y) => x.Start.CompareTo(y))); 115var map = ActiveStatementsMap.Create(debugInfos, remapping: ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>>.Empty); 165var map = ActiveStatementsMap.Create(debugInfos, remapping: ImmutableDictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>>.Empty); 223var map = ActiveStatementsMap.Create(debugInfos, remapping.ToImmutable()); 281var map = ActiveStatementsMap.Create(debugInfos, remapping); 320var map = ActiveStatementsMap.Create(debugInfos, remapping);
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (3)
858var activeStatementMap = await debuggingSession.EditSession.BaseActiveStatements.GetValueAsync(CancellationToken.None); 3804var baseActiveStatementsMap = await debuggingSession.EditSession.BaseActiveStatements.GetValueAsync(CancellationToken.None).ConfigureAwait(false); 3907var baseActiveStatementMap = await debuggingSession.EditSession.BaseActiveStatements.GetValueAsync(CancellationToken.None).ConfigureAwait(false);
EditAndContinue\EditSessionActiveStatementsTests.cs (4)
186var baseActiveStatementsMap = await editSession.BaseActiveStatements.GetValueAsync(CancellationToken.None).ConfigureAwait(false); 344var baseActiveStatementMap = await editSession.BaseActiveStatements.GetValueAsync(CancellationToken.None).ConfigureAwait(false); 526var baseActiveStatementMap = await editSession.BaseActiveStatements.GetValueAsync(CancellationToken.None).ConfigureAwait(false); 661var baseActiveStatementMap = await editSession.BaseActiveStatements.GetValueAsync(CancellationToken.None).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (26)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (3)
504AsyncLazy<ActiveStatementsMap> lazyOldActiveStatementMap, 590var oldActiveStatementMap = await lazyOldActiveStatementMap.GetValueAsync(cancellationToken).ConfigureAwait(false); 1709var range = ActiveStatementsMap.GetSpansStartingInSpan(
EditAndContinue\ActiveStatementsMap.cs (2)
21public static readonly ActiveStatementsMap Empty = 59public static ActiveStatementsMap Create(
EditAndContinue\DebuggingSession.cs (6)
632var baseActiveStatements = await EditSession.BaseActiveStatements.GetValueAsync(cancellationToken).ConfigureAwait(false); 794var baseActiveStatements = await EditSession.BaseActiveStatements.GetValueAsync(cancellationToken).ConfigureAwait(false); 864var baseActiveStatements = await EditSession.BaseActiveStatements.GetValueAsync(cancellationToken).ConfigureAwait(false); 939var baseActiveStatements = await EditSession.BaseActiveStatements.GetValueAsync(cancellationToken).ConfigureAwait(false); 971ActiveStatementsMap activeStatementsMap, 1055ActiveStatementsMap baseActiveStatements, CommittedSolution oldSolution, Project oldProject, Project newProject, ActiveStatement activeStatement, CancellationToken cancellationToken)
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (3)
29private readonly AsyncLazy<ActiveStatementsMap> _baseActiveStatements; 32public EditAndContinueDocumentAnalysesCache(AsyncLazy<ActiveStatementsMap> baseActiveStatements, AsyncLazy<EditAndContinueCapabilities> capabilities) 137var baseActiveStatements = await _baseActiveStatements.GetValueAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\EditSession.cs (11)
77internal readonly AsyncLazy<ActiveStatementsMap> BaseActiveStatements; 102AsyncLazy<ActiveStatementsMap>? lazyActiveStatementMap, 113? new AsyncLazy<ActiveStatementsMap>(GetBaseActiveStatementsAsync, cacheResult: true) 114: new AsyncLazy<ActiveStatementsMap>(ActiveStatementsMap.Empty)); 251private async Task<ActiveStatementsMap> GetBaseActiveStatementsAsync(CancellationToken cancellationToken) 257return ActiveStatementsMap.Create(debugInfos, NonRemappableRegions); 261return ActiveStatementsMap.Empty; 605ActiveStatementsMap baseActiveStatements, 983var oldActiveStatementsMap = await BaseActiveStatements.GetValueAsync(cancellationToken).ConfigureAwait(false); 1140ActiveStatementsMap oldActiveStatementMap,
EditAndContinue\IEditAndContinueAnalyzer.cs (1)
18AsyncLazy<ActiveStatementsMap> lazyBaseActiveStatements,
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (3)
EditAndContinue\VisualBasicEditAndContinueAnalyzerTests.vb (3)
128Private Shared Async Function AnalyzeDocumentAsync(oldProject As Project, newDocument As Document, Optional activeStatementMap As ActiveStatementsMap = Nothing) As Task(Of DocumentAnalysisResults) 130Dim baseActiveStatements = AsyncLazy.Create(If(activeStatementMap, ActiveStatementsMap.Empty)) 499ActiveStatementsMap.Empty.InstructionMap)