1 write to Spans
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\ActiveStatementExceptionRegions.cs (1)
26
Spans
= spans;
23 references to Spans
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
EditAndContinue\EditAndContinueTestHelpers.cs (2)
72
AssertSpansEqual(oldStatement.ExceptionRegions.
Spans
, oldRegions.
Spans
, oldTree);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (16)
EditAndContinue\ActiveStatementsMapTests.cs (2)
273
var mapping1 = new NonRemappableRegion(oldSpan: exceptionRegions.
Spans
[0], newSpan: exceptionRegions.
Spans
[0].AddLineDelta(+3), isExceptionRegion: true);
EditAndContinue\EditSessionActiveStatementsTests.cs (14)
238
}, oldActiveStatements1.Select(s => "[" + string.Join(", ", s.ExceptionRegions.
Spans
) + "]"));
246
}, oldActiveStatements2.Select(s => "[" + string.Join(", ", s.ExceptionRegions.
Spans
) + "]"));
262
oldActiveStatements2[0].ExceptionRegions.
Spans
.SelectAsArray(es => es.AddLineDelta(+1)),
263
oldActiveStatements2[1].ExceptionRegions.
Spans
,
264
oldActiveStatements2[2].ExceptionRegions.
Spans
)));
366
}, oldActiveStatements.Select(s => "[" + string.Join(", ", s.ExceptionRegions.
Spans
.Select(span => $"{span} '{GetFirstLineText(span.Span, baseText)}'")) + "]"));
377
oldActiveStatements[0].ExceptionRegions.
Spans
,
378
oldActiveStatements[1].ExceptionRegions.
Spans
))
553
}, oldActiveStatements.Select(s => "[" + string.Join(", ", s.ExceptionRegions.
Spans
.Select(span => $"{span} '{GetFirstLineText(span.Span, sourceTextV2)}'")) + "]"));
569
oldActiveStatements[0].ExceptionRegions.
Spans
,
570
oldActiveStatements[1].ExceptionRegions.
Spans
.SelectAsArray(es => es.AddLineDelta(-1)),
571
oldActiveStatements[2].ExceptionRegions.
Spans
,
572
oldActiveStatements[3].ExceptionRegions.
Spans
.SelectAsArray(es => es.AddLineDelta(+2)))));
696
}, oldActiveStatements.Select(s => "[" + string.Join(",", s.ExceptionRegions.
Spans
) + "]"));
Microsoft.CodeAnalysis.Features (5)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
870
newExceptionRegions[i] = GetExceptionRegions(ancestors, newStatement.SyntaxTree, cancellationToken).
Spans
;
1347
newExceptionRegions[ordinal] = GetExceptionRegions(newAncestors, newStatementSyntax.SyntaxTree, cancellationToken).
Spans
;
EditAndContinue\DocumentActiveStatementChanges.cs (1)
29
Debug.Assert(oldSpans[i].ExceptionRegions.
Spans
.Length == newExceptionRegions[i].Length);
EditAndContinue\EditSession.cs (2)
1217
for (var j = 0; j < oldActiveStatementExceptionRegions.
Spans
.Length; j++)
1219
AddNonRemappableRegion(oldActiveStatementExceptionRegions.
Spans
[j], newActiveStatementExceptionRegions[j], isExceptionRegion: true);