18 references to AddLineDelta
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (17)
EditAndContinue\ActiveStatementsMapTests.cs (3)
273
var mapping1 = new NonRemappableRegion(oldSpan: exceptionRegions.Spans[0], newSpan: exceptionRegions.Spans[0].
AddLineDelta
(+3), isExceptionRegion: true);
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);
EditAndContinue\EditSessionActiveStatementsTests.cs (14)
258
statements[3].WithFileSpan(statements[3].FileSpan.
AddLineDelta
(+1)),
259
statements[2].WithFileSpan(statements[2].FileSpan.
AddLineDelta
(+2)),
262
oldActiveStatements2[0].ExceptionRegions.Spans.SelectAsArray(es => es.
AddLineDelta
(+1)),
375
baseActiveStatements[1].WithFileSpan(baseActiveStatements[1].FileSpan.
AddLineDelta
(+1))),
508
new NonRemappableRegion(spanPreRemap2, spanPreRemap2.
AddLineDelta
(-1), isExceptionRegion: false),
510
new NonRemappableRegion(erPreRemap20, erPreRemap20.
AddLineDelta
(+2), isExceptionRegion: true),
511
new NonRemappableRegion(erPreRemap21, erPreRemap21.
AddLineDelta
(+2), isExceptionRegion: true)) },
514
new NonRemappableRegion(spanPreRemap3, spanPreRemap3.
AddLineDelta
(+1), isExceptionRegion: false),
516
new NonRemappableRegion(erPreRemap30, erPreRemap30.
AddLineDelta
(+1), isExceptionRegion: true),
517
new NonRemappableRegion(erPreRemap31, erPreRemap31.
AddLineDelta
(+1), isExceptionRegion: true)) }
565
baseActiveStatements[1].WithFileSpan(baseActiveStatements[1].FileSpan.
AddLineDelta
(-1)),
567
baseActiveStatements[3].WithFileSpan(baseActiveStatements[3].FileSpan.
AddLineDelta
(+2))),
570
oldActiveStatements[1].ExceptionRegions.Spans.SelectAsArray(es => es.
AddLineDelta
(-1)),
572
oldActiveStatements[3].ExceptionRegions.Spans.SelectAsArray(es => es.
AddLineDelta
(+2)))));
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
2056
if (oldMappedBreakpointSpan.
AddLineDelta
(currentSegment.delta) == newMappedBreakpointSpan)