6 references to GetTextSpan
Microsoft.CodeAnalysis.Razor.Workspaces (4)
Extensions\SourceTextExtensions.cs (1)
262
=> text.
GetTextSpan
(span.Start, span.End);
Formatting\Passes\RazorFormattingPass.cs (3)
418
changes.Add(new TextChange(source.Text.
GetTextSpan
(openBraceRange.End, end), newText));
448
changes.Add(new TextChange(source.Text.
GetTextSpan
(codeRange.End, start), context.NewLineString + additionalIndentation));
458
changes.Add(new TextChange(source.Text.
GetTextSpan
(closeBraceRange.End, closeBraceRange.End), context.NewLineString));
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (2)
Cohost\CohostRoslynRenameTest.cs (1)
256
var span = sourceText.
GetTextSpan
(csharpPosition, csharpPosition);
Cohost\RazorRefactorNotifyServiceTest.cs (1)
145
var span = sourceText.
GetTextSpan
(csharpPosition, csharpPosition);