26 references to DocumentSpan
Microsoft.CodeAnalysis.EditorFeatures (7)
ExternalAccess\VSTypeScript\Api\VSTypeScriptDocumentSpan.cs (1)
20=> new(Document, SourceSpan);
ExternalAccess\VSTypeScript\Api\VSTypeScriptInlineRenameInfo.cs (1)
38=> DefinitionLocations.SelectAsArray(l => new DocumentSpan(l.Document, l.SourceSpan));
Navigation\AbstractDefinitionLocationService.cs (5)
70return location is null ? null : new DefinitionLocation(location, new DocumentSpan(document, controlFlowSpan)); 87return new DefinitionLocation(remappedLocation, new DocumentSpan(document, span)); 110return new DefinitionLocation(location, new DocumentSpan(document, span)); 197documentSpans.Add(new DocumentSpan(document, token.Span)); 273var documentSpan = new DocumentSpan(document, span);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
InheritanceMargin\InheritanceMarginTests.cs (1)
347builder.AddRange(spans.Select(span => new DocumentSpan(document, span)));
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
Editor\InlineRename\FSharpInlineRenameInfo.cs (1)
41=> DefinitionLocations.SelectAsArray(l => new DocumentSpan(l.Document, l.TextSpan));
FSharpDocumentSpan.cs (1)
52return new DocumentSpan(this.Document, this.SourceSpan);
Microsoft.CodeAnalysis.Features (13)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (2)
323? new DocumentSpan(document, token.Span) 324: 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)
319var documentSpan = new DocumentSpan(document, sourceSpan);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (2)
258sourceSpans: [new DocumentSpan(destinationDocument, import.DeclaringSyntaxReference!.Span)], 749sourceSpans: [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)],
Microsoft.VisualStudio.LanguageServices (1)
ValueTracking\ValueTrackedTreeItemViewModel.cs (1)
109var documentSpan = new DocumentSpan(document, item.Span);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchQueryExecutor.cs (1)
49new SearchExceptionDefinitionItem(exception.Message, exception.TypeName, exception.StackTrace, (queryDocument != null) ? new DocumentSpan(queryDocument, exception.Span) : default), cancellationToken);
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
312return new DocumentSpan(document, textSpan);