7 instantiations of DocumentSpan
Microsoft.CodeAnalysis.Features (7)
FindUsages\AbstractFindUsagesService.ProgressAdapter.cs (1)
38
var documentSpan = new
DocumentSpan
(document, span);
FindUsages\DefinitionItemFactory.cs (2)
240
source.Add(new
DocumentSpan
(document, location.SourceSpan));
308
var documentSpan = new
DocumentSpan
(document, sourceSpan);
FindUsages\IRemoteFindUsagesService.cs (1)
178
return new
DocumentSpan
(document, SourceSpan);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
747
sourceSpans: [new
DocumentSpan
(document, location.SourceSpan)],
Navigation\IDefinitionLocationService.cs (1)
81
return new
DocumentSpan
(document, TextSpan.FromBounds(startPosition, endPosition));
SemanticSearch\SearchCompilationFailureDefinitionItem.cs (1)
27
sourceSpans: queryDocument != null ? [new
DocumentSpan
(queryDocument, error.Span)] : [],
42 references to DocumentSpan
Microsoft.CodeAnalysis.Features (41)
ClassifiedSpansAndHighlightSpanFactory.cs (1)
19
DocumentSpan
documentSpan, ClassifiedSpansAndHighlightSpan? classifiedSpans, ClassificationOptions options, CancellationToken cancellationToken)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (3)
209
var spanSet = new HashSet<
DocumentSpan
>();
289
private static async Task AddLocationSpanAsync(Location location, Solution solution, HashSet<
DocumentSpan
> spanSet, MultiDictionary<Document, HighlightSpan> tagList, HighlightSpanKind kind, CancellationToken cancellationToken)
299
private static async Task<
DocumentSpan
?> GetLocationSpanAsync(
DocumentIdSpan.cs (3)
13
/// Lightweight analog to <see cref="
DocumentSpan
"/> that should be used in features that care about
25
public static implicit operator DocumentIdSpan(
DocumentSpan
documentSpan)
28
public async Task<
DocumentSpan
?> TryRehydrateAsync(Solution solution, CancellationToken cancellationToken)
DocumentSpanExtensions.cs (3)
14
private static (Workspace workspace, IDocumentNavigationService service) GetNavigationParts(
DocumentSpan
documentSpan)
22
public static Task<INavigableLocation?> GetNavigableLocationAsync(this
DocumentSpan
documentSpan, CancellationToken cancellationToken)
30
this
DocumentSpan
documentSpan, CancellationToken cancellationToken)
ExternalAccess\UnitTesting\API\UnitTestingDocumentSpan.cs (2)
14
internal UnitTestingDocumentSpan(
DocumentSpan
sourceSpan, FileLinePositionSpan span)
23
public
DocumentSpan
DocumentSpan { get; }
FindUsages\AbstractFindUsagesService.ProgressAdapter.cs (1)
38
var
documentSpan = new DocumentSpan(document, span);
FindUsages\DefinitionItem.cs (7)
89
public ImmutableArray<
DocumentSpan
> SourceSpans { get; }
119
ImmutableArray<
DocumentSpan
> sourceSpans,
164
DocumentSpan
sourceSpan,
179
DocumentSpan
sourceSpan,
196
ImmutableArray<
DocumentSpan
> sourceSpans,
210
ImmutableArray<
DocumentSpan
> sourceSpans,
224
ImmutableArray<
DocumentSpan
> sourceSpans,
FindUsages\DefinitionItem.DefaultDefinitionItem.cs (2)
19
/// <see cref="
DocumentSpan
"/>.
26
ImmutableArray<
DocumentSpan
> sourceSpans,
FindUsages\DefinitionItem.DetachedDefinitionItem.cs (1)
79
using var converted = TemporaryArray<
DocumentSpan
>.Empty;
FindUsages\DefinitionItemFactory.cs (5)
94
ImmutableArray<
DocumentSpan
> sourceLocations,
223
private static ImmutableArray<
DocumentSpan
> GetSourceLocations(ISymbol definition, ImmutableArray<Location> locations, Solution solution, bool includeHiddenLocations)
232
using var source = TemporaryArray<
DocumentSpan
>.Empty;
247
private static ValueTask<ImmutableArray<ClassifiedSpansAndHighlightSpan?>> ClassifyDocumentSpansAsync(OptionsProvider<ClassificationOptions> optionsProvider, ImmutableArray<
DocumentSpan
> unclassifiedSpans, CancellationToken cancellationToken)
308
var
documentSpan = new DocumentSpan(document, sourceSpan);
FindUsages\IRemoteFindUsagesService.cs (2)
170
public static SerializableDocumentSpan Dehydrate(
DocumentSpan
documentSpan)
173
public async ValueTask<
DocumentSpan
> RehydrateAsync(Solution solution, CancellationToken cancellationToken)
FindUsages\SourceReferenceItem.cs (5)
24
public
DocumentSpan
SourceSpan { get; }
51
DocumentSpan
sourceSpan,
66
internal SourceReferenceItem(DefinitionItem definition,
DocumentSpan
sourceSpan, ClassifiedSpansAndHighlightSpan? classifiedSpans)
72
internal SourceReferenceItem(DefinitionItem definition,
DocumentSpan
sourceSpan, ClassifiedSpansAndHighlightSpan? classifiedSpans, SymbolUsageInfo symbolUsageInfo)
77
internal SourceReferenceItem(DefinitionItem definition,
DocumentSpan
sourceSpan, ClassifiedSpansAndHighlightSpan? classifiedSpans, SymbolUsageInfo symbolUsageInfo, ImmutableArray<(string key, string value)> additionalProperties)
Navigation\IDefinitionLocationService.cs (2)
42
internal sealed record DefinitionLocation(INavigableLocation Location,
DocumentSpan
Span);
64
DocumentSpan
GetDocumentSpan()
Rename\SymbolicRenameInfo.cs (3)
36
public ImmutableArray<
DocumentSpan
> DocumentSpans { get; }
49
ImmutableArray<
DocumentSpan
> documentSpans)
212
using var _ = ArrayBuilder<
DocumentSpan
>.GetInstance(out var documentSpans);
SemanticSearch\SearchExceptionDefinitionItem.cs (1)
15
internal sealed class SearchExceptionDefinitionItem(string message, ImmutableArray<TaggedText> exceptionTypeName, ImmutableArray<TaggedText> stackTrace,
DocumentSpan
documentSpan)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\References\FindUsagesLSPContext.cs (1)
148
var
documentSpan = reference.SourceSpan;