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