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