6 instantiations of ActiveStatement
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (1)
323new ActiveStatement(
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
EditAndContinue\ActiveStatementsDescription.cs (1)
119new ActiveStatement(
Microsoft.CodeAnalysis.Features (3)
EditAndContinue\ActiveStatement.cs (2)
57=> new(Ordinal, Flags, span, InstructionId); 60=> new(Ordinal, flags, FileSpan, InstructionId);
EditAndContinue\ActiveStatementsMap.cs (1)
95elementSelector: entry => entry.Value.SelectAsArray(item => new ActiveStatement(
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
EditAndContinue\VisualBasicEditAndContinueAnalyzerTests.vb (1)
493New ActiveStatement(
59 references to ActiveStatement
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (9)
EditAndContinue\ActiveStatementsDescription.cs (4)
48var oldDocumentMap = new Dictionary<string, List<ActiveStatement>>(); 97Dictionary<string, List<ActiveStatement>> documentMap) 108var documentActiveStatements = documentMap.GetOrAdd(mappedSpan.Path, path => new List<ActiveStatement>()); 138var map = new Dictionary<string, List<ActiveStatement>>();
EditAndContinue\ActiveStatementTestHelpers.cs (3)
95public static string InspectActiveStatement(ActiveStatement statement) 98public static string InspectActiveStatementAndInstruction(ActiveStatement statement) 101public static string InspectActiveStatementAndInstruction(ActiveStatement statement, SourceText text)
EditAndContinue\EditAndContinueTestHelpers.cs (2)
55ImmutableArray<ActiveStatement> actualNewActiveStatements, 82var activeStatement = actualNewActiveStatements[i];
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (7)
EditAndContinue\ActiveStatementsMapTests.cs (4)
98var documentPathMap = new Dictionary<string, ImmutableArray<ActiveStatement>>(); 153var documentPathMap = new Dictionary<string, ImmutableArray<ActiveStatement>>(); 204var documentPathMap = new Dictionary<string, ImmutableArray<ActiveStatement>>(); 283var activeStatement = map.DocumentPathMap[unmappedActiveStatements[0].Statement.FilePath][0];
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (2)
3823var s = statements[0]; 3920var activeStatement1 = baseActiveStatementMap.InstructionMap.Values.OrderBy(v => v.InstructionId.Method.Token).Single();
EditAndContinue\EditSessionActiveStatementsTests.cs (1)
676var s = statements[0];
Microsoft.CodeAnalysis.Features (43)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (5)
635var newActiveStatements = ImmutableArray.CreateBuilder<ActiveStatement>(oldActiveStatements.Length); 797[In, Out] ImmutableArray<ActiveStatement>.Builder newActiveStatements, 955[Out] ImmutableArray<ActiveStatement>.Builder newActiveStatements, 1296private ActiveStatement GetActiveStatementWithSpan(UnmappedActiveStatement oldStatement, SyntaxTree newTree, TextSpan newSpan, ArrayBuilder<RudeEditDiagnostic> diagnostics, CancellationToken cancellationToken) 2413ImmutableArray<ActiveStatement>.Builder newActiveStatements,
EditAndContinue\ActiveStatement.cs (4)
13/// More than one thread can share the same instance of <see cref="ActiveStatement"/>. 53public ActiveStatement WithSpan(LinePositionSpan span) 56public ActiveStatement WithFileSpan(SourceFileSpan span) 59public ActiveStatement WithFlags(ActiveStatementFlags flags)
EditAndContinue\ActiveStatementsMap.cs (14)
22new(ImmutableDictionary<string, ImmutableArray<ActiveStatement>>.Empty, 23ImmutableDictionary<ManagedInstructionId, ActiveStatement>.Empty); 25public static readonly Comparer<ActiveStatement> Comparer = 26Comparer<ActiveStatement>.Create((x, y) => x.FileSpan.Start.CompareTo(y.FileSpan.Start)); 35public readonly IReadOnlyDictionary<string, ImmutableArray<ActiveStatement>> DocumentPathMap; 40public readonly IReadOnlyDictionary<ManagedInstructionId, ActiveStatement> InstructionMap; 48IReadOnlyDictionary<string, ImmutableArray<ActiveStatement>> documentPathMap, 49IReadOnlyDictionary<ManagedInstructionId, ActiveStatement> instructionMap) 101using var _2 = PooledDictionary<ManagedInstructionId, ActiveStatement>.GetInstance(out var byInstruction); 105foreach (var statement in statements) 187using var _2 = PooledHashSet<ActiveStatement>.GetInstance(out var mappedStatements); 189void AddStatement(LinePositionSpan unmappedLineSpan, ActiveStatement activeStatement) 223var activeStatement = activeStatementsInMappedFile[i]; 237foreach (var activeStatement in activeStatements)
EditAndContinue\ActiveStatementSpan.cs (1)
23/// The corresponding <see cref="ActiveStatement.Ordinal"/>.
EditAndContinue\DebuggingSession.cs (6)
664using var _3 = PooledDictionary<ActiveStatement, ArrayBuilder<(DocumentId unmappedDocumentId, LinePositionSpan span)>>.GetInstance( 831foreach (var activeStatement in analysis.ActiveStatements) 865if (!baseActiveStatements.InstructionMap.TryGetValue(instructionId, out var baseActiveStatement)) 940if (!baseActiveStatements.InstructionMap.TryGetValue(instructionId, out var baseActiveStatement)) 973ActiveStatement baseActiveStatement, 1055ActiveStatementsMap baseActiveStatements, CommittedSolution oldSolution, Project oldProject, Project newProject, ActiveStatement activeStatement, CancellationToken cancellationToken)
EditAndContinue\DocumentActiveStatementChanges.cs (3)
14public readonly ImmutableArray<ActiveStatement> NewStatements; 19ImmutableArray<ActiveStatement> newStatements, 40out ImmutableArray<ActiveStatement> newStatements,
EditAndContinue\DocumentAnalysisResults.cs (2)
30public ImmutableArray<ActiveStatement> ActiveStatements { get; } 100ImmutableArray<ActiveStatement> activeStatementsOpt,
EditAndContinue\EditSession.cs (1)
1161var newActiveStatement = newActiveStatements[i];
EditAndContinue\Extensions.cs (3)
33public static ActiveStatement GetStatement(this ImmutableArray<ActiveStatement> statements, int ordinal) 35foreach (var item in statements)
EditAndContinue\UnmappedActiveStatement.cs (4)
21/// Active statement - its <see cref="ActiveStatement.FileSpan"/> is mapped. 23public ActiveStatement Statement { get; } 30public UnmappedActiveStatement(TextSpan unmappedSpan, ActiveStatement statement, ActiveStatementExceptionRegions exceptionRegions) 37public void Deconstruct(out TextSpan unmappedSpan, out ActiveStatement statement, out ActiveStatementExceptionRegions exceptionRegions)