542 references to Lines
CSharpSyntaxGenerator (2)
IdeCoreBenchmarks (1)
Microsoft.AspNetCore.App.Analyzers (4)
Microsoft.AspNetCore.Http.Extensions.Tests (3)
Microsoft.AspNetCore.Http.Microbenchmarks (3)
Microsoft.CodeAnalysis (23)
Microsoft.CodeAnalysis.CodeStyle (21)
Microsoft.CodeAnalysis.CodeStyle.Fixes (16)
Microsoft.CodeAnalysis.CSharp (7)
Microsoft.CodeAnalysis.CSharp.CodeStyle (11)
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
111var lines = text.Lines;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (24)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features (57)
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
111var lines = text.Lines;
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Microsoft.CodeAnalysis.EditorFeatures (7)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (9)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.Features (41)
Microsoft.CodeAnalysis.Features.Test.Utilities (5)
Microsoft.CodeAnalysis.Features.UnitTests (6)
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Microsoft.CodeAnalysis.Test.Utilities (6)
Microsoft.CodeAnalysis.UnitTests (84)
Text\LargeTextTests.cs (27)
157var textLine = text.Lines[lineNumber];
170CheckEqualLine(textLine, text.Lines[lineNumber]);
173CheckEqualLine(textLine, text.Lines.GetLineFromPosition(p));
174Assert.Equal(lineNumber, text.Lines.IndexOf(p));
175Assert.Equal(lineNumber, text.Lines.GetLinePosition(p).Line);
176Assert.Equal(p - start, text.Lines.GetLinePosition(p).Character);
181CheckNotEqualLine(textLine, text.Lines.GetLineFromPosition(start - 1));
182Assert.Equal(lineNumber - 1, text.Lines.IndexOf(start - 1));
183Assert.Equal(lineNumber - 1, text.Lines.GetLinePosition(start - 1).Line);
189CheckNotEqualLine(textLine, text.Lines.GetLineFromPosition(nextPosition));
190Assert.Equal(lineNumber + 1, text.Lines.IndexOf(nextPosition));
191Assert.Equal(lineNumber + 1, text.Lines.GetLinePosition(nextPosition).Line);
200Assert.Equal(2, data.Lines.Count);
213Assert.Equal(3, data.Lines.Count);
224Assert.Equal(2, data.Lines.Count);
233Assert.Equal(4, data.Lines.Count);
245Assert.Equal(2, data.Lines.Count);
255Assert.Equal(2, data.Lines.Count);
265Assert.Equal(3, data.Lines.Count);
278Assert.Equal(4, data.Lines.Count);
293Assert.Equal(4, data.Lines.Count);
304Assert.Equal(1, data.Lines.Count);
315Assert.Equal(2, data.Lines.Count);
316Assert.Equal("goo", data.Lines[0].ToString());
317Assert.Equal("bar baz", data.Lines[1].ToString());
325Assert.Equal("goo", data.Lines[0].ToString());
337Assert.Equal("goo", actualSourceText.Lines[0].ToString());
Text\StringTextTest.cs (25)
47Assert.Equal(1, data.Lines.Count);
48Assert.Equal(3, data.Lines[0].Span.Length);
62Assert.Equal(1, data.Lines.Count);
63Assert.Equal(0, data.Lines[0].Span.Length);
110var textLine = text.Lines[lineNumber];
123CheckEqualLine(textLine, text.Lines[lineNumber]);
126CheckEqualLine(textLine, text.Lines.GetLineFromPosition(p));
127Assert.Equal(lineNumber, text.Lines.IndexOf(p));
128Assert.Equal(lineNumber, text.Lines.GetLinePosition(p).Line);
129Assert.Equal(p - start, text.Lines.GetLinePosition(p).Character);
134CheckNotEqualLine(textLine, text.Lines.GetLineFromPosition(start - 1));
135Assert.Equal(lineNumber - 1, text.Lines.IndexOf(start - 1));
136Assert.Equal(lineNumber - 1, text.Lines.GetLinePosition(start - 1).Line);
142CheckNotEqualLine(textLine, text.Lines.GetLineFromPosition(nextPosition));
143Assert.Equal(lineNumber + 1, text.Lines.IndexOf(nextPosition));
144Assert.Equal(lineNumber + 1, text.Lines.GetLinePosition(nextPosition).Line);
153Assert.Equal(2, data.Lines.Count);
166Assert.Equal(3, data.Lines.Count);
177Assert.Equal(2, data.Lines.Count);
186Assert.Equal(4, data.Lines.Count);
197Assert.Equal(1, data.Lines.Count);
208Assert.Equal(2, data.Lines.Count);
209Assert.Equal("goo", data.Lines[0].ToString());
210Assert.Equal("bar baz", data.Lines[1].ToString());
218Assert.Equal("goo", data.Lines[0].ToString());
Text\StringTextTests_Default.cs (17)
42Assert.Equal(1, data.Lines.Count);
43Assert.Equal(0, data.Lines[0].Span.Length);
59Assert.Equal(2, data.Lines.Count);
60Assert.Equal(3, data.Lines[0].Span.Length);
61Assert.Equal(3 + newLine.Length, data.Lines[1].Span.Start);
72Assert.Equal(3, data.Lines.Count);
73Assert.Equal("goo", data.ToString(data.Lines[0].Span));
74Assert.Equal("bar", data.ToString(data.Lines[1].Span));
75Assert.Equal("baz", data.ToString(data.Lines[2].Span));
82Assert.Equal(2, data.Lines.Count);
83Assert.Equal("goo", data.ToString(data.Lines[0].Span));
84Assert.Equal("bar", data.ToString(data.Lines[1].Span));
91Assert.Equal(3, data.Lines.Count);
100Assert.Equal(2, data.Lines.Count);
101Assert.Equal("goo", data.Lines[0].ToString());
102Assert.Equal("bar baz", data.Lines[1].ToString());
109Assert.Equal("goo", data.Lines[0].ToString());
Microsoft.CodeAnalysis.VisualBasic (11)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (4)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (7)
Microsoft.CodeAnalysis.VisualBasic.Features (13)
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (3)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
Microsoft.CodeAnalysis.Workspaces (45)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
Microsoft.DotNet.CodeAnalysis (3)
Microsoft.VisualStudio.LanguageServices (26)
Microsoft.VisualStudio.LanguageServices.CSharp (11)
Microsoft.VisualStudio.LanguageServices.UnitTests (9)
Microsoft.VisualStudio.LanguageServices.VisualBasic (16)
Microsoft.VisualStudio.LanguageServices.Xaml (1)