15 instantiations of DocumentSpan
Microsoft.CodeAnalysis.Features (15)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (2)
328
? new
DocumentSpan
(document, token.Span)
329
: new
DocumentSpan
(document, location.SourceSpan);
DocumentIdSpan.cs (1)
31
return document == null ? null : new
DocumentSpan
(document, this.SourceSpan);
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (1)
235
yield return new UnitTestingDocumentSpan(new
DocumentSpan
(document, info.Span), mappedSpan);
FindUsages\AbstractFindUsagesService.ProgressAdapter.cs (1)
39
var documentSpan = new
DocumentSpan
(document, span);
FindUsages\DefinitionItemFactory.cs (2)
251
source.Add(new
DocumentSpan
(document, location.SourceSpan, isGeneratedCode));
323
var documentSpan = new
DocumentSpan
(document, sourceSpan);
FindUsages\IRemoteFindUsagesService.cs (1)
182
return new
DocumentSpan
(document, SourceSpan, IsGeneratedCode);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (2)
265
sourceSpans: [new
DocumentSpan
(destinationDocument, import.DeclaringSyntaxReference!.Span)],
726
sourceSpans: [new
DocumentSpan
(document, location.SourceSpan)],
Navigation\IDefinitionLocationService.cs (2)
57
var navigableItem = await new
DocumentSpan
(firstItem.Value.document, firstItem.Value.sourceSpan).GetNavigableLocationAsync(cancellationToken).ConfigureAwait(false);
81
return new
DocumentSpan
(document, TextSpan.FromBounds(startPosition, endPosition));
Rename\SymbolicRenameInfo.cs (1)
239
documentSpans.Add(new
DocumentSpan
(sourceDocument, location.SourceSpan));
SemanticSearch\SearchCompilationFailureDefinitionItem.cs (1)
27
sourceSpans: queryDocument != null ? [new
DocumentSpan
(queryDocument, error.Span)] : [],
SemanticSearch\SemanticSearchDefinitionItemFactory.cs (1)
72
sourceSpans: [new
DocumentSpan
(document, span)],
41 references to DocumentSpan
Microsoft.CodeAnalysis.Features (41)
ClassifiedSpansAndHighlightSpanFactory.cs (1)
19
DocumentSpan
documentSpan, ClassifiedSpansAndHighlightSpan? classifiedSpans, ClassificationOptions options, CancellationToken cancellationToken)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (3)
219
var spanSet = new HashSet<
DocumentSpan
>();
299
private static async Task AddLocationSpanAsync(Location location, Solution solution, HashSet<
DocumentSpan
> spanSet, MultiDictionary<Document, HighlightSpan> tagList, HighlightSpanKind kind, CancellationToken cancellationToken)
309
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)
39
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)
80
using var converted = TemporaryArray<
DocumentSpan
>.Empty;
FindUsages\DefinitionItemFactory.cs (5)
99
ImmutableArray<
DocumentSpan
> sourceLocations,
228
private static async Task<ImmutableArray<
DocumentSpan
>> GetSourceLocationsAsync(
242
using var source = TemporaryArray<
DocumentSpan
>.Empty;
258
private static ValueTask<ImmutableArray<ClassifiedSpansAndHighlightSpan?>> ClassifyDocumentSpansAsync(OptionsProvider<ClassificationOptions> optionsProvider, ImmutableArray<
DocumentSpan
> unclassifiedSpans, CancellationToken cancellationToken)
323
var
documentSpan = new DocumentSpan(document, sourceSpan);
FindUsages\IRemoteFindUsagesService.cs (2)
174
public static SerializableDocumentSpan Dehydrate(
DocumentSpan
documentSpan)
177
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)
37
public ImmutableArray<
DocumentSpan
> DocumentSpans { get; }
50
ImmutableArray<
DocumentSpan
> documentSpans)
210
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)