1 write to FileSpan
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\ActiveStatement.cs (1)
46
FileSpan
= span;
27 references to FileSpan
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
EditAndContinue\ActiveStatementTestHelpers.cs (1)
96
=> $"{statement.Ordinal}: {statement.
FileSpan
} flags=[{statement.Flags}]";
EditAndContinue\EditAndContinueTestHelpers.cs (1)
59
AssertSpansEqual(description.NewMappedSpans, actualNewActiveStatements.OrderBy(x => x.Ordinal).Select(s => s.
FileSpan
), newTree);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (14)
EditAndContinue\ActiveStatementsMapTests.cs (9)
274
var mapping2 = new NonRemappableRegion(oldSpan: unmappedActiveStatements[0].Statement.
FileSpan
, newSpan: unmappedActiveStatements[0].Statement.
FileSpan
, isExceptionRegion: false);
286
Assert.Equal(unmappedActiveStatements[0].Statement.Span, activeStatement.
FileSpan
.Span);
312
var mapping1 = new NonRemappableRegion(oldSpan: unmappedActiveStatements[0].Statement.
FileSpan
, newSpan: unmappedActiveStatements[0].Statement.
FileSpan
.AddLineDelta(+1), isExceptionRegion: false);
313
var mapping2 = new NonRemappableRegion(oldSpan: unmappedActiveStatements[1].Statement.
FileSpan
, newSpan: unmappedActiveStatements[1].Statement.
FileSpan
.AddLineDelta(+1), isExceptionRegion: false);
325
Assert.Equal(unmappedActiveStatements[0].Statement.Span.AddLineDelta(+1), newActiveStatements[0].
FileSpan
.Span);
326
Assert.Equal(unmappedActiveStatements[1].Statement.Span.AddLineDelta(+1), newActiveStatements[1].
FileSpan
.Span);
EditAndContinue\EditSessionActiveStatementsTests.cs (5)
258
statements[3].WithFileSpan(statements[3].
FileSpan
.AddLineDelta(+1)),
259
statements[2].WithFileSpan(statements[2].
FileSpan
.AddLineDelta(+2)),
375
baseActiveStatements[1].WithFileSpan(baseActiveStatements[1].
FileSpan
.AddLineDelta(+1))),
565
baseActiveStatements[1].WithFileSpan(baseActiveStatements[1].
FileSpan
.AddLineDelta(-1)),
567
baseActiveStatements[3].WithFileSpan(baseActiveStatements[3].
FileSpan
.AddLineDelta(+2))),
Microsoft.CodeAnalysis.Features (11)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
1299
if (mappedLineSpan.HasMappedPath && mappedLineSpan.Path != oldStatement.Statement.
FileSpan
.Path)
EditAndContinue\ActiveStatement.cs (4)
54
=> WithFileSpan(
FileSpan
.WithSpan(span));
60
=> new(Ordinal, flags,
FileSpan
, InstructionId);
63
=>
FileSpan
.Span;
66
=>
FileSpan
.Path;
EditAndContinue\ActiveStatementsMap.cs (2)
26
Comparer<ActiveStatement>.Create((x, y) => x.
FileSpan
.Start.CompareTo(y.
FileSpan
.Start));
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (1)
143
var mappedFilePath = oldActiveStatement.Statement.
FileSpan
.Path;
EditAndContinue\EditSession.cs (2)
1212
AddNonRemappableRegion(oldActiveStatement.
FileSpan
, newActiveStatement.
FileSpan
, isExceptionRegion: false);
EditAndContinue\UnmappedActiveStatement.cs (1)
21
/// Active statement - its <see cref="ActiveStatement.
FileSpan
"/> is mapped.