78 references to Span
Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests (9)
Formatting\FormattingUtilitiesTest.cs (8)
121input1.Span.Start, input1.Span.End, 122input2.Span.Start, input2.Span.End)); 143input1.Span.Start, input1.Span.End, 144input2.Span.Start, input2.Span.End));
Hover\HoverFactoryTest.cs (1)
97var expectedRange = codeDocument.Source.Text.GetRange(code.Span);
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (36)
Cohost\CohostRangeFormattingEndpointTest.cs (1)
200Range = inputText.GetRange(input.Span)
Cohost\CohostWrapWithTagEndpointTest.cs (1)
210sourceText.GetRange(input.Span),
Cohost\RemoteDebugInfoServiceTest.cs (1)
506var expected = inputText.GetLinePositionSpan(input.Span);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\CohostCodeActionsEndpointTestBase.cs (1)
174? inputText.GetRange(input.Span)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToDefinitionEndpointTest.cs (18)
159var range = text.GetRange(surveyPrompt.Span); 194var range = text.GetRange(surveyPrompt.Span); 227var range = text.GetRange(surveyPrompt.Span); 260var range = text.GetRange(surveyPrompt.Span); 298var range = text.GetRange(input.Span); 340var range = text.GetRange(surveyPrompt.Span); 382var range = text.GetRange(surveyPrompt.Span); 429var range = text.GetRange(surveyPrompt.Span); 455Range = inputText.GetRange(input.Span), 492Assert.Equal(expected.Span, SourceText.From(expected.Text).GetTextSpan(location.Range)); 528Assert.Equal(expected.Span, SourceText.From(expected.Text).GetTextSpan(location.Range)); 572Assert.Equal(expected.Span, SourceText.From(expected.Text).GetTextSpan(location.Range)); 610Assert.Equal(expected.Span, SourceText.From(expected.Text).GetTextSpan(location.Range)); 655Assert.Equal(expected.Span, SourceText.From(expected.Text).GetTextSpan(location.Range)); 719Assert.Equal(expected.Span, SourceText.From(expected.Text).GetTextSpan(location.Range)); 783Assert.Equal(expected.Span, SourceText.From(expected.Text).GetTextSpan(location.Range)); 1032var range = text.GetRange(surveyPrompt.Span); 1052var range = text.GetRange(input.Span);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToImplementationEndpointTest.cs (2)
109Range = inputText.GetRange(input.Span), 145var range = text.GetRange(surveyPrompt.Span);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostHoverEndpointTest.cs (8)
37await VerifyRangeAsync(hover, code.Span, document); 103await VerifyRangeAsync(hover, code.Span, document); 164await VerifyRangeAsync(hover, code.Span, document); 194await VerifyRangeAsync(hover, code.Span, document); 239await VerifyRangeAsync(hover, code.Span, document); 276await VerifyRangeAsync(hover, code.Span, document); 313await VerifyRangeAsync(hover, code.Span, document); 350await VerifyRangeAsync(hover, code.Span, document);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingContentValidationPassTest.cs (2)
32var edits = ImmutableArray.Create(new TextChange(source.Span, " ")); 52var edits = ImmutableArray.Create(new TextChange(source.Span, " "));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingDiagnosticValidationPassTest.cs (2)
31var edits = ImmutableArray.Create(new TextChange(source.Span, " ")); 52var badEdit = new TextChange(source.Span, "@ "); // Creates a diagnostic
Microsoft.VisualStudioCode.RazorExtension.UnitTests (33)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\CohostCodeActionsEndpointTestBase.cs (1)
174? inputText.GetRange(input.Span)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToDefinitionEndpointTest.cs (18)
159var range = text.GetRange(surveyPrompt.Span); 194var range = text.GetRange(surveyPrompt.Span); 227var range = text.GetRange(surveyPrompt.Span); 260var range = text.GetRange(surveyPrompt.Span); 298var range = text.GetRange(input.Span); 340var range = text.GetRange(surveyPrompt.Span); 382var range = text.GetRange(surveyPrompt.Span); 429var range = text.GetRange(surveyPrompt.Span); 455Range = inputText.GetRange(input.Span), 492Assert.Equal(expected.Span, SourceText.From(expected.Text).GetTextSpan(location.Range)); 528Assert.Equal(expected.Span, SourceText.From(expected.Text).GetTextSpan(location.Range)); 572Assert.Equal(expected.Span, SourceText.From(expected.Text).GetTextSpan(location.Range)); 610Assert.Equal(expected.Span, SourceText.From(expected.Text).GetTextSpan(location.Range)); 655Assert.Equal(expected.Span, SourceText.From(expected.Text).GetTextSpan(location.Range)); 719Assert.Equal(expected.Span, SourceText.From(expected.Text).GetTextSpan(location.Range)); 783Assert.Equal(expected.Span, SourceText.From(expected.Text).GetTextSpan(location.Range)); 1032var range = text.GetRange(surveyPrompt.Span); 1052var range = text.GetRange(input.Span);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToImplementationEndpointTest.cs (2)
109Range = inputText.GetRange(input.Span), 145var range = text.GetRange(surveyPrompt.Span);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostHoverEndpointTest.cs (8)
37await VerifyRangeAsync(hover, code.Span, document); 103await VerifyRangeAsync(hover, code.Span, document); 164await VerifyRangeAsync(hover, code.Span, document); 194await VerifyRangeAsync(hover, code.Span, document); 239await VerifyRangeAsync(hover, code.Span, document); 276await VerifyRangeAsync(hover, code.Span, document); 313await VerifyRangeAsync(hover, code.Span, document); 350await VerifyRangeAsync(hover, code.Span, document);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingContentValidationPassTest.cs (2)
32var edits = ImmutableArray.Create(new TextChange(source.Span, " ")); 52var edits = ImmutableArray.Create(new TextChange(source.Span, " "));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingDiagnosticValidationPassTest.cs (2)
31var edits = ImmutableArray.Create(new TextChange(source.Span, " ")); 52var badEdit = new TextChange(source.Span, "@ "); // Creates a diagnostic