1 write to Entries
Microsoft.CodeAnalysis (1)
Syntax\LineDirectiveMap.cs (1)
44Entries = CreateEntryMap(syntaxTree, directives);
33 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)
180if (Entries.Length == 1) 182Debug.Assert(Entries[0].State == PositionState.Unmapped); 187var entry = Entries[index]; 229if (this.Entries.Length == 1) 231Debug.Assert(this.Entries[0].State == PositionState.Unmapped); 232Debug.Assert(this.Entries[0].MappedLine == this.Entries[0].UnmappedLine); 233Debug.Assert(this.Entries[0].MappedLine == 0); 234Debug.Assert(this.Entries[0].MappedPathOpt == null);
Syntax\CSharpSyntaxTree.cs (2)
676Debug.Assert(map.Entries.Length >= 1); 677return (map.Entries.Length == 1) ? Array.Empty<LineMapping>() : map.GetLineMappings(GetText(cancellationToken).Lines);
Microsoft.CodeAnalysis.VisualBasic (13)
Syntax\VisualBasicLineDirectiveMap.vb (11)
166Dim entry As LineMappingEntry = Entries(index) 169If Entries.Length < index + 3 Then 179Debug.Assert(Entries.Length > index + 1) 180Debug.Assert(Entries(index + 1).State = PositionState.RemappedAfterUnknown OrElse 181Entries(index + 1).State = PositionState.Unknown) 183If Entries(index + 1).State = PositionState.Unknown Then 190Debug.Assert(Entries(index + 2).State = PositionState.Unknown OrElse 191Entries(index + 2).State = PositionState.Hidden OrElse 192Entries(index + 2).State = PositionState.RemappedAfterHidden) 194Dim lookaheadEntryState = Entries(index + 2).State 217Dim entry = Entries(index)
Syntax\VisualBasicSyntaxTree.vb (2)
464Debug.Assert(map.Entries.Length >= 1) 465Return If(map.Entries.Length = 1, Array.Empty(Of LineMapping)(), map.GetLineMappings(GetText(cancellationToken).Lines))