15 instantiations of LineMapping
Microsoft.CodeAnalysis (3)
Syntax\LineDirectiveMap.cs (3)
245return new LineMapping(unmapped, characterOffset: null, mappedSpan: default); 253return new LineMapping( 263return new LineMapping(unmapped, characterOffset: null, mapped);
Microsoft.CodeAnalysis.UnitTests (12)
LineMappingTests.cs (12)
19new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), hasMappedPath: false)), 20new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), hasMappedPath: true)), 21new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 2)), hasMappedPath: false)), 22new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(2, 2)), hasMappedPath: false)), 23new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 1), new LinePosition(1, 1)), hasMappedPath: false)), 24new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(1, 0), new LinePosition(1, 1)), hasMappedPath: false)), 25new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), null, new FileLinePositionSpan("file.cs", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), hasMappedPath: false)), 26new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), 0, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), hasMappedPath: false)), 27new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 2)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), hasMappedPath: false)), 28new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(2, 2)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), hasMappedPath: false)), 29new LineMapping(new LinePositionSpan(new LinePosition(0, 1), new LinePosition(1, 1)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), hasMappedPath: false)), 30new LineMapping(new LinePositionSpan(new LinePosition(1, 0), new LinePosition(1, 1)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), hasMappedPath: false)),
20 references to LineMapping
Microsoft.CodeAnalysis (11)
Syntax\LineDirectiveMap.cs (2)
172public IEnumerable<LineMapping> GetLineMappings(TextLineCollection lines) 236private LineMapping CreateLineMapping(in LineMappingEntry entry, int unmappedEndLine, int lineLength, int currentIndex)
Syntax\LineMapping.cs (7)
15public readonly struct LineMapping : IEquatable<LineMapping> 48=> obj is LineMapping other && Equals(other); 50public bool Equals(LineMapping other) 56public static bool operator ==(LineMapping left, LineMapping right) 59public static bool operator !=(LineMapping left, LineMapping right)
Syntax\SyntaxTree.cs (2)
245/// Otherwise a non-empty sequence of <see cref="LineMapping"/>. 247public abstract IEnumerable<LineMapping> GetLineMappings(CancellationToken cancellationToken = default);
Microsoft.CodeAnalysis.CSharp (2)
Syntax\CSharpSyntaxTree.cs (2)
673public override IEnumerable<LineMapping> GetLineMappings(CancellationToken cancellationToken = default) 677return (map.Entries.Length == 1) ? Array.Empty<LineMapping>() : map.GetLineMappings(GetText(cancellationToken).Lines);
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\ActiveStatementsMap.cs (1)
210foreach (var lineMapping in oldTree.GetLineMappings(cancellationToken))
Microsoft.CodeAnalysis.UnitTests (4)
LineMappingTests.cs (4)
17var lineMappings = new LineMapping[] 38static EqualityUnit<LineMapping> CreateEqualityUnit(LineMapping left, int leftIndex, LineMapping right, int rightIndex)
Microsoft.CodeAnalysis.VisualBasic (2)
Syntax\VisualBasicSyntaxTree.vb (2)
462Public Overrides Function GetLineMappings(Optional cancellationToken As CancellationToken = Nothing) As IEnumerable(Of LineMapping) 465Return If(map.Entries.Length = 1, Array.Empty(Of LineMapping)(), map.GetLineMappings(GetText(cancellationToken).Lines))