1 type derived from Location
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Extensions\VSLocation.cs (1)
12internal class VSLocation : Location
20 instantiations of Location
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Extensions\ProtocolConversions.cs (2)
599return new LSP.Location 632var location = new LSP.Location
Extensions\ProtocolConversions.Diagnostics.cs (1)
96Location = new LSP.Location
Handler\Definitions\AbstractGoToDefinitionHandler.cs (1)
89locations.Add(new LSP.Location
Handler\References\FindUsagesLSPContext.cs (1)
287return new LSP.Location
Handler\Symbols\DocumentSymbolsHandler.cs (1)
131var location = new LSP.Location()
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (7)
Definitions\GoToDefinitionTests.cs (1)
102var results = await RunGotoDefinitionAsync(testLspServer, new LSP.Location
Metadata\LspMetadataAsSourceWorkspaceTests.cs (1)
103var locationOfStringKeyword = new LSP.Location
References\FindImplementationsTests.cs (1)
97var results = await RunFindImplementationAsync(testLspServer, new LSP.Location
Rename\RenameTests.cs (3)
176var renameParams = CreateRenameParams(new LSP.Location 449var renameLocation = new LSP.Location() 502var renameLocation = new LSP.Location()
Workspaces\SourceGeneratedDocumentTests.cs (1)
120var location = new LSP.Location { DocumentUri = sourceGeneratorDocumentUri, Range = new LSP.Range { Start = new LSP.Position(0, 6), End = new LSP.Position(0, 6) } };
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Utilities\AbstractLanguageServerClientTests.cs (1)
123var location = new LSP.Location
Microsoft.CodeAnalysis.Razor.Workspaces (1)
Extensions\LspFactory.cs (1)
174=> new() { DocumentUri = new(uri), Range = range };
Microsoft.CodeAnalysis.Remote.Razor (1)
RemoteTagHelperSearchEngine.cs (1)
76return new LspLocation
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (2)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToDefinitionEndpointTest.cs (1)
453new() {
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToImplementationEndpointTest.cs (1)
106var htmlResponse = new LspLocation
Microsoft.VisualStudioCode.RazorExtension.UnitTests (2)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToDefinitionEndpointTest.cs (1)
453new() {
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToImplementationEndpointTest.cs (1)
106var htmlResponse = new LspLocation
471 references to Location
IdeBenchmarks (2)
Lsp\LspCompletionSerializationBenchmarks.cs (1)
105var caret = testServer.GetLocations("caret").Single();
Lsp\LspSourceGeneratorBenchmarks.cs (1)
97var typingLocation = testServer.GetLocations("typing").Single();
Microsoft.AspNetCore.Razor.Microbenchmarks (1)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Workspaces\GlobalUsings.cs (1)
17global using LspLocation = Roslyn.LanguageServer.Protocol.Location;
Microsoft.AspNetCore.Razor.Test.Common.Tooling (1)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Workspaces\GlobalUsings.cs (1)
17global using LspLocation = Roslyn.LanguageServer.Protocol.Location;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
LanguageServer\VSTypeScriptHandlerTests.cs (1)
85public VSTypeScriptTestLspServer(LspTestWorkspace testWorkspace, Dictionary<string, IList<Roslyn.LanguageServer.Protocol.Location>> locations, InitializationOptions options, AbstractLspLogger logger) : base(testWorkspace, locations, options, logger)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (7)
Cohost\Handlers\FindAllReferences.cs (3)
16using Location = Roslyn.LanguageServer.Protocol.Location; 20public static async Task<SumType<VSInternalReferenceItem, Location>[]?> FindReferencesAsync(Workspace workspace, Document document, LinePosition linePosition, bool supportsVSExtensions, CancellationToken cancellationToken) 26var progress = BufferedProgress.Create<SumType<VSInternalReferenceItem, Location>[]>(progress: null);
Cohost\Handlers\GoToDefinition.cs (2)
14using Location = Roslyn.LanguageServer.Protocol.Location; 18public static Task<Location[]?> GetDefinitionsAsync(Workspace workspace, Document document, bool typeOnly, LinePosition linePosition, CancellationToken cancellationToken)
Cohost\Handlers\GoToImplementation.cs (2)
14using Location = Roslyn.LanguageServer.Protocol.Location; 18public static Task<Location[]> FindImplementationsAsync(Document document, LinePosition linePosition, bool supportsVisualStudioExtensions, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.LanguageServer.Protocol (73)
Extensions\ProtocolConversions.cs (7)
412public static Task<LSP.Location?> DocumentSpanToLocationAsync(DocumentSpan documentSpan, CancellationToken cancellationToken) 418var location = await TextSpanToLocationAsync( 555public static Task<LSP.Location?> TextSpanToLocationAsync( 564public static async Task<LSP.Location?> TextSpanToLocationAsync( 608static async Task<LSP.Location> ConvertTextSpanToLocationAsync( 630static LSP.Location ConvertTextSpanWithTextToLocation(TextSpan span, SourceText text, DocumentUri documentUri) 632var location = new LSP.Location
Handler\Definitions\AbstractGoToDefinitionHandler.cs (6)
20internal abstract class AbstractGoToDefinitionHandler : ILspServiceDocumentRequestHandler<LSP.TextDocumentPositionParams, LSP.Location[]?> 36public abstract Task<LSP.Location[]?> HandleRequestAsync(TextDocumentPositionParams request, RequestContext context, CancellationToken cancellationToken); 38protected async Task<LSP.Location[]?> GetDefinitionAsync(LSP.TextDocumentPositionParams request, bool forSymbolType, RequestContext context, CancellationToken cancellationToken) 50internal static async Task<LSP.Location[]?> GetDefinitionsAsync(IGlobalOptionService globalOptions, IMetadataAsSourceFileService? metadataAsSourceFileService, Workspace workspace, Document document, bool forSymbolType, LinePosition linePosition, CancellationToken cancellationToken) 52var locations = ArrayBuilder<LSP.Location>.GetInstance(); 67var location = await ProtocolConversions.TextSpanToLocationAsync(
Handler\Definitions\GoToDefinitionHandler.cs (1)
27public override Task<LSP.Location[]?> HandleRequestAsync(LSP.TextDocumentPositionParams request, RequestContext context, CancellationToken cancellationToken)
Handler\Definitions\GoToTypeDefinitionHandler.cs (1)
27public override Task<LSP.Location[]?> HandleRequestAsync(LSP.TextDocumentPositionParams request, RequestContext context, CancellationToken cancellationToken)
Handler\MapCode\MapCodeHandler.cs (2)
116Document document, TextDocumentIdentifier textDocumentIdentifier, LSP.Location[][]? focusLocations, CancellationToken cancellationToken) 125foreach (var location in locationsOfSamePriority)
Handler\References\FindAllReferencesHandler.cs (3)
25internal sealed class FindAllReferencesHandler : ILspServiceDocumentRequestHandler<VSInternalReferenceParams, LSP.SumType<VSInternalReferenceItem, LSP.Location>[]?> 48public async Task<SumType<VSInternalReferenceItem, LSP.Location>[]?> HandleRequestAsync( 70IProgress<SumType<VSInternalReferenceItem, LSP.Location>[]> progress,
Handler\References\FindImplementationsHandler.cs (4)
21internal sealed class FindImplementationsHandler : ILspServiceDocumentRequestHandler<LSP.TextDocumentPositionParams, LSP.Location[]> 37public Task<LSP.Location[]> HandleRequestAsync(LSP.TextDocumentPositionParams request, RequestContext context, CancellationToken cancellationToken) 47internal static async Task<LSP.Location[]> FindImplementationsAsync(Document document, LinePosition linePosition, OptionsProvider<ClassificationOptions> classificationOptions, bool supportsVisualStudioExtensions, CancellationToken cancellationToken) 49var locations = ArrayBuilder<LSP.Location>.GetInstance();
Handler\References\FindUsagesLSPContext.cs (11)
33private readonly IProgress<SumType<VSInternalReferenceItem, LSP.Location>[]> _progress; 55private readonly Dictionary<int, SumType<VSInternalReferenceItem, LSP.Location>> _definitionsWithoutReference = []; 72private readonly AsyncBatchingWorkQueue<SumType<VSInternalReferenceItem, LSP.Location>> _workQueue; 78IProgress<SumType<VSInternalReferenceItem, LSP.Location>[]> progress, 97_workQueue = new AsyncBatchingWorkQueue<SumType<VSInternalReferenceItem, LSP.Location>>( 182private async Task<SumType<VSInternalReferenceItem, LSP.Location>?> GenerateVSReferenceItemAsync( 199var location = await ComputeLocationAsync(documentSpan, cancellationToken).ConfigureAwait(false); 206private static SumType<VSInternalReferenceItem, LSP.Location>? CreateVsReference( 215LSP.Location? location) 249private async Task<LSP.Location?> ComputeLocationAsync(DocumentSpan? documentSpan, CancellationToken cancellationToken) 375private async ValueTask ReportReferencesAsync(ImmutableSegmentedList<SumType<VSInternalReferenceItem, LSP.Location>> referencesToReport, CancellationToken cancellationToken)
Handler\Symbols\DocumentSymbolsHandler.cs (1)
131var location = new LSP.Location()
Handler\Symbols\SymbolInformationFactory.cs (1)
12public static SymbolInformation Create(string name, string? containerName, LSP.SymbolKind kind, LSP.Location location, Glyph glyph, bool supportsVSExtensions)
Handler\Symbols\WorkspaceSymbolsHandler.cs (1)
90var location = await ProtocolConversions.TextSpanToLocationAsync(
Protocol\DiagnosticRelatedInformation.cs (1)
22public Location Location { get; set; }
Protocol\Extensions\Converters\VSExtensionUtilities.cs (1)
35TryAddConverter<Location, VSLocation>();
Protocol\Extensions\VSLocation.cs (1)
10/// <see cref="VSLocation"/> extends <see cref="Location"/> providing additional properties used by Visual Studio.
Protocol\InlayHintLabelPart.cs (1)
59public Location? Location
Protocol\Internal\Converters\VSInternalExtensionUtilities.cs (1)
43AddOrReplaceConverter<Location, VSInternalLocation>();
Protocol\Internal\VSInternalLocation.cs (1)
12/// Extension class for <see cref="Protocol.Location"/>. Used to relay reference text information with colorization.
Protocol\Internal\VSInternalMapCodeMapping.cs (1)
39public Location[][]? FocusLocations
Protocol\Internal\VSInternalReferenceItem.cs (1)
34public Location? Location
Protocol\Internal\VSInternalReferenceParams.cs (2)
13internal sealed class VSInternalReferenceParams : ReferenceParams, IPartialResultParams<SumType<VSInternalReferenceItem, Location>[]> 30public new IProgress<SumType<VSInternalReferenceItem, Location>[]>? PartialResultToken { get; set; }
Protocol\Location.cs (3)
17internal class Location : IEquatable<Location> 50return this.Equals(obj as Location); 54public bool Equals(Location? other)
Protocol\Methods.Navigation.cs (9)
31public static readonly LspRequest<DeclarationParams, SumType<Location, Location[], LocationLink[]>?> TextDocumentDeclaration = new(TextDocumentDeclarationName); 50public static readonly LspRequest<DefinitionParams, SumType<Location, Location[], LocationLink[]>?> TextDocumentDefinition = new(TextDocumentDefinitionName); 69public static readonly LspRequest<TypeDefinitionParams, SumType<Location, Location[], LocationLink[]>?> TextDocumentTypeDefinition = new(TextDocumentTypeDefinitionName); 88public static readonly LspRequest<ImplementationParams, SumType<Location, Location[], LocationLink[]>?> TextDocumentImplementation = new(TextDocumentImplementationName); 104public static readonly LspRequest<ReferenceParams, Location[]?> TextDocumentReferences = new(TextDocumentReferencesName);
Protocol\Navigation\DeclarationParams.cs (2)
16internal sealed class DeclarationParams : TextDocumentPositionParams, IWorkDoneProgressParams, IPartialResultParams<SumType<Location[], LocationLink[]>> 29public IProgress<SumType<Location[], LocationLink[]>>? PartialResultToken { get; set; }
Protocol\Navigation\DefinitionParams.cs (2)
16internal sealed class DefinitionParams : TextDocumentPositionParams, IWorkDoneProgressParams, IPartialResultParams<SumType<Location[], LocationLink[]>> 29public IProgress<SumType<Location[], LocationLink[]>>? PartialResultToken { get; set; }
Protocol\Navigation\ImplementationParams.cs (2)
16internal sealed class ImplementationParams : TextDocumentPositionParams, IWorkDoneProgressParams, IPartialResultParams<SumType<Location[], LocationLink[]>> 29public IProgress<SumType<Location[], LocationLink[]>>? PartialResultToken { get; set; }
Protocol\Navigation\ReferenceParams.cs (2)
16internal class ReferenceParams : TextDocumentPositionParams, IWorkDoneProgressParams, IPartialResultParams<Location[]> 33public IProgress<Location[]>? PartialResultToken { get; set; }
Protocol\Navigation\TypeDefinitionParams.cs (2)
16internal sealed class TypeDefinitionParams : TextDocumentPositionParams, IWorkDoneProgressParams, IPartialResultParams<SumType<Location[], LocationLink[]>> 29public IProgress<SumType<Location[], LocationLink[]>>? PartialResultToken { get; set; }
Protocol\SymbolInformation.cs (2)
82public Location Location 122&& EqualityComparer<Location>.Default.Equals(this.Location, other.Location)
Protocol\WorkspaceSymbol.cs (1)
57public SumType<Location, WorkspaceSymbolLocation> Location { get; init; }
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (170)
CallHierarchy\CallHierarchyTests.cs (6)
39var definition = testLspServer.GetLocations("definition").Single(); 78var typeLocation = testLspServer.GetLocations("type").Single(); 79var methodLocation = testLspServer.GetLocations("targetMethod").Single(); 127var firstCallerLocation = testLspServer.GetLocations("caller1").Single(); 128var secondCallerLocation = testLspServer.GetLocations("caller2").Single(); 179private static async Task<LSP.CallHierarchyItem[]> RunPrepareCallHierarchyAsync(TestLspServer testLspServer, LSP.Location caret)
CodeActions\CodeActionResolveTests.cs (2)
95var caretLocation = testLspServer.GetLocations("caret").Single(); 582IList<LSP.Location> locations,
CodeActions\CodeActionsTests.cs (7)
39var caretLocation = testLspServer.GetLocations("caret").Single(); 75var caretLocation = testLspServer.GetLocations("caret").Single(); 114var caret = testLspServer.GetLocations("caret").Single(); 158var caret = testLspServer.GetLocations("caret").Single(); 202var caret = testLspServer.GetLocations("caret").Single(); 250var caret = testLspServer.GetLocations("caret").Single(); 291internal static CodeActionParams CreateCodeActionParams(LSP.Location caret)
CodeActions\RunCodeActionsTests.cs (1)
38var caretLocation = testLspServer.GetLocations("caret").Single();
CodeLens\AbstractCodeLensTests.cs (3)
36var expectedCodeLens = testLspServer.GetLocations("codeLens").Single(); 57var expectedCodeLens = testLspServer.GetLocations("codeLens").Single(); 80var expectedCodeLens = testLspServer.GetLocations("codeLens").Single();
Completion\CompletionFeaturesTests.cs (10)
81var caret = testLspServer.GetLocations("caret").Single(); 332var caretLocation = testLspServer.GetLocations("caret").Single(); 459var caret = testLspServer.GetLocations("caret").Single(); 653var caret = testLspServer.GetLocations("caret").Single(); 760var caret = testLspServer.GetLocations("caret").Single(); 792var caret = testLspServer.GetLocations("caret").Single(); 848var caretLocation = testLspServer.GetLocations("caret").Single(); 962var caret = testLspServer.GetLocations("caret").Single(); 1031var caret = testLspServer.GetLocations("caret").Single(); 1086var caret = testLspServer.GetLocations("caret").Single();
Completion\CompletionTests.cs (11)
983var caretLocation = testLspServer.GetLocations("caret").Single(); 1038var caretLocation = testLspServer.GetLocations("caret").Single(); 1106var caretLocation = testLspServer.GetLocations("caret").Single(); 1174var caretLocation = testLspServer.GetLocations("caret").Single(); 1271var firstCaret = testLspServer.GetLocations("firstCaret").Single(); 1337var caretLocation = testLspServer.GetLocations("caret").Single(); 1398var firstCaretLocation = testLspServer.GetLocations("firstCaret").Single(); 1414var secondCaretLocation = testLspServer.GetLocations("secondCaret").Single(); 1418var triggerLocation = GetLocationPlusOne(secondCaretLocation); 1518var caretLocation = testLspServer.GetLocations("caret").Single(); 1586var caret = testLspServer.GetLocations("caret").Single();
DataTips\DataTipRangeHandlerTests.cs (2)
18private static async Task<LSP.VSInternalDataTip?> RunAsync(TestLspServer testLspServer, LSP.Location caret) 41var caret = testLspServer.GetLocations("caret").Single();
Definitions\GoToDefinitionTests.cs (4)
318var result = Assert.Single(results); 377private static async Task<LSP.Location[]> RunGotoDefinitionAsync(TestLspServer testLspServer, LSP.Location caret) 379return await testLspServer.ExecuteRequestAsync<LSP.TextDocumentPositionParams, LSP.Location[]>(LSP.Methods.TextDocumentDefinitionName,
Definitions\GoToTypeDefinitionTests.cs (5)
200var result = Assert.Single(results); 228var result = Assert.Single(results); 288private static async Task<LSP.Location[]> RunGotoTypeDefinitionAsync(TestLspServer testLspServer, LSP.Location caret) 290return await testLspServer.ExecuteRequestAsync<LSP.TextDocumentPositionParams, LSP.Location[]>(LSP.Methods.TextDocumentTypeDefinitionName,
Diagnostics\PullDiagnosticTests.cs (1)
681var textLocation = testLspServer.GetLocations()["insert"].Single();
DocumentChanges\DocumentChangesTests.cs (3)
451var locationTyped = testLspServer.GetLocations("type").Single(); 472private async Task<(TestLspServer, LSP.Location, string)> GetTestLspServerAndLocationAsync(string source, bool mutatingLspWorkspace) 475var locationTyped = testLspServer.GetLocations("type").Single();
DocumentChanges\DocumentChangesTests.LinkedDocuments.cs (2)
33var caretLocation = testLspServer.GetLocations("caret").Single(); 78var caretLocation = testLspServer.GetLocations("caret").Single();
Formatting\FormatDocumentOnTypeTests.cs (7)
37var locationTyped = testLspServer.GetLocations("type").Single(); 65var locationTyped = testLspServer.GetLocations("type").Single(); 91var locationTyped = testLspServer.GetLocations("type").Single(); 119var locationTyped = testLspServer.GetLocations("type").Single(); 151var locationTyped = testLspServer.GetLocations("type").Single(); 169LSP.Location locationTyped, 185LSP.Location locationTyped,
Formatting\FormatDocumentRangeTests.cs (4)
37var rangeToFormat = testLspServer.GetLocations("format").Single(); 67var rangeToFormat = testLspServer.GetLocations("format").Single(); 85LSP.Location location, 96LSP.Location location,
Highlights\DocumentHighlightTests.cs (2)
171private static async Task<LSP.DocumentHighlight[]> RunGetDocumentHighlightAsync(TestLspServer testLspServer, LSP.Location caret) 185private static LSP.DocumentHighlight CreateDocumentHighlight(LSP.DocumentHighlightKind kind, LSP.Location location)
Hover\HoverTests.cs (15)
37var expectedLocation = testLspServer.GetLocations("caret").Single(); 61var expectedLocation = testLspServer.GetLocations("caret").Single(); 84var expectedLocation = testLspServer.GetLocations("caret").Single(); 112var expectedLocation = testLspServer.GetLocations("caret").Single(); 184var location = testLspServer.GetLocations("caret").Single(); 238var expectedLocation = testLspServer.GetLocations("caret").Single(); 305var expectedLocation = testLspServer.GetLocations("caret").Single(); 362var expectedLocation = testLspServer.GetLocations("caret").Single(); 403var expectedLocation = testLspServer.GetLocations("caret").Single(); 437var expectedLocation = testLspServer.GetLocations("caret").Single(); 472var expectedLocation = testLspServer.GetLocations("caret").Single(); 501var expectedLocation = testLspServer.GetLocations("caret").Single(); 545var location = testLspServer.GetLocations("caret").Single(); 587var expectedLocation = testLspServer.GetLocations("caret").Single(); 605LSP.Location caret,
InlayHint\AbstractInlayHintTests.cs (1)
44foreach (var location in locations)
InlineCompletions\InlineCompletionsTests.cs (3)
218var locationTyped = testLspServer.GetLocations("tab").Single(); 241var locationTyped = testLspServer.GetLocations("tab").Single(); 258LSP.Location locationTyped,
Metadata\LspMetadataAsSourceWorkspaceTests.cs (6)
41var location = testLspServer.GetLocations("definition").Single(); 42var definition = await testLspServer.ExecuteRequestAsync<LSP.TextDocumentPositionParams, LSP.Location[]>(LSP.Methods.TextDocumentDefinitionName, 78var location = testLspServer.GetLocations("definition").Single(); 79var definition = await testLspServer.ExecuteRequestAsync<LSP.TextDocumentPositionParams, LSP.Location[]>(LSP.Methods.TextDocumentDefinitionName, 103var locationOfStringKeyword = new LSP.Location 113var definitionFromMetadata = await testLspServer.ExecuteRequestAsync<LSP.TextDocumentPositionParams, LSP.Location[]>(LSP.Methods.TextDocumentDefinitionName,
OnAutoInsert\AbstractOnAutoInsertTests.cs (4)
48var locationTyped = testLspServer.GetLocations("type").Single(); 76var locationTyped = testLspServer.GetLocations("type").Single(); 87LSP.Location locationTyped, 97LSP.Location locationTyped,
OnAutoInsert\RawStringOnAutoInsertTests.cs (1)
217var locationTyped = testLspServer.GetLocations("type").Single();
ProtocolConversionsTests.cs (1)
389var caret = testLspServer.GetLocations("caret").Single();
References\FindAllReferencesHandlerTests.cs (6)
457private static LSP.ReferenceParams CreateReferenceParams(LSP.Location caret, IProgress<object> progress, bool includeDeclaration) 466internal static async Task<LSP.VSInternalReferenceItem[]> RunFindAllReferencesAsync(TestLspServer testLspServer, LSP.Location caret, BufferedProgress<object>? progress = null, bool includeDeclaration = true) 483internal static async Task<LSP.Location[]> RunFindAllReferencesNonVSAsync(TestLspServer testLspServer, LSP.Location caret, BufferedProgress<object>? progress = null, bool includeDeclaration = true) 485var results = await testLspServer.ExecuteRequestAsync<LSP.ReferenceParams, LSP.Location[]>(LSP.Methods.TextDocumentReferencesName, 492results = [.. UnwrapProgress<LSP.Location>(progress.Value)];
References\FindImplementationsTests.cs (3)
164private static async Task<LSP.Location[]> RunFindImplementationAsync(TestLspServer testLspServer, LSP.Location caret) 166return await testLspServer.ExecuteRequestAsync<LSP.TextDocumentPositionParams, LSP.Location[]>(LSP.Methods.TextDocumentImplementationName,
Rename\PrepareRenameTests.cs (5)
30var renameLocation = testLspServer.GetLocations("caret").First(); 49var renameLocation = testLspServer.GetLocations("caret").First(); 69var renameLocation = testLspServer.GetLocations("caret").First(); 89var renameLocation = testLspServer.GetLocations("caret").First(); 95private static LSP.PrepareRenameParams CreatePrepareRenameParams(LSP.Location location)
Rename\RenameTests.cs (11)
47var renameLocation = testLspServer.GetLocations("caret").First(); 70var renameLocation = testLspServer.GetLocations("caret").First(); 102var renameLocation = testLspServer.GetLocations("caret").First(); 147var renameLocation = testLspServer.GetLocations("caret").First(); 227var renameLocation = testLspServer.GetLocations("caret").First(); 280var renameLocation = testLspServer.GetLocations("caret").First(); 333var renameLocation = testLspServer.GetLocations("caret").First(); 387var renameLocation = testLspServer.GetLocations("caret").First(); 449var renameLocation = new LSP.Location() 502var renameLocation = new LSP.Location() 516private static LSP.RenameParams CreateRenameParams(LSP.Location location, string newName)
SelectionRanges\SelectionRangesTests.cs (4)
174var caret1 = testLspServer.GetLocations("caret1").Single(); 175var caret2 = testLspServer.GetLocations("caret2").Single(); 196var caret = testLspServer.GetLocations("caret").Single(); 219private static async Task<LSP.SelectionRange?> RunGetSelectionRangeAsync(TestLspServer testLspServer, LSP.Location caret)
SemanticTokens\AbstractSemanticTokensTests.cs (4)
28private protected static async Task<LSP.SemanticTokens> RunGetSemanticTokensFullAsync(TestLspServer testLspServer, LSP.Location caret) 36private protected static async Task<LSP.SemanticTokens> RunGetSemanticTokensRangeAsync(TestLspServer testLspServer, LSP.Location location) 44private static LSP.SemanticTokensFullParams CreateSemanticTokensFullParams(LSP.Location caret) 50private static LSP.SemanticTokensRangeParams CreateSemanticTokensRangeParams(LSP.Location location)
SemanticTokens\SemanticTokensRangeTests.cs (2)
630var location = testLspServer.GetLocations("range").Single(); 712var location = testLspServer.GetLocations("range").Single();
SignatureHelp\SignatureHelpTests.cs (1)
106private static async Task<LSP.SignatureHelp?> RunGetSignatureHelpAsync(TestLspServer testLspServer, LSP.Location caret)
TypeHierarchy\TypeHierarchyTests.cs (21)
32var definition = testLspServer.GetLocations("definition").Single(); 59var definition = testLspServer.GetLocations("definition").Single(); 80var definition = testLspServer.GetLocations("definition").Single(); 101var definition = testLspServer.GetLocations("definition").Single(); 131var preferredDefinition = testLspServer.GetLocations("definitionInSecond").Single(); 153var definition = testLspServer.GetLocations("definition").Single(); 228var baseDefinition = testLspServer.GetLocations("baseDef").Single(); 229var interfaceDefinition = testLspServer.GetLocations("interfaceDef").Single(); 268var childDefinition = testLspServer.GetLocations("childDef").Single(); 269var directImplementationDefinition = testLspServer.GetLocations("directImplDef").Single(); 316var midDefinition = testLspServer.GetLocations("midDef").Single(); 317var baseDefinition = testLspServer.GetLocations("baseDef").Single(); 318var midInterfaceDefinition = testLspServer.GetLocations("midInterfaceDef").Single(); 319var topInterfaceDefinition = testLspServer.GetLocations("topInterfaceDef").Single(); 374var childDefinition = testLspServer.GetLocations("childDef").Single(); 375var directImplementationDefinition = testLspServer.GetLocations("directImplDef").Single(); 376var grandchildDefinition = testLspServer.GetLocations("grandchildDef").Single(); 377var indirectImplementationDefinition = testLspServer.GetLocations("indirectImplDef").Single(); 393private static void AssertContainsItem(LSP.TypeHierarchyItem[] items, string expectedName, LSP.Location expectedDefinition) 399private static void AssertEqualsItem(LSP.TypeHierarchyItem item, string expectedName, LSP.Location expectedDefinition) 406private static async Task<LSP.TypeHierarchyItem[]> RunPrepareTypeHierarchyAsync(TestLspServer testLspServer, LSP.Location caret)
ValidateBreakableRange\ValidateBreakableRangeTests.cs (11)
32var caret = testLspServer.GetLocations("caret").Single(); 57var caret = testLspServer.GetLocations("caret").Single(); 80var caret = testLspServer.GetLocations("caret").Single(); 101var breakpoint = testLspServer.GetLocations("breakpoint").Single(); 124var breakpoint = testLspServer.GetLocations("breakpoint").Single(); 148var breakpoint = testLspServer.GetLocations("breakpoint").Single(); 173var breakpoint = testLspServer.GetLocations("breakpoint").Single(); 202var breakpoint = testLspServer.GetLocations("breakpoint").Single(); 227var breakpoint = testLspServer.GetLocations("breakpoint").Single(); 251var breakpoint = testLspServer.GetLocations("breakpoint").Single(); 259private static async Task<LSP.Range?> RunAsync(TestLspServer testLspServer, LSP.Location caret)
Workspaces\SourceGeneratedDocumentTests.cs (1)
120var location = new LSP.Location { DocumentUri = sourceGeneratorDocumentUri, Range = new LSP.Range { Start = new LSP.Position(0, 6), End = new LSP.Position(0, 6) } };
Microsoft.CodeAnalysis.LanguageServer.UnitTests (12)
Services\ExtractRefactoringTests.cs (3)
29var caretLocation = testLspServer.GetLocations("caret").Single(); 59var caretLocation = testLspServer.GetLocations("caret").Single(); 78LSP.Location caretLocation,
Utilities\AbstractLanguageServerClientTests.cs (5)
106private protected static Dictionary<string, IList<LSP.Location>> GetAnnotatedLocations(DocumentUri codeUri, SourceText text, ImmutableDictionary<string, ImmutableArray<TextSpan>> spanMap) 108var locations = new Dictionary<string, IList<LSP.Location>>(); 121static LSP.Location ConvertTextSpanWithTextToLocation(TextSpan span, SourceText text, DocumentUri documentUri) 123var location = new LSP.Location 150private protected static CodeActionParams CreateCodeActionParams(LSP.Location location)
Utilities\AbstractLanguageServerClientTests.TestLspClient.cs (4)
27private readonly Dictionary<string, IList<LSP.Location>> _locations; 41Dictionary<string, IList<LSP.Location>>? locations = null) 135private TestLspClient(Process process, Stream pipeStream, Dictionary<DocumentUri, SourceText> documents, Dictionary<string, IList<LSP.Location>> locations, ILoggerFactory loggerFactory) 252public IList<LSP.Location> GetLocations(string locationName) => _locations[locationName];
Microsoft.CodeAnalysis.Razor.Workspaces (14)
Extensions\LspExtensions_Location.cs (1)
11public static void Deconstruct(this LspLocation position, out Uri uri, out LspRange range)
Extensions\LspFactory.cs (4)
164public static LspLocation CreateLocation(string filePath, LinePositionSpan span) 167public static LspLocation CreateLocation(Uri uri, LinePositionSpan span) 170public static LspLocation CreateLocation(string filePath, LspRange range) 173public static LspLocation CreateLocation(Uri uri, LspRange range)
GlobalUsings.cs (1)
17global using LspLocation = Roslyn.LanguageServer.Protocol.Location;
GoToDefinition\AbstractDefinitionService.cs (2)
29public async Task<LspLocation[]?> GetDefinitionAsync( 106public async Task<LspLocation[]?> TryGetDefinitionFromStringLiteralAsync(
GoToDefinition\IDefinitionService.cs (2)
16Task<LspLocation[]?> GetDefinitionAsync( 23Task<LspLocation[]?> TryGetDefinitionFromStringLiteralAsync(
ITagHelperSearchEngine.cs (1)
14Task<LspLocation[]?> TryLocateTagHelperDefinitionsAsync(ImmutableArray<BoundTagHelperResult> boundTagHelpers, IDocumentSnapshot documentSnapshot, ISolutionQueryOperations solutionQueryOperations, CancellationToken cancellationToken);
Remote\IRemoteFindAllReferencesService.cs (1)
12ValueTask<RemoteResponse<SumType<VSInternalReferenceItem, LspLocation>[]?>> FindAllReferencesAsync(
Remote\IRemoteGoToDefinitionService.cs (1)
12ValueTask<RemoteResponse<LspLocation[]?>> GetDefinitionAsync(
Remote\IRemoteGoToImplementationService.cs (1)
12ValueTask<RemoteResponse<LspLocation[]?>> GetImplementationAsync(
Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests (1)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Workspaces\GlobalUsings.cs (1)
17global using LspLocation = Roslyn.LanguageServer.Protocol.Location;
Microsoft.CodeAnalysis.Remote.Razor (22)
FindAllReferences\RemoteFindAllReferencesService.cs (5)
20Roslyn.LanguageServer.Protocol.SumType<Roslyn.LanguageServer.Protocol.VSInternalReferenceItem, Roslyn.LanguageServer.Protocol.Location>[]?>; 39public ValueTask<RemoteResponse<SumType<VSInternalReferenceItem, LspLocation>[]?>> FindAllReferencesAsync( 50private async ValueTask<RemoteResponse<SumType<VSInternalReferenceItem, LspLocation>[]?>> FindAllReferencesAsync( 92using var mappedResults = new PooledArrayBuilder<SumType<VSInternalReferenceItem, LspLocation>>(results.Length); 97var location = result.TryGetFirst(out var referenceItem)
GoToDefinition\RemoteGoToDefinitionService.cs (6)
17using static Microsoft.CodeAnalysis.Razor.Remote.RemoteResponse<Roslyn.LanguageServer.Protocol.Location[]?>; 35public ValueTask<RemoteResponse<LspLocation[]?>> GetDefinitionAsync( 46private async ValueTask<RemoteResponse<LspLocation[]?>> GetDefinitionAsync( 119using var mappedLocations = new PooledArrayBuilder<LspLocation>(locations.Length); 121foreach (var location in locations) 129var mappedLocation = LspFactory.CreateLocation(mappedDocumentUri, mappedRange);
GoToImplementation\RemoteGoToImplementationService.cs (6)
14using static Microsoft.CodeAnalysis.Razor.Remote.RemoteResponse<Roslyn.LanguageServer.Protocol.Location[]?>; 31public ValueTask<RemoteResponse<LspLocation[]?>> GetImplementationAsync( 42private async ValueTask<RemoteResponse<LspLocation[]?>> GetImplementationAsync( 88using var mappedLocations = new PooledArrayBuilder<LspLocation>(locations.Length); 90foreach (var location in locations) 98var mappedLocation = LspFactory.CreateLocation(mappedDocumentUri, mappedRange);
RemoteTagHelperSearchEngine.cs (4)
23public async Task<LspLocation[]?> TryLocateTagHelperDefinitionsAsync(ImmutableArray<BoundTagHelperResult> boundTagHelperResults, IDocumentSnapshot documentSnapshot, ISolutionQueryOperations solutionQueryOperations, CancellationToken cancellationToken) 34using var locations = new PooledArrayBuilder<LspLocation>(); 43var location = await TryLocateTagHelperDefinitionAsync(boundTagHelper, boundAttribute, compilation, project.Solution, cancellationToken).ConfigureAwait(false); 53private async Task<LspLocation?> TryLocateTagHelperDefinitionAsync(TagHelperDescriptor boundTagHelper, BoundAttributeDescriptor? boundAttribute, Compilation compilation, Solution solution, CancellationToken cancellationToken)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Workspaces\GlobalUsings.cs (1)
17global using LspLocation = Roslyn.LanguageServer.Protocol.Location;
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
DocumentOutline\DocumentOutlineTestsBase.cs (1)
101private EditorTestLspServer(EditorTestWorkspace testWorkspace, Dictionary<string, IList<LanguageServer.Protocol.Location>> locations, InitializationOptions options, AbstractLspLogger logger) : base(testWorkspace, locations, options, logger)
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
288public async Task<DocumentSpan?> GetDocumentSpanFromLocationAsync(LSP.Location location, CancellationToken cancellationToken)
Microsoft.VisualStudio.LanguageServices.Razor (29)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\FindAllReferences\CohostFindAllReferencesEndpoint.cs (6)
26: AbstractCohostDocumentEndpoint<ReferenceParams, SumType<VSInternalReferenceItem, LspLocation>[]?>(incompatibleProjectService), IDynamicRegistrationProvider 51protected override Task<SumType<VSInternalReferenceItem, LspLocation>[]?> HandleRequestAsync(ReferenceParams request, TextDocument razorDocument, CancellationToken cancellationToken) 54private async Task<SumType<VSInternalReferenceItem, LspLocation>[]?> HandleRequestAsync(TextDocument razorDocument, Position position, CancellationToken cancellationToken) 57.TryInvokeAsync<IRemoteFindAllReferencesService, RemoteResponse<SumType<VSInternalReferenceItem, LspLocation>[]?>>( 64if (response.Result is SumType<VSInternalReferenceItem, LspLocation>[] results) 76public Task<SumType<VSInternalReferenceItem, LspLocation>[]?> HandleRequestAsync(TextDocument razorDocument, Position position, CancellationToken cancellationToken)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Navigation\CohostGoToDefinitionEndpoint.cs (13)
32: AbstractCohostDocumentEndpoint<TextDocumentPositionParams, SumType<LspLocation, LspLocation[], DocumentLink[]>?>(incompatibleProjectService), IDynamicRegistrationProvider 59protected override async Task<SumType<LspLocation, LspLocation[], DocumentLink[]>?> HandleRequestAsync(TextDocumentPositionParams request, TextDocument razorDocument, CancellationToken cancellationToken) 64.TryInvokeAsync<IRemoteGoToDefinitionService, RemoteResponse<LspLocation[]?>>( 71if (response.Result is LspLocation[] locations) 84private async Task<SumType<LspLocation, LspLocation[], DocumentLink[]>?> GetHtmlDefinitionsAsync(TextDocumentPositionParams request, TextDocument razorDocument, CancellationToken cancellationToken) 87.MakeHtmlLspRequestAsync<TextDocumentPositionParams, SumType<LspLocation, LspLocation[], DocumentLink[]>>( 99if (result.TryGetFirst(out var singleLocation)) 139public Task<SumType<LspLocation, LspLocation[], DocumentLink[]>?> HandleRequestAsync(
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Navigation\CohostGoToImplementationEndpoint.cs (9)
29: AbstractCohostDocumentEndpoint<TextDocumentPositionParams, SumType<LspLocation[], VSInternalReferenceItem[]>?>(incompatibleProjectService), IDynamicRegistrationProvider 56protected override async Task<SumType<LspLocation[], VSInternalReferenceItem[]>?> HandleRequestAsync(TextDocumentPositionParams request, TextDocument razorDocument, CancellationToken cancellationToken) 61.TryInvokeAsync<IRemoteGoToImplementationService, RemoteResponse<LspLocation[]?>>( 68if (response.Result is LspLocation[] locations) 81private async Task<SumType<LspLocation[], VSInternalReferenceItem[]>?> GetHtmlImplementationsAsync(TextDocumentPositionParams request, TextDocument razorDocument, CancellationToken cancellationToken) 84.MakeHtmlLspRequestAsync<TextDocumentPositionParams, SumType<LspLocation[], VSInternalReferenceItem[]>>( 98foreach (var location in locations) 118private void RemapVirtualHtmlUri(LspLocation? location) 131public Task<SumType<LspLocation[], VSInternalReferenceItem[]>?> HandleRequestAsync(
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Workspaces\GlobalUsings.cs (1)
17global using LspLocation = Roslyn.LanguageServer.Protocol.Location;
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (54)
Cohost\CohostRoslynGoToDefTest.cs (1)
71var def = Assert.Single(definition);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Workspaces\GlobalUsings.cs (1)
17global using LspLocation = Roslyn.LanguageServer.Protocol.Location;
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostFindAllReferencesEndpointTest.cs (7)
235var location = GetLocation(t); 243var location = GetLocation(t); 281var location = GetLocation(result); 303private async Task<SumType<VSInternalReferenceItem, LspLocation>[]> GetFindAllReferencesResultsAsync(TextDocument document, Position position) 323private static LspLocation GetLocation(SumType<VSInternalReferenceItem, LspLocation> r) 326? refItem.Location ?? Assumed.Unreachable<LspLocation>()
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToDefinitionEndpointTest.cs (36)
80var location = Assert.Single(locations); 155var location = Assert.Single(locations); 190var location = Assert.Single(locations); 223var location = Assert.Single(locations); 256var location = Assert.Single(locations); 294var location = Assert.Single(locations); 336var location = Assert.Single(locations); 378var location = Assert.Single(locations); 426var location = Assert.Single(locations); 451var htmlResponse = new SumType<LspLocation, LspLocation[], DocumentLink[]>?(new LspLocation[] 489var location = Assert.Single(locations); 525var location = Assert.Single(locations); 569var location = Assert.Single(locations); 607var location = Assert.Single(locations); 652var location = Assert.Single(locations); 716var location = Assert.Single(locations); 780var location = Assert.Single(locations); 868var location = locations[0]; 896var location = Assert.Single(locations); 920var location = Assert.Single(locations); 950var location = Assert.Single(locations); 973var location = Assert.Single(locations); 1028var location = Assert.Single(locations); 1039SumType<LspLocation, LspLocation[], DocumentLink[]>? htmlResponse = null, 1049var location = Assert.Single(locations); 1058private async Task<SumType<LspLocation, LspLocation[], DocumentLink[]>?> GetGoToDefinitionResultAsync( 1061SumType<LspLocation, LspLocation[], DocumentLink[]>? htmlResponse = null, 1068private async Task<SumType<LspLocation, LspLocation[], DocumentLink[]>?> GetGoToDefinitionResultCoreAsync( 1069TextDocument document, TestCode input, SumType<LspLocation, LspLocation[], DocumentLink[]>? htmlResponse)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToImplementationEndpointTest.cs (9)
106var htmlResponse = new LspLocation 141var location = Assert.Single(locations); 149private async Task VerifyGoToImplementationAsync(TestCode input, TextDocument? document = null, LspLocation? htmlResponse = null) 171private async Task<SumType<LspLocation[], VSInternalReferenceItem[]>?> GetGoToImplementationResultAsync( 173LspLocation? htmlResponse = null, 180private async Task<SumType<LspLocation[], VSInternalReferenceItem[]>?> GetGoToImplementationResultCoreAsync(TestCode input, TextDocument document, LspLocation? htmlResponse) 184: new TestHtmlRequestInvoker([(Methods.TextDocumentImplementationName, new SumType<LspLocation[], VSInternalReferenceItem[]>?(new LspLocation[] { htmlResponse }))]);
Microsoft.VisualStudioCode.RazorExtension (29)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\FindAllReferences\CohostFindAllReferencesEndpoint.cs (6)
26: AbstractCohostDocumentEndpoint<ReferenceParams, SumType<VSInternalReferenceItem, LspLocation>[]?>(incompatibleProjectService), IDynamicRegistrationProvider 51protected override Task<SumType<VSInternalReferenceItem, LspLocation>[]?> HandleRequestAsync(ReferenceParams request, TextDocument razorDocument, CancellationToken cancellationToken) 54private async Task<SumType<VSInternalReferenceItem, LspLocation>[]?> HandleRequestAsync(TextDocument razorDocument, Position position, CancellationToken cancellationToken) 57.TryInvokeAsync<IRemoteFindAllReferencesService, RemoteResponse<SumType<VSInternalReferenceItem, LspLocation>[]?>>( 64if (response.Result is SumType<VSInternalReferenceItem, LspLocation>[] results) 76public Task<SumType<VSInternalReferenceItem, LspLocation>[]?> HandleRequestAsync(TextDocument razorDocument, Position position, CancellationToken cancellationToken)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Navigation\CohostGoToDefinitionEndpoint.cs (13)
32: AbstractCohostDocumentEndpoint<TextDocumentPositionParams, SumType<LspLocation, LspLocation[], DocumentLink[]>?>(incompatibleProjectService), IDynamicRegistrationProvider 59protected override async Task<SumType<LspLocation, LspLocation[], DocumentLink[]>?> HandleRequestAsync(TextDocumentPositionParams request, TextDocument razorDocument, CancellationToken cancellationToken) 64.TryInvokeAsync<IRemoteGoToDefinitionService, RemoteResponse<LspLocation[]?>>( 71if (response.Result is LspLocation[] locations) 84private async Task<SumType<LspLocation, LspLocation[], DocumentLink[]>?> GetHtmlDefinitionsAsync(TextDocumentPositionParams request, TextDocument razorDocument, CancellationToken cancellationToken) 87.MakeHtmlLspRequestAsync<TextDocumentPositionParams, SumType<LspLocation, LspLocation[], DocumentLink[]>>( 99if (result.TryGetFirst(out var singleLocation)) 139public Task<SumType<LspLocation, LspLocation[], DocumentLink[]>?> HandleRequestAsync(
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Navigation\CohostGoToImplementationEndpoint.cs (9)
29: AbstractCohostDocumentEndpoint<TextDocumentPositionParams, SumType<LspLocation[], VSInternalReferenceItem[]>?>(incompatibleProjectService), IDynamicRegistrationProvider 56protected override async Task<SumType<LspLocation[], VSInternalReferenceItem[]>?> HandleRequestAsync(TextDocumentPositionParams request, TextDocument razorDocument, CancellationToken cancellationToken) 61.TryInvokeAsync<IRemoteGoToImplementationService, RemoteResponse<LspLocation[]?>>( 68if (response.Result is LspLocation[] locations) 81private async Task<SumType<LspLocation[], VSInternalReferenceItem[]>?> GetHtmlImplementationsAsync(TextDocumentPositionParams request, TextDocument razorDocument, CancellationToken cancellationToken) 84.MakeHtmlLspRequestAsync<TextDocumentPositionParams, SumType<LspLocation[], VSInternalReferenceItem[]>>( 98foreach (var location in locations) 118private void RemapVirtualHtmlUri(LspLocation? location) 131public Task<SumType<LspLocation[], VSInternalReferenceItem[]>?> HandleRequestAsync(
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Workspaces\GlobalUsings.cs (1)
17global using LspLocation = Roslyn.LanguageServer.Protocol.Location;
Microsoft.VisualStudioCode.RazorExtension.UnitTests (53)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Workspaces\GlobalUsings.cs (1)
17global using LspLocation = Roslyn.LanguageServer.Protocol.Location;
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostFindAllReferencesEndpointTest.cs (7)
235var location = GetLocation(t); 243var location = GetLocation(t); 281var location = GetLocation(result); 303private async Task<SumType<VSInternalReferenceItem, LspLocation>[]> GetFindAllReferencesResultsAsync(TextDocument document, Position position) 323private static LspLocation GetLocation(SumType<VSInternalReferenceItem, LspLocation> r) 326? refItem.Location ?? Assumed.Unreachable<LspLocation>()
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToDefinitionEndpointTest.cs (36)
80var location = Assert.Single(locations); 155var location = Assert.Single(locations); 190var location = Assert.Single(locations); 223var location = Assert.Single(locations); 256var location = Assert.Single(locations); 294var location = Assert.Single(locations); 336var location = Assert.Single(locations); 378var location = Assert.Single(locations); 426var location = Assert.Single(locations); 451var htmlResponse = new SumType<LspLocation, LspLocation[], DocumentLink[]>?(new LspLocation[] 489var location = Assert.Single(locations); 525var location = Assert.Single(locations); 569var location = Assert.Single(locations); 607var location = Assert.Single(locations); 652var location = Assert.Single(locations); 716var location = Assert.Single(locations); 780var location = Assert.Single(locations); 868var location = locations[0]; 896var location = Assert.Single(locations); 920var location = Assert.Single(locations); 950var location = Assert.Single(locations); 973var location = Assert.Single(locations); 1028var location = Assert.Single(locations); 1039SumType<LspLocation, LspLocation[], DocumentLink[]>? htmlResponse = null, 1049var location = Assert.Single(locations); 1058private async Task<SumType<LspLocation, LspLocation[], DocumentLink[]>?> GetGoToDefinitionResultAsync( 1061SumType<LspLocation, LspLocation[], DocumentLink[]>? htmlResponse = null, 1068private async Task<SumType<LspLocation, LspLocation[], DocumentLink[]>?> GetGoToDefinitionResultCoreAsync( 1069TextDocument document, TestCode input, SumType<LspLocation, LspLocation[], DocumentLink[]>? htmlResponse)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToImplementationEndpointTest.cs (9)
106var htmlResponse = new LspLocation 141var location = Assert.Single(locations); 149private async Task VerifyGoToImplementationAsync(TestCode input, TextDocument? document = null, LspLocation? htmlResponse = null) 171private async Task<SumType<LspLocation[], VSInternalReferenceItem[]>?> GetGoToImplementationResultAsync( 173LspLocation? htmlResponse = null, 180private async Task<SumType<LspLocation[], VSInternalReferenceItem[]>?> GetGoToImplementationResultCoreAsync(TestCode input, TextDocument document, LspLocation? htmlResponse) 184: new TestHtmlRequestInvoker([(Methods.TextDocumentImplementationName, new SumType<LspLocation[], VSInternalReferenceItem[]>?(new LspLocation[] { htmlResponse }))]);