2 instantiations of ActiveStatement
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\ActiveStatement.cs (2)
55
=>
new
(Id, Flags, span, InstructionId);
58
=>
new
(Id, flags, FileSpan, InstructionId);
34 references to ActiveStatement
Microsoft.CodeAnalysis.Features (34)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
645
var newActiveStatements = ImmutableArray.CreateBuilder<
ActiveStatement
>(oldActiveStatements.Length);
787
[In, Out] ImmutableArray<
ActiveStatement
>.Builder newActiveStatements,
944
[Out] ImmutableArray<
ActiveStatement
>.Builder newActiveStatements,
1334
private
ActiveStatement
GetActiveStatementWithSpan(UnmappedActiveStatement oldStatement, SyntaxTree newTree, TextSpan newSpan, ArrayBuilder<RudeEditDiagnostic> diagnostics, CancellationToken cancellationToken)
EditAndContinue\ActiveStatement.cs (4)
13
/// More than one thread can share the same instance of <see cref="
ActiveStatement
"/>.
51
public
ActiveStatement
WithSpan(LinePositionSpan span)
54
public
ActiveStatement
WithFileSpan(SourceFileSpan span)
57
public
ActiveStatement
WithFlags(ActiveStatementFlags flags)
EditAndContinue\ActiveStatementLineSpan.cs (1)
13
/// <param name="Id">The corresponding <see cref="
ActiveStatement
.Id"/>.</param>
EditAndContinue\ActiveStatementsMap.cs (13)
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);
193
using var _2 = PooledHashSet<
ActiveStatement
>.GetInstance(out var mappedStatements);
195
void AddStatement(LinePositionSpan unmappedLineSpan,
ActiveStatement
activeStatement)
229
var
activeStatement = activeStatementsInMappedFile[i];
243
foreach (
var
activeStatement in activeStatements)
EditAndContinue\ActiveStatementSpan.cs (1)
14
/// <param name="Id">The corresponding <see cref="
ActiveStatement
.Id"/>.</param>
EditAndContinue\DebuggingSession.cs (1)
656
using var _3 = PooledDictionary<
ActiveStatement
, ArrayBuilder<(DocumentId unmappedDocumentId, LinePositionSpan span)>>.GetInstance(
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; }
110
ImmutableArray<
ActiveStatement
> activeStatementsOpt,
EditAndContinue\EditSession.cs (1)
1200
var
newActiveStatement = newActiveStatements[i];
EditAndContinue\UnmappedActiveStatement.cs (4)
9
internal readonly struct UnmappedActiveStatement(TextSpan unmappedSpan,
ActiveStatement
statement, ActiveStatementExceptionRegions exceptionRegions)
18
/// Active statement - its <see cref="
ActiveStatement
.FileSpan"/> is mapped.
20
public
ActiveStatement
Statement { get; } = statement;
27
public void Deconstruct(out TextSpan unmappedSpan, out
ActiveStatement
statement, out ActiveStatementExceptionRegions exceptionRegions)