18 references to AddLineDelta
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
2293
if (oldMappedBreakpointSpan.
AddLineDelta
(currentSegment.delta) == newMappedBreakpointSpan)
Microsoft.CodeAnalysis.Features.UnitTests (17)
EditAndContinue\ActiveStatementsMapTests.cs (3)
306
var mapping1 = new NonRemappableRegion(oldSpan: exceptionRegions.Spans[0], newSpan: exceptionRegions.Spans[0].
AddLineDelta
(+3), isExceptionRegion: true);
346
var mapping1 = new NonRemappableRegion(oldSpan: unmappedActiveStatements[0].Statement.FileSpan, newSpan: unmappedActiveStatements[0].Statement.FileSpan.
AddLineDelta
(+1), isExceptionRegion: false);
347
var mapping2 = new NonRemappableRegion(oldSpan: unmappedActiveStatements[1].Statement.FileSpan, newSpan: unmappedActiveStatements[1].Statement.FileSpan.
AddLineDelta
(+1), isExceptionRegion: false);
EditAndContinue\EditSessionActiveStatementsTests.cs (14)
262
statements[3].WithFileSpan(statements[3].FileSpan.
AddLineDelta
(+1)),
263
statements[2].WithFileSpan(statements[2].FileSpan.
AddLineDelta
(+2)),
268
oldActiveStatements2[0].ExceptionRegions.Spans.SelectAsArray(es => es.
AddLineDelta
(+1)),
382
newStatements: [baseActiveStatements[0], baseActiveStatements[1].WithFileSpan(baseActiveStatements[1].FileSpan.
AddLineDelta
(+1))],
515
new NonRemappableRegion(spanPreRemap2, spanPreRemap2.
AddLineDelta
(-1), isExceptionRegion: false),
517
new NonRemappableRegion(erPreRemap20, erPreRemap20.
AddLineDelta
(+2), isExceptionRegion: true),
518
new NonRemappableRegion(erPreRemap21, erPreRemap21.
AddLineDelta
(+2), isExceptionRegion: true)) },
521
new NonRemappableRegion(spanPreRemap3, spanPreRemap3.
AddLineDelta
(+1), isExceptionRegion: false),
523
new NonRemappableRegion(erPreRemap30, erPreRemap30.
AddLineDelta
(+1), isExceptionRegion: true),
524
new NonRemappableRegion(erPreRemap31, erPreRemap31.
AddLineDelta
(+1), isExceptionRegion: true)) }
573
baseActiveStatements[1].WithFileSpan(baseActiveStatements[1].FileSpan.
AddLineDelta
(-1)),
575
baseActiveStatements[3].WithFileSpan(baseActiveStatements[3].FileSpan.
AddLineDelta
(+2)),
580
oldActiveStatements[1].ExceptionRegions.Spans.SelectAsArray(es => es.
AddLineDelta
(-1)),
582
oldActiveStatements[3].ExceptionRegions.Spans.SelectAsArray(es => es.
AddLineDelta
(+2)),