1 write to Entries
Microsoft.CodeAnalysis (1)
Syntax\LineDirectiveMap.cs (1)
44Entries = CreateEntryMap(syntaxTree, directives);
20 references to Entries
Microsoft.CodeAnalysis (9)
Syntax\LineDirectiveMap.cs (9)
119return this.Entries.Any(static e => e.State == PositionState.Hidden); 127return this.Entries[r]; 133int r = Entries.BinarySearch(new LineMappingEntry(lineNumber)); 170/// The caller is expected to not call this if <see cref="Entries"/> is empty. 174Debug.Assert(Entries.Length > 1); 176var current = Entries[0]; 185for (int i = 1; i < Entries.Length; i++) 187var next = Entries[i]; 232yield return CreateLineMapping(current, unmappedEndLine, lineLength, currentIndex: Entries.Length - 1);
Microsoft.CodeAnalysis.CSharp (11)
Syntax\CSharpLineDirectiveMap.cs (9)
186if (Entries.Length == 1) 188Debug.Assert(Entries[0].State == PositionState.Unmapped); 193var entry = Entries[index]; 235if (this.Entries.Length == 1) 237Debug.Assert(this.Entries[0].State == PositionState.Unmapped); 238Debug.Assert(this.Entries[0].MappedLine == this.Entries[0].UnmappedLine); 239Debug.Assert(this.Entries[0].MappedLine == 0); 240Debug.Assert(this.Entries[0].MappedPathOpt == null);
Syntax\CSharpSyntaxTree.cs (2)
677Debug.Assert(map.Entries.Length >= 1); 678return (map.Entries.Length == 1) ? Array.Empty<LineMapping>() : map.GetLineMappings(GetText(cancellationToken).Lines);