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)
645var newActiveStatements = ImmutableArray.CreateBuilder<ActiveStatement>(oldActiveStatements.Length); 787[In, Out] ImmutableArray<ActiveStatement>.Builder newActiveStatements, 944[Out] ImmutableArray<ActiveStatement>.Builder newActiveStatements, 1334private 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"/>. 51public ActiveStatement WithSpan(LinePositionSpan span) 54public ActiveStatement WithFileSpan(SourceFileSpan span) 57public ActiveStatement WithFlags(ActiveStatementFlags flags)
EditAndContinue\ActiveStatementLineSpan.cs (1)
13/// <param name="Id">The corresponding <see cref="ActiveStatement.Id"/>.</param>
EditAndContinue\ActiveStatementsMap.cs (13)
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); 193using var _2 = PooledHashSet<ActiveStatement>.GetInstance(out var mappedStatements); 195void AddStatement(LinePositionSpan unmappedLineSpan, ActiveStatement activeStatement) 229var activeStatement = activeStatementsInMappedFile[i]; 243foreach (var activeStatement in activeStatements)
EditAndContinue\ActiveStatementSpan.cs (1)
14/// <param name="Id">The corresponding <see cref="ActiveStatement.Id"/>.</param>
EditAndContinue\DebuggingSession.cs (1)
656using var _3 = PooledDictionary<ActiveStatement, ArrayBuilder<(DocumentId unmappedDocumentId, LinePositionSpan span)>>.GetInstance(
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; } 110ImmutableArray<ActiveStatement> activeStatementsOpt,
EditAndContinue\EditSession.cs (1)
1200var newActiveStatement = newActiveStatements[i];
EditAndContinue\UnmappedActiveStatement.cs (4)
9internal readonly struct UnmappedActiveStatement(TextSpan unmappedSpan, ActiveStatement statement, ActiveStatementExceptionRegions exceptionRegions) 18/// Active statement - its <see cref="ActiveStatement.FileSpan"/> is mapped. 20public ActiveStatement Statement { get; } = statement; 27public void Deconstruct(out TextSpan unmappedSpan, out ActiveStatement statement, out ActiveStatementExceptionRegions exceptionRegions)