13 references to DocumentSpan
Microsoft.CodeAnalysis.Features (13)
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 (1)
323
var documentSpan = new
DocumentSpan
(document, sourceSpan);
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)],