3 instantiations of TextLine
Microsoft.CodeAnalysis (3)
388 references to TextLine
CSharpSyntaxGenerator (1)
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.CodeAnalysis (44)
Microsoft.CodeAnalysis.CodeStyle (33)
Microsoft.CodeAnalysis.CodeStyle.Fixes (34)
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (28)
77if (!ShouldFix(root, text, position, out var startLine, out var firstMiddleLine, out var secondMiddleLine, out var endLine))
85out TextLine startLine, out TextLine firstMiddleLine, out TextLine secondMiddleLine, out TextLine endLine)
93var conflictLine = lines.GetLineFromPosition(position);
146out TextLine startLine, out TextLine firstMiddleLine, out TextLine secondMiddleLine, out TextLine endLine)
207private static bool TryFindLineForwards(TextLine startLine, char ch, out TextLine foundLine)
213var currentLine = lines[i];
225private static bool TryFindLineBackwards(TextLine startLine, char ch, out TextLine foundLine)
231var currentLine = lines[i];
243private static bool IsConflictMarker(TextLine currentLine, char ch)
265CodeFixContext context, TextLine startLine, TextLine firstMiddleLine, TextLine secondMiddleLine, TextLine endLine)
416if (!ShouldFix(root, text, position, out var startLine, out var firstMiddleLine, out var secondMiddleLine, out var endLine))
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
50TextLine line,
Microsoft.CodeAnalysis.CSharp.EditorFeatures (9)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features (31)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
50TextLine line,
Microsoft.CodeAnalysis.EditorFeatures (19)
Microsoft.CodeAnalysis.EditorFeatures.Text (4)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (7)
Microsoft.CodeAnalysis.Features (64)
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (28)
77if (!ShouldFix(root, text, position, out var startLine, out var firstMiddleLine, out var secondMiddleLine, out var endLine))
85out TextLine startLine, out TextLine firstMiddleLine, out TextLine secondMiddleLine, out TextLine endLine)
93var conflictLine = lines.GetLineFromPosition(position);
146out TextLine startLine, out TextLine firstMiddleLine, out TextLine secondMiddleLine, out TextLine endLine)
207private static bool TryFindLineForwards(TextLine startLine, char ch, out TextLine foundLine)
213var currentLine = lines[i];
225private static bool TryFindLineBackwards(TextLine startLine, char ch, out TextLine foundLine)
231var currentLine = lines[i];
243private static bool IsConflictMarker(TextLine currentLine, char ch)
265CodeFixContext context, TextLine startLine, TextLine firstMiddleLine, TextLine secondMiddleLine, TextLine endLine)
416if (!ShouldFix(root, text, position, out var startLine, out var firstMiddleLine, out var secondMiddleLine, out var endLine))
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Microsoft.CodeAnalysis.UnitTests (33)
Text\StringText_LineTest.cs (19)
21var line = TextLine.FromSpan(text, span);
32var line = TextLine.FromSpan(text, span);
43var line = TextLine.FromSpan(text, span);
53var line = TextLine.FromSpan(text, new TextSpan(0, 3));
62Assert.Throws<ArgumentOutOfRangeException>(() => TextLine.FromSpan(text, new TextSpan(0, 0)));
69Assert.Throws<ArgumentOutOfRangeException>(() => TextLine.FromSpan(text, new TextSpan(0, 3)));
76Assert.Throws<ArgumentOutOfRangeException>(() => TextLine.FromSpan(text, new TextSpan(1, 5)));
84var line = TextLine.FromSpan(text, new TextSpan(start, 0));
98var line = TextLine.FromSpan(text, new TextSpan(0, 0));
107Assert.Throws<ArgumentOutOfRangeException>(() => TextLine.FromSpan(text, new TextSpan(1, 10)));
114Assert.Throws<ArgumentOutOfRangeException>(() => TextLine.FromSpan(text, new TextSpan(-1, 2)));
121Assert.Throws<ArgumentOutOfRangeException>(() => TextLine.FromSpan(text, new TextSpan(7, 0)));
128Assert.Throws<ArgumentNullException>(() => TextLine.FromSpan(null, new TextSpan(0, 2)));
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\VisualBasicIndentationService.vb (1)
42line As TextLine,
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\VisualBasicIndentationService.vb (1)
42line As TextLine,
Microsoft.CodeAnalysis.Workspaces (41)
Microsoft.DotNet.CodeAnalysis (3)
Microsoft.VisualStudio.LanguageServices (13)
Microsoft.VisualStudio.LanguageServices.CSharp (9)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)