46 references to SourceFileSpan
Microsoft.CodeAnalysis.Features (46)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (9)
648var newExceptionRegions = ImmutableArray.CreateBuilder<ImmutableArray<SourceFileSpan>>(oldActiveStatements.Length); 788[In, Out] ImmutableArray<ImmutableArray<SourceFileSpan>>.Builder newExceptionRegions, 945[Out] ImmutableArray<ImmutableArray<SourceFileSpan>>.Builder newExceptionRegions, 1360ImmutableArray<ImmutableArray<SourceFileSpan>>.Builder newExceptionRegions, 1592using var _ = ArrayBuilder<SourceFileSpan>.GetInstance(out var result); 2113var oldMappedBreakpointSpan = (SourceFileSpan)oldTree.GetMappedLineSpan(oldBreakpointSpan, cancellationToken); 2114var newMappedBreakpointSpan = (SourceFileSpan)newTree.GetMappedLineSpan(newBreakpointSpan, cancellationToken);
EditAndContinue\ActiveStatement.cs (3)
33public readonly SourceFileSpan FileSpan; 40public ActiveStatement(ActiveStatementId id, ActiveStatementFlags flags, SourceFileSpan span, ManagedInstructionId instructionId) 54public ActiveStatement WithFileSpan(SourceFileSpan span)
EditAndContinue\ActiveStatementExceptionRegions.cs (2)
15public readonly ImmutableArray<SourceFileSpan> Spans; 22public ActiveStatementExceptionRegions(ImmutableArray<SourceFileSpan> spans, bool isActiveStatementCovered)
EditAndContinue\ActiveStatementsMap.cs (4)
28private static readonly Comparer<(ManagedActiveStatementDebugInfo, SourceFileSpan, ActiveStatementId)> s_infoSpanComparer = 29Comparer<(ManagedActiveStatementDebugInfo, SourceFileSpan span, ActiveStatementId)>.Create((x, y) => x.span.Start.CompareTo(y.span.Start)); 63using var _1 = PooledDictionary<string, ArrayBuilder<(ManagedActiveStatementDebugInfo info, SourceFileSpan span, ActiveStatementId id)>>.GetInstance(out var updatedSpansByDocumentPath); 82updatedSpansByDocumentPath.Add(documentName, documentInfos = ArrayBuilder<(ManagedActiveStatementDebugInfo, SourceFileSpan, ActiveStatementId)>.GetInstance());
EditAndContinue\DocumentActiveStatementChanges.cs (3)
15public readonly ImmutableArray<ImmutableArray<SourceFileSpan>> NewExceptionRegions; 20ImmutableArray<ImmutableArray<SourceFileSpan>> newExceptionRegions) 41out ImmutableArray<ImmutableArray<SourceFileSpan>> newExceptionRegions)
EditAndContinue\DocumentAnalysisResults.cs (2)
69public ImmutableArray<ImmutableArray<SourceFileSpan>> ExceptionRegions { get; } 114ImmutableArray<ImmutableArray<SourceFileSpan>> exceptionRegionsOpt,
EditAndContinue\EditSession.cs (4)
1194using var _1 = PooledDictionary<(ManagedModuleMethodId MethodId, SourceFileSpan BaseSpan), SourceFileSpan>.GetInstance(out var changedNonRemappableSpans); 1222void AddNonRemappableRegion(SourceFileSpan oldSpan, SourceFileSpan newSpan, bool isExceptionRegion)
EditAndContinue\NonRemappableRegion.cs (5)
12internal readonly struct NonRemappableRegion(SourceFileSpan oldSpan, SourceFileSpan newSpan, bool isExceptionRegion) : IEquatable<NonRemappableRegion> 22public readonly SourceFileSpan OldSpan = oldSpan; 27public readonly SourceFileSpan NewSpan = newSpan; 51public NonRemappableRegion WithNewSpan(SourceFileSpan newSpan)
EditAndContinue\SourceFileSpan.cs (12)
17/// Initializes the <see cref="SourceFileSpan"/> instance. 23internal readonly struct SourceFileSpan(string path, LinePositionSpan span) : IEquatable<SourceFileSpan> 40public SourceFileSpan WithSpan(LinePositionSpan span) 43public SourceFileSpan WithPath(string path) 64public bool Equals(SourceFileSpan other) 68=> other is SourceFileSpan span && Equals(span); 76public static implicit operator SourceFileSpan(FileLinePositionSpan span) 79public static bool operator ==(SourceFileSpan left, SourceFileSpan right) 82public static bool operator !=(SourceFileSpan left, SourceFileSpan right) 85public bool Contains(SourceFileSpan span)
EditAndContinue\Utilities\Extensions.cs (2)
21internal static SourceFileSpan AddLineDelta(this SourceFileSpan span, int lineDelta)