1 write to Entries
Microsoft.CodeAnalysis (1)
Syntax\LineDirectiveMap.cs (1)
44
Entries
= CreateEntryMap(syntaxTree, directives);
20 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)
186
if (
Entries
.Length == 1)
188
Debug.Assert(
Entries
[0].State == PositionState.Unmapped);
193
var entry =
Entries
[index];
235
if (this.
Entries
.Length == 1)
237
Debug.Assert(this.
Entries
[0].State == PositionState.Unmapped);
238
Debug.Assert(this.
Entries
[0].MappedLine == this.
Entries
[0].UnmappedLine);
239
Debug.Assert(this.
Entries
[0].MappedLine == 0);
240
Debug.Assert(this.
Entries
[0].MappedPathOpt == null);
Syntax\CSharpSyntaxTree.cs (2)
677
Debug.Assert(map.
Entries
.Length >= 1);
678
return (map.
Entries
.Length == 1) ? Array.Empty<LineMapping>() : map.GetLineMappings(GetText(cancellationToken).Lines);