1 type derived from Location
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Extensions\VSLocation.cs (1)
12
internal class VSLocation :
Location
6 instantiations of Location
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Extensions\ProtocolConversions.cs (2)
483
return new LSP.
Location
513
var location = new LSP.
Location
Extensions\ProtocolConversions.Diagnostics.cs (1)
82
Location = new LSP.
Location
Handler\Definitions\AbstractGoToDefinitionHandler.cs (1)
89
locations.Add(new LSP.
Location
Handler\References\FindUsagesLSPContext.cs (1)
276
return new LSP.
Location
Handler\Symbols\DocumentSymbolsHandler.cs (1)
96
var location = new LSP.
Location
()
73 references to Location
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
Cohost\Handlers\FindAllReferences.cs (1)
26
var progress = BufferedProgress.Create<SumType<VSInternalReferenceItem,
Location
>[]>(progress: null);
Microsoft.CodeAnalysis.LanguageServer.Protocol (71)
Extensions\ProtocolConversions.cs (6)
355
public static Task<LSP.
Location
?> DocumentSpanToLocationAsync(DocumentSpan documentSpan, CancellationToken cancellationToken)
441
public static Task<LSP.
Location
?> TextSpanToLocationAsync(
450
public static async Task<LSP.
Location
?> TextSpanToLocationAsync(
489
static async Task<LSP.
Location
> ConvertTextSpanToLocationAsync(
511
static LSP.
Location
ConvertTextSpanWithTextToLocation(TextSpan span, SourceText text, Uri documentUri)
513
var
location = new LSP.Location
Handler\Definitions\AbstractGoToDefinitionHandler.cs (6)
20
internal abstract class AbstractGoToDefinitionHandler : ILspServiceDocumentRequestHandler<LSP.TextDocumentPositionParams, LSP.
Location
[]?>
36
public abstract Task<LSP.
Location
[]?> HandleRequestAsync(TextDocumentPositionParams request, RequestContext context, CancellationToken cancellationToken);
38
protected Task<LSP.
Location
[]?> GetDefinitionAsync(LSP.TextDocumentPositionParams request, bool forSymbolType, RequestContext context, CancellationToken cancellationToken)
43
return SpecializedTasks.Null<LSP.
Location
[]>();
50
internal static async Task<LSP.
Location
[]?> GetDefinitionsAsync(IGlobalOptionService globalOptions, IMetadataAsSourceFileService? metadataAsSourceFileService, Workspace workspace, Document document, bool forSymbolType, LinePosition linePosition, CancellationToken cancellationToken)
52
var locations = ArrayBuilder<LSP.
Location
>.GetInstance();
Handler\Definitions\GoToDefinitionHandler.cs (1)
27
public override Task<LSP.
Location
[]?> HandleRequestAsync(LSP.TextDocumentPositionParams request, RequestContext context, CancellationToken cancellationToken)
Handler\Definitions\GoToTypeDefinitionHandler.cs (1)
27
public override Task<LSP.
Location
[]?> HandleRequestAsync(LSP.TextDocumentPositionParams request, RequestContext context, CancellationToken cancellationToken)
Handler\MapCode\MapCodeHandler.cs (2)
116
Document document, TextDocumentIdentifier textDocumentIdentifier, LSP.
Location
[][]? focusLocations, CancellationToken cancellationToken)
125
foreach (
var
location in locationsOfSamePriority)
Handler\References\FindAllReferencesHandler.cs (3)
26
internal sealed class FindAllReferencesHandler : ILspServiceDocumentRequestHandler<VSInternalReferenceParams, LSP.SumType<VSInternalReferenceItem, LSP.
Location
>[]?>
49
public async Task<SumType<VSInternalReferenceItem, LSP.
Location
>[]?> HandleRequestAsync(
70
IProgress<SumType<VSInternalReferenceItem, LSP.
Location
>[]> progress,
Handler\References\FindImplementationsHandler.cs (4)
21
internal sealed class FindImplementationsHandler : ILspServiceDocumentRequestHandler<LSP.TextDocumentPositionParams, LSP.
Location
[]>
37
public Task<LSP.
Location
[]> HandleRequestAsync(LSP.TextDocumentPositionParams request, RequestContext context, CancellationToken cancellationToken)
47
internal static async Task<LSP.
Location
[]> FindImplementationsAsync(Document document, LinePosition linePosition, OptionsProvider<ClassificationOptions> classificationOptions, bool supportsVisualStudioExtensions, CancellationToken cancellationToken)
49
var locations = ArrayBuilder<LSP.
Location
>.GetInstance();
Handler\References\FindUsagesLSPContext.cs (11)
32
private readonly IProgress<SumType<VSInternalReferenceItem, LSP.
Location
>[]> _progress;
53
private readonly Dictionary<int, SumType<VSInternalReferenceItem, LSP.
Location
>> _definitionsWithoutReference = [];
70
private readonly AsyncBatchingWorkQueue<SumType<VSInternalReferenceItem, LSP.
Location
>> _workQueue;
76
IProgress<SumType<VSInternalReferenceItem, LSP.
Location
>[]> progress,
93
_workQueue = new AsyncBatchingWorkQueue<SumType<VSInternalReferenceItem, LSP.
Location
>>(
177
private async Task<SumType<VSInternalReferenceItem, LSP.
Location
>?> GenerateVSReferenceItemAsync(
194
var
location = await ComputeLocationAsync(documentSpan, cancellationToken).ConfigureAwait(false);
201
private static SumType<VSInternalReferenceItem, LSP.
Location
>? CreateVsReference(
210
LSP.
Location
? location)
244
private async Task<LSP.
Location
?> ComputeLocationAsync(DocumentSpan? documentSpan, CancellationToken cancellationToken)
364
private ValueTask ReportReferencesAsync(ImmutableSegmentedList<SumType<VSInternalReferenceItem, LSP.
Location
>> referencesToReport, CancellationToken cancellationToken)
Handler\Symbols\DocumentSymbolsHandler.cs (1)
96
var
location = new LSP.Location()
Handler\Symbols\SymbolInformationFactory.cs (1)
12
public static SymbolInformation Create(string name, string? containerName, LSP.SymbolKind kind, LSP.
Location
location, Glyph glyph, bool supportsVSExtensions)
Protocol\DiagnosticRelatedInformation.cs (1)
22
public
Location
Location { get; set; }
Protocol\Extensions\Converters\VSExtensionUtilities.cs (1)
35
TryAddConverter<
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)
59
public
Location
? Location
Protocol\Internal\Converters\VSInternalExtensionUtilities.cs (1)
42
AddOrReplaceConverter<
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)
39
public
Location
[][]? FocusLocations
Protocol\Internal\VSInternalReferenceItem.cs (1)
34
public
Location
? Location
Protocol\Internal\VSInternalReferenceParams.cs (2)
13
internal class VSInternalReferenceParams : ReferenceParams, IPartialResultParams<SumType<VSInternalReferenceItem,
Location
>[]>
30
public new IProgress<SumType<VSInternalReferenceItem,
Location
>[]>? PartialResultToken { get; set; }
Protocol\Location.cs (3)
16
internal class Location : IEquatable<
Location
>
42
return this.Equals(obj as
Location
);
46
public bool Equals(
Location
? other)
Protocol\Methods.Navigation.cs (9)
31
public static readonly LspRequest<DeclarationParams, SumType<
Location
,
Location
[], LocationLink[]>?> TextDocumentDeclaration = new(TextDocumentDeclarationName);
50
public static readonly LspRequest<DefinitionParams, SumType<
Location
,
Location
[], LocationLink[]>?> TextDocumentDefinition = new(TextDocumentDefinitionName);
69
public static readonly LspRequest<TypeDefinitionParams, SumType<
Location
,
Location
[], LocationLink[]>?> TextDocumentTypeDefinition = new(TextDocumentTypeDefinitionName);
88
public static readonly LspRequest<ImplementationParams, SumType<
Location
,
Location
[], LocationLink[]>?> TextDocumentImplementation = new(TextDocumentImplementationName);
104
public static readonly LspRequest<ReferenceParams,
Location
[]?> TextDocumentReferences = new(TextDocumentReferencesName);
Protocol\Navigation\DeclarationParams.cs (2)
16
internal class DeclarationParams : TextDocumentPositionParams, IWorkDoneProgressParams, IPartialResultParams<SumType<
Location
[], LocationLink[]>>
29
public IProgress<SumType<
Location
[], LocationLink[]>>? PartialResultToken { get; set; }
Protocol\Navigation\DefinitionParams.cs (2)
16
internal class DefinitionParams : TextDocumentPositionParams, IWorkDoneProgressParams, IPartialResultParams<SumType<
Location
[], LocationLink[]>>
29
public IProgress<SumType<
Location
[], LocationLink[]>>? PartialResultToken { get; set; }
Protocol\Navigation\ImplementationParams.cs (2)
16
internal class ImplementationParams : TextDocumentPositionParams, IWorkDoneProgressParams, IPartialResultParams<SumType<
Location
[], LocationLink[]>>
29
public IProgress<SumType<
Location
[], LocationLink[]>>? PartialResultToken { get; set; }
Protocol\Navigation\ReferenceParams.cs (2)
16
internal class ReferenceParams : TextDocumentPositionParams, IWorkDoneProgressParams, IPartialResultParams<
Location
[]>
33
public IProgress<
Location
[]>? PartialResultToken { get; set; }
Protocol\Navigation\TypeDefinitionParams.cs (2)
16
internal class TypeDefinitionParams : TextDocumentPositionParams, IWorkDoneProgressParams, IPartialResultParams<SumType<
Location
[], LocationLink[]>>
29
public IProgress<SumType<
Location
[], LocationLink[]>>? PartialResultToken { get; set; }
Protocol\SymbolInformation.cs (2)
82
public
Location
Location
122
&& EqualityComparer<
Location
>.Default.Equals(this.Location, other.Location)
Protocol\WorkspaceSymbol.cs (1)
57
public SumType<
Location
, WorkspaceSymbolLocation> Location { get; init; }
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Completion\CompletionTests.cs (1)
1299
var
triggerLocation = GetLocationPlusOne(secondCaretLocation);