1 write to LineToBeIndented
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
57
LineToBeIndented
= lineToBeIndented;
16 references to LineToBeIndented
Microsoft.CodeAnalysis.CodeStyle (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (16)
80
_syntaxFacts.IsInInactiveRegion(this.Tree,
LineToBeIndented
.Start, this.CancellationToken))
109
if (
LineToBeIndented
.LineNumber == 0)
112
var previousLine = this.Text.Lines[
LineToBeIndented
.LineNumber - 1];
126
var token = Root.FindToken(
LineToBeIndented
.Start);
131
if (token.SpanStart >=
LineToBeIndented
.Start)
152
for (var currentLine = this.
LineToBeIndented
.LineNumber - 1; currentLine >= 0; currentLine--)
174
if (
LineToBeIndented
.LineNumber < updatedSourceText.Lines.Count)
176
var updatedLine = updatedSourceText.Lines[
LineToBeIndented
.LineNumber];
193
indentationResult = new IndentationResult(basePosition:
LineToBeIndented
.Start, offset: offset);
204
=> new(this.
LineToBeIndented
.Start, addedSpaces);
229
var token = Root.FindTokenFromEnd(
LineToBeIndented
.Start);
230
var indentation = Finder.GetIndentationOfCurrentPosition(this.Tree, token,
LineToBeIndented
.Start, CancellationToken.None);
232
return new IndentationResult(
LineToBeIndented
.Start, indentation);
240
if (
LineToBeIndented
.Start < position)
242
return TextSpan.FromBounds(
LineToBeIndented
.Start, position);
245
return TextSpan.FromBounds(position,
LineToBeIndented
.Start);