8 references to GetColumnFromLineOffset
Microsoft.CodeAnalysis.Workspaces (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (3)
71
return lineText.
GetColumnFromLineOffset
(lineText.Length, tabSize);
197
return line.
GetColumnFromLineOffset
(firstNonWhitespaceChar.Value, tabSize);
202
return line.
GetColumnFromLineOffset
(line.Length, tabSize);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextLineExtensions.cs (1)
84
=> line.ToString().
GetColumnFromLineOffset
(lineOffset, tabSize);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.Node.cs (1)
31
return lineText.
GetColumnFromLineOffset
(lineText.Length, tabSize);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (2)
131
spaceOrIndentation = indentationString.
GetColumnFromLineOffset
(indentationString.Length, tabSize);
221
var currentIndentation = line.
GetColumnFromLineOffset
(nonWhitespaceCharIndex, tabSize);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
926
spaces: lineText.
GetColumnFromLineOffset
(lineText.Length, Options.TabSize),