1 write to FileSpan
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\ActiveStatement.cs (1)
46FileSpan = 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)
59AssertSpansEqual(description.NewMappedSpans, actualNewActiveStatements.OrderBy(x => x.Ordinal).Select(s => s.FileSpan), newTree);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (14)
EditAndContinue\ActiveStatementsMapTests.cs (9)
274var mapping2 = new NonRemappableRegion(oldSpan: unmappedActiveStatements[0].Statement.FileSpan, newSpan: unmappedActiveStatements[0].Statement.FileSpan, isExceptionRegion: false); 286Assert.Equal(unmappedActiveStatements[0].Statement.Span, activeStatement.FileSpan.Span); 312var mapping1 = new NonRemappableRegion(oldSpan: unmappedActiveStatements[0].Statement.FileSpan, newSpan: unmappedActiveStatements[0].Statement.FileSpan.AddLineDelta(+1), isExceptionRegion: false); 313var mapping2 = new NonRemappableRegion(oldSpan: unmappedActiveStatements[1].Statement.FileSpan, newSpan: unmappedActiveStatements[1].Statement.FileSpan.AddLineDelta(+1), isExceptionRegion: false); 325Assert.Equal(unmappedActiveStatements[0].Statement.Span.AddLineDelta(+1), newActiveStatements[0].FileSpan.Span); 326Assert.Equal(unmappedActiveStatements[1].Statement.Span.AddLineDelta(+1), newActiveStatements[1].FileSpan.Span);
EditAndContinue\EditSessionActiveStatementsTests.cs (5)
258statements[3].WithFileSpan(statements[3].FileSpan.AddLineDelta(+1)), 259statements[2].WithFileSpan(statements[2].FileSpan.AddLineDelta(+2)), 375baseActiveStatements[1].WithFileSpan(baseActiveStatements[1].FileSpan.AddLineDelta(+1))), 565baseActiveStatements[1].WithFileSpan(baseActiveStatements[1].FileSpan.AddLineDelta(-1)), 567baseActiveStatements[3].WithFileSpan(baseActiveStatements[3].FileSpan.AddLineDelta(+2))),
Microsoft.CodeAnalysis.Features (11)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
1299if (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)
26Comparer<ActiveStatement>.Create((x, y) => x.FileSpan.Start.CompareTo(y.FileSpan.Start));
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (1)
143var mappedFilePath = oldActiveStatement.Statement.FileSpan.Path;
EditAndContinue\EditSession.cs (2)
1212AddNonRemappableRegion(oldActiveStatement.FileSpan, newActiveStatement.FileSpan, isExceptionRegion: false);
EditAndContinue\UnmappedActiveStatement.cs (1)
21/// Active statement - its <see cref="ActiveStatement.FileSpan"/> is mapped.