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