1 instantiation of LineMappingEntry
Microsoft.CodeAnalysis (1)
Syntax\LineDirectiveMap.cs (1)
133int r = Entries.BinarySearch(new LineMappingEntry(lineNumber));
19 references to LineMappingEntry
Microsoft.CodeAnalysis (19)
Syntax\LineDirectiveMap.cs (17)
25internal readonly ImmutableArray<LineMappingEntry> Entries; 31protected abstract LineMappingEntry GetEntry(TDirective directive, SourceText sourceText, LineMappingEntry previous); 34protected abstract LineMappingEntry InitializeFirstEntry(); 53var entry = FindEntry(unmappedStartPos.Line); 58protected FileLinePositionSpan TranslateSpan(in LineMappingEntry entry, string treeFilePath, LinePosition unmappedStartPos, LinePosition unmappedEndPos) 67private static LinePositionSpan TranslateLineDirectiveSpan(in LineMappingEntry entry, LinePosition unmappedStartPos, LinePosition unmappedEndPos) 71static LinePosition translatePosition(in LineMappingEntry entry, LinePosition unmapped) 78private static LinePositionSpan TranslateEnhancedLineDirectiveSpan(in LineMappingEntry entry, LinePosition unmappedStartPos, LinePosition unmappedEndPos) 93static LinePosition translatePosition(in LineMappingEntry entry, LinePosition unmapped) 123protected LineMappingEntry FindEntry(int lineNumber) 139private ImmutableArray<LineMappingEntry> CreateEntryMap(SyntaxTree tree, IList<TDirective> directives) 141var entries = ArrayBuilder<LineMappingEntry>.GetInstance(directives.Count + 1); 143var current = InitializeFirstEntry(); 176var current = Entries[0]; 187var next = Entries[i]; 236private LineMapping CreateLineMapping(in LineMappingEntry entry, int unmappedEndLine, int lineLength, int currentIndex)
Syntax\LineDirectiveMap.LineMappingEntry.cs (2)
58internal readonly struct LineMappingEntry : IComparable<LineMappingEntry> 118public int CompareTo(LineMappingEntry other)