14 instantiations of SourceFileSpan
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (1)
317new SourceFileSpan(newDocument.FilePath, oldStatementSpan),
Microsoft.CodeAnalysis.Features (5)
EditAndContinue\ActiveStatementsMap.cs (1)
85documentInfos.Add((debugInfo, new SourceFileSpan(documentName, baseSpan), new ActiveStatementId(ordinal++)));
EditAndContinue\SourceFileSpan.cs (3)
41=> new(Path, span); 44=> new(path, Span); 77=> new(span.Path, span.Span);
EditAndContinue\Utilities\Extensions.cs (1)
23=> new(span.Path, span.Span.AddLineDelta(lineDelta));
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\ActiveStatementsDescription.cs (1)
68newMappedSpans[i] = new SourceFileSpan(oldStatement.Statement.FilePath, default);
Microsoft.CodeAnalysis.Features.UnitTests (7)
EditAndContinue\ActiveStatementsMapTests.cs (1)
268=> new("a.cs", new(new(startLine, startColumn), new(endLine, endColumn)));
EditAndContinue\EditSessionActiveStatementsTests.cs (6)
502var spanPreRemap2 = new SourceFileSpan(filePath, activeStatementsPreRemap[2].SourceSpan.ToLinePositionSpan()); 503var erPreRemap20 = new SourceFileSpan(filePath, sourceTextV1.Lines.GetLinePositionSpan(exceptionSpans[2][0])); 504var erPreRemap21 = new SourceFileSpan(filePath, sourceTextV1.Lines.GetLinePositionSpan(exceptionSpans[2][1])); 505var spanPreRemap3 = new SourceFileSpan(filePath, activeStatementsPreRemap[3].SourceSpan.ToLinePositionSpan()); 506var erPreRemap30 = new SourceFileSpan(filePath, sourceTextV1.Lines.GetLinePositionSpan(exceptionSpans[3][0])); 507var erPreRemap31 = new SourceFileSpan(filePath, sourceTextV1.Lines.GetLinePositionSpan(exceptionSpans[3][1]));
68 references to SourceFileSpan
Microsoft.CodeAnalysis.Features (49)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (10)
635var newExceptionRegions = ImmutableArray.CreateBuilder<ImmutableArray<SourceFileSpan>>(oldActiveStatements.Length); 950[In, Out] ImmutableArray<ImmutableArray<SourceFileSpan>>.Builder newExceptionRegions, 1116[Out] ImmutableArray<ImmutableArray<SourceFileSpan>>.Builder newExceptionRegions, 1537ImmutableArray<ImmutableArray<SourceFileSpan>>.Builder newExceptionRegions, 1769using var _ = ArrayBuilder<SourceFileSpan>.GetInstance(out var result); 2290var oldMappedBreakpointSpan = (SourceFileSpan)oldTree.GetMappedLineSpan(oldBreakpointSpan, cancellationToken); 2291var newMappedBreakpointSpan = (SourceFileSpan)newTree.GetMappedLineSpan(newBreakpointSpan, cancellationToken); 2686ImmutableArray<ImmutableArray<SourceFileSpan>>.Builder newExceptionRegions,
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)
14public readonly ImmutableArray<SourceFileSpan> Spans; 21public 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)
14public readonly ImmutableArray<ImmutableArray<SourceFileSpan>> NewExceptionRegions; 19ImmutableArray<ImmutableArray<SourceFileSpan>> newExceptionRegions) 40out ImmutableArray<ImmutableArray<SourceFileSpan>> newExceptionRegions)
EditAndContinue\DocumentAnalysisResults.cs (2)
69public ImmutableArray<ImmutableArray<SourceFileSpan>> ExceptionRegions { get; } 114ImmutableArray<ImmutableArray<SourceFileSpan>> exceptionRegionsOpt,
EditAndContinue\EditSession.cs (6)
1484using var _1 = PooledDictionary<(ManagedModuleMethodId MethodId, SourceFileSpan BaseSpan), SourceFileSpan>.GetInstance(out var changedNonRemappableSpans); 1512void AddNonRemappableRegion(SourceFileSpan oldSpan, SourceFileSpan newSpan, bool isExceptionRegion) 1595var baseSpan = region.NewSpan; 1598if (changedNonRemappableSpans.TryGetValue((methodInstance.Method, baseSpan), out var newSpan))
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)
22internal static SourceFileSpan AddLineDelta(this SourceFileSpan span, int lineDelta)
Microsoft.CodeAnalysis.Features.Test.Utilities (10)
EditAndContinue\ActiveStatementsDescription.cs (6)
23public readonly ImmutableArray<SourceFileSpan> NewMappedSpans; 24public readonly ImmutableArray<ImmutableArray<SourceFileSpan>> NewMappedRegions; 55using var _1 = ArrayBuilder<SourceFileSpan>.GetInstance(out var newMappedSpans); 56using var _2 = ArrayBuilder<ImmutableArray<SourceFileSpan>>.GetInstance(out var newMappedRegions); 78? newExceptionRegionMarkers[ordinal].SelectAsArray(span => (SourceFileSpan)newTree.GetMappedLineSpan(span)) 114? exceptionRegionMarkers[ordinal].SelectAsArray(unmappedRegionSpan => (SourceFileSpan)tree.GetMappedLineSpan(unmappedRegionSpan))
EditAndContinue\EditAndContinueTestVerifier.cs (4)
88ImmutableArray<ImmutableArray<SourceFileSpan>> actualNewExceptionRegions) 491private static void AssertSpansEqual(IEnumerable<SourceFileSpan> expected, IEnumerable<SourceFileSpan> actual, SyntaxTree newTree) 500private static string DisplaySpan(SyntaxTree tree, SourceFileSpan span)
Microsoft.CodeAnalysis.Features.UnitTests (9)
EditAndContinue\ActiveStatementsMapTests.cs (3)
264void CreateRegion(int ordinal, SourceFileSpan oldSpan, SourceFileSpan newSpan) 267SourceFileSpan Span(int startLine, int startColumn, int endLine, int endColumn)
EditAndContinue\EditSessionActiveStatementsTests.cs (6)
502var spanPreRemap2 = new SourceFileSpan(filePath, activeStatementsPreRemap[2].SourceSpan.ToLinePositionSpan()); 503var erPreRemap20 = new SourceFileSpan(filePath, sourceTextV1.Lines.GetLinePositionSpan(exceptionSpans[2][0])); 504var erPreRemap21 = new SourceFileSpan(filePath, sourceTextV1.Lines.GetLinePositionSpan(exceptionSpans[2][1])); 505var spanPreRemap3 = new SourceFileSpan(filePath, activeStatementsPreRemap[3].SourceSpan.ToLinePositionSpan()); 506var erPreRemap30 = new SourceFileSpan(filePath, sourceTextV1.Lines.GetLinePositionSpan(exceptionSpans[3][0])); 507var erPreRemap31 = new SourceFileSpan(filePath, sourceTextV1.Lines.GetLinePositionSpan(exceptionSpans[3][1]));