1 write to LineToBeIndented
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
56
LineToBeIndented
= lineToBeIndented;
16 references to LineToBeIndented
Microsoft.CodeAnalysis.Workspaces (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (16)
79
_syntaxFacts.IsInInactiveRegion(this.Tree,
LineToBeIndented
.Start, this.CancellationToken))
108
if (
LineToBeIndented
.LineNumber == 0)
111
var previousLine = this.Text.Lines[
LineToBeIndented
.LineNumber - 1];
125
var token = Root.FindToken(
LineToBeIndented
.Start);
130
if (token.SpanStart >=
LineToBeIndented
.Start)
151
for (var currentLine = this.
LineToBeIndented
.LineNumber - 1; currentLine >= 0; currentLine--)
173
if (
LineToBeIndented
.LineNumber < updatedSourceText.Lines.Count)
175
var updatedLine = updatedSourceText.Lines[
LineToBeIndented
.LineNumber];
192
indentationResult = new IndentationResult(basePosition:
LineToBeIndented
.Start, offset: offset);
203
=> new(this.
LineToBeIndented
.Start, addedSpaces);
228
var token = Root.FindTokenFromEnd(
LineToBeIndented
.Start);
229
var indentation = Finder.GetIndentationOfCurrentPosition(this.Tree, token,
LineToBeIndented
.Start, CancellationToken.None);
231
return new IndentationResult(
LineToBeIndented
.Start, indentation);
239
if (
LineToBeIndented
.Start < position)
241
return TextSpan.FromBounds(
LineToBeIndented
.Start, position);
244
return TextSpan.FromBounds(position,
LineToBeIndented
.Start);