1 write to Entries
Microsoft.CodeAnalysis (1)
Syntax\LineDirectiveMap.cs (1)
44
Entries
= CreateEntryMap(syntaxTree, directives);
33 references to Entries
Microsoft.CodeAnalysis (9)
Syntax\LineDirectiveMap.cs (9)
119
return this.
Entries
.Any(static e => e.State == PositionState.Hidden);
127
return this.
Entries
[r];
133
int r =
Entries
.BinarySearch(new LineMappingEntry(lineNumber));
170
/// The caller is expected to not call this if <see cref="
Entries
"/> is empty.
174
Debug.Assert(
Entries
.Length > 1);
176
var current =
Entries
[0];
185
for (int i = 1; i <
Entries
.Length; i++)
187
var next =
Entries
[i];
232
yield return CreateLineMapping(current, unmappedEndLine, lineLength, currentIndex:
Entries
.Length - 1);
Microsoft.CodeAnalysis.CSharp (11)
Syntax\CSharpLineDirectiveMap.cs (9)
180
if (
Entries
.Length == 1)
182
Debug.Assert(
Entries
[0].State == PositionState.Unmapped);
187
var entry =
Entries
[index];
229
if (this.
Entries
.Length == 1)
231
Debug.Assert(this.
Entries
[0].State == PositionState.Unmapped);
232
Debug.Assert(this.
Entries
[0].MappedLine == this.
Entries
[0].UnmappedLine);
233
Debug.Assert(this.
Entries
[0].MappedLine == 0);
234
Debug.Assert(this.
Entries
[0].MappedPathOpt == null);
Syntax\CSharpSyntaxTree.cs (2)
676
Debug.Assert(map.
Entries
.Length >= 1);
677
return (map.
Entries
.Length == 1) ? Array.Empty<LineMapping>() : map.GetLineMappings(GetText(cancellationToken).Lines);
Microsoft.CodeAnalysis.VisualBasic (13)
Syntax\VisualBasicLineDirectiveMap.vb (11)
166
Dim entry As LineMappingEntry =
Entries
(index)
169
If
Entries
.Length < index + 3 Then
179
Debug.Assert(
Entries
.Length > index + 1)
180
Debug.Assert(
Entries
(index + 1).State = PositionState.RemappedAfterUnknown OrElse
181
Entries
(index + 1).State = PositionState.Unknown)
183
If
Entries
(index + 1).State = PositionState.Unknown Then
190
Debug.Assert(
Entries
(index + 2).State = PositionState.Unknown OrElse
191
Entries
(index + 2).State = PositionState.Hidden OrElse
192
Entries
(index + 2).State = PositionState.RemappedAfterHidden)
194
Dim lookaheadEntryState =
Entries
(index + 2).State
217
Dim entry =
Entries
(index)
Syntax\VisualBasicSyntaxTree.vb (2)
464
Debug.Assert(map.
Entries
.Length >= 1)
465
Return If(map.
Entries
.Length = 1, Array.Empty(Of LineMapping)(), map.GetLineMappings(GetText(cancellationToken).Lines))