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)
31return document == null ? null : new DocumentSpan(document, this.SourceSpan);
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (1)
235yield return new UnitTestingDocumentSpan(new DocumentSpan(document, info.Span), mappedSpan);
FindUsages\AbstractFindUsagesService.ProgressAdapter.cs (1)
39var documentSpan = new DocumentSpan(document, span);
FindUsages\DefinitionItemFactory.cs (1)
323var documentSpan = new DocumentSpan(document, sourceSpan);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (2)
265sourceSpans: [new DocumentSpan(destinationDocument, import.DeclaringSyntaxReference!.Span)], 726sourceSpans: [new DocumentSpan(document, location.SourceSpan)],
Navigation\IDefinitionLocationService.cs (2)
57var navigableItem = await new DocumentSpan(firstItem.Value.document, firstItem.Value.sourceSpan).GetNavigableLocationAsync(cancellationToken).ConfigureAwait(false); 81return new DocumentSpan(document, TextSpan.FromBounds(startPosition, endPosition));
Rename\SymbolicRenameInfo.cs (1)
239documentSpans.Add(new DocumentSpan(sourceDocument, location.SourceSpan));
SemanticSearch\SearchCompilationFailureDefinitionItem.cs (1)
27sourceSpans: queryDocument != null ? [new DocumentSpan(queryDocument, error.Span)] : [],
SemanticSearch\SemanticSearchDefinitionItemFactory.cs (1)
72sourceSpans: [new DocumentSpan(document, span)],