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