1 instantiation of QuickInfoItem
Microsoft.CodeAnalysis.Features (1)
QuickInfo\QuickInfoItem.cs (1)
51return new QuickInfoItem(span, tags, sections, relatedSpans);
116 references to QuickInfoItem
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (23)
QuickInfo\DiagnosticAnalyzerQuickInfoSourceTests.cs (4)
185var info = await GetQuickinfo(workspace, document, position); 193private static async Task<QuickInfoItem> GetQuickinfo(TestWorkspace workspace, Document document, int position) 197var info = await provider.GetQuickInfoAsync(new QuickInfoContext(document, position, SymbolDescriptionOptions.Default, CancellationToken.None)); 203var info = await GetQuickinfo(workspace, document, position);
QuickInfo\SemanticQuickInfoSourceTests.cs (18)
29private static async Task TestWithOptionsAsync(CSharpParseOptions options, string markup, params Action<QuickInfoItem>[] expectedResults) 35private static async Task TestWithOptionsAsync(CSharpCompilationOptions options, string markup, params Action<QuickInfoItem>[] expectedResults) 41private static async Task TestWithOptionsAsync(TestWorkspace workspace, params Action<QuickInfoItem>[] expectedResults) 68private static async Task TestWithOptionsAsync(Document document, QuickInfoService service, int position, Action<QuickInfoItem>[] expectedResults) 70var info = await service.GetQuickInfoAsync(document, position, SymbolDescriptionOptions.Default, CancellationToken.None); 87private static async Task VerifyWithMscorlib45Async(string markup, Action<QuickInfoItem>[] expectedResults) 107var info = await service.GetQuickInfoAsync(document, position, SymbolDescriptionOptions.Default, CancellationToken.None); 124protected override async Task TestAsync(string markup, params Action<QuickInfoItem>[] expectedResults) 130private async Task TestWithUsingsAsync(string markup, params Action<QuickInfoItem>[] expectedResults) 141private Task TestInClassAsync(string markup, params Action<QuickInfoItem>[] expectedResults) 147private Task TestInMethodAsync(string markup, params Action<QuickInfoItem>[] expectedResults) 153private Task TestInMethodAsync(string markup, string extraSource, params Action<QuickInfoItem>[] expectedResults) 163params Action<QuickInfoItem>[] expectedResults) 180params Action<QuickInfoItem>[] expectedResults) 205params Action<QuickInfoItem>[] expectedResults) 231params Action<QuickInfoItem>[] expectedResults) 248private static async Task VerifyWithReferenceWorkerAsync(string xmlString, params Action<QuickInfoItem>[] expectedResults) 259var info = await service.GetQuickInfoAsync(document, position, SymbolDescriptionOptions.Default, CancellationToken.None);
QuickInfo\SyntacticQuickInfoSourceTests.cs (1)
561var info = await provider.GetQuickInfoAsync(new QuickInfoContext(document, position, SymbolDescriptionOptions.Default, CancellationToken.None));
Microsoft.CodeAnalysis.CSharp.Features (16)
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProvider.cs (8)
39protected override async Task<QuickInfoItem?> BuildQuickInfoAsync( 48protected override Task<QuickInfoItem?> BuildQuickInfoAsync( 54return Task.FromResult<QuickInfoItem?>(null); 57private QuickInfoItem? GetQuickinfoForPragmaWarning(Document document, SyntaxToken token) 96private async Task<QuickInfoItem?> GetQuickInfoForSuppressMessageAttributeAsync( 138private QuickInfoItem? GetQuickInfoFromSupportedDiagnosticsOfProjectAnalyzers(Document document, 153private static QuickInfoItem CreateQuickInfo(TextSpan location, DiagnosticDescriptor descriptor, 164return QuickInfoItem.Create(location, sections: new[]
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (8)
30protected override Task<QuickInfoItem?> BuildQuickInfoAsync( 35protected override Task<QuickInfoItem?> BuildQuickInfoAsync( 40private static QuickInfoItem? BuildQuickInfo(SyntaxToken token, CancellationToken cancellationToken) 58private static QuickInfoItem? BuildQuickInfoCloseBrace(SyntaxToken token) 94return QuickInfoItem.Create(token.Span, relatedSpans: spans); 144private static QuickInfoItem? BuildQuickInfoDirectives(SyntaxToken token, CancellationToken cancellationToken) 152return QuickInfoItem.Create(token.Span, relatedSpans: ImmutableArray.Create(regionStart.Span)); 162return QuickInfoItem.Create(token.Span, relatedSpans: matchesBefore);
Microsoft.CodeAnalysis.EditorFeatures (8)
IntelliSense\QuickInfo\IntellisenseQuickInfoBuilder.cs (4)
22using CodeAnalysisQuickInfoItem = Microsoft.CodeAnalysis.QuickInfo.QuickInfoItem; 30CodeAnalysisQuickInfoItem quickInfoItem, 145CodeAnalysisQuickInfoItem quickInfoItem, 168CodeAnalysisQuickInfoItem quickInfoItem,
IntelliSense\QuickInfo\Model.cs (2)
18public QuickInfoItem Item { get; } 23QuickInfoItem item,
IntelliSense\QuickInfo\QuickInfoSourceProvider.QuickInfoSource.cs (1)
90var item = await service.GetQuickInfoAsync(document, triggerPoint.Value, options, cancellationToken).ConfigureAwait(false);
LanguageServer\EditorHoverCreationService.cs (1)
33Document document, QuickInfoItem info, ClientCapabilities clientCapabilities, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (15)
QuickInfo\AbstractSemanticQuickInfoSourceTests.cs (15)
39internal static Action<QuickInfoItem> SymbolGlyph(Glyph expectedGlyph) 47internal static Action<QuickInfoItem> WarningGlyph(Glyph expectedGlyph) 72protected static Action<QuickInfoItem> MainDescription( 79protected static Action<QuickInfoItem> Documentation( 86protected static Action<QuickInfoItem> Remarks( 93protected static Action<QuickInfoItem> Returns( 100protected static Action<QuickInfoItem> Value( 107protected static Action<QuickInfoItem> TypeParameterMap( 114protected static Action<QuickInfoItem> AnonymousTypes( 121protected static Action<QuickInfoItem> NullabilityAnalysis( 128protected static Action<QuickInfoItem> NoTypeParameterMap 131protected static Action<QuickInfoItem> Usage(string expectedText, bool expectsWarningGlyph = false) 148protected static Action<QuickInfoItem> Exceptions(string expectedText) 151protected static Action<QuickInfoItem> Captures(string capturesText) 162protected abstract Task TestAsync(string markup, params Action<QuickInfoItem>[] expectedResults);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (5)
IntelliSense\AbstractIntellisenseQuickInfoBuilderTests.vb (1)
28Protected Shared Async Function GetQuickInfoItemAsync(quickInfoItem As QuickInfoItem) As Task(Of VSQuickInfoItem)
IntelliSense\IntellisenseQuickInfoBuilderTests.vb (4)
14Imports QuickInfoItem = Microsoft.CodeAnalysis.QuickInfo.QuickInfoItem 25QuickInfoItem.Create( 117QuickInfoItem.Create( 202QuickInfoItem.Create(
Microsoft.CodeAnalysis.Features (29)
QuickInfo\CommonQuickInfoProvider.cs (8)
14protected abstract Task<QuickInfoItem?> BuildQuickInfoAsync(QuickInfoContext context, SyntaxToken token); 15protected abstract Task<QuickInfoItem?> BuildQuickInfoAsync(CommonQuickInfoContext context, SyntaxToken token); 17public override async Task<QuickInfoItem?> GetQuickInfoAsync(QuickInfoContext context) 25var info = await GetQuickInfoAsync(context, token).ConfigureAwait(false); 33public async Task<QuickInfoItem?> GetQuickInfoAsync(CommonQuickInfoContext context) 39var info = await GetQuickInfoAsync(context, token).ConfigureAwait(false); 69private async Task<QuickInfoItem?> GetQuickInfoAsync( 82private async Task<QuickInfoItem?> GetQuickInfoAsync(
QuickInfo\CommonSemanticQuickInfoProvider.cs (3)
22protected override async Task<QuickInfoItem?> BuildQuickInfoAsync( 36protected override async Task<QuickInfoItem?> BuildQuickInfoAsync( 151protected static Task<QuickInfoItem> CreateContentAsync(
QuickInfo\QuickInfoItem.cs (1)
45public static QuickInfoItem Create(
QuickInfo\QuickInfoProvider.cs (4)
10/// A provider that produces <see cref="QuickInfoItem"/>'s. 16/// Gets the <see cref="QuickInfoItem"/> for the position. 18/// <returns>The <see cref="QuickInfoItem"/> or null if no item is available.</returns> 19public abstract Task<QuickInfoItem?> GetQuickInfoAsync(QuickInfoContext context);
QuickInfo\QuickInfoSection.cs (1)
12/// Sections are used to make up a <see cref="QuickInfoItem"/>.
QuickInfo\QuickInfoService.cs (4)
32/// Gets the <see cref="QuickInfoItem"/> associated with position in the document. 34public Task<QuickInfoItem?> GetQuickInfoAsync( 43internal virtual Task<QuickInfoItem?> GetQuickInfoAsync( 49return SpecializedTasks.Null<QuickInfoItem>();
QuickInfo\QuickInfoServiceWithProviders.cs (4)
49internal override async Task<QuickInfoItem?> GetQuickInfoAsync(Document document, int position, SymbolDescriptionOptions options, CancellationToken cancellationToken) 62var info = await provider.GetQuickInfoAsync(context).ConfigureAwait(false); 82internal async Task<QuickInfoItem?> GetQuickInfoAsync(SemanticModel semanticModel, int position, SymbolDescriptionOptions options, CancellationToken cancellationToken) 95var info = await provider.GetQuickInfoAsync(context).ConfigureAwait(false);
QuickInfo\QuickInfoUtilities.cs (4)
24public static Task<QuickInfoItem> CreateQuickInfoItemAsync(SolutionServices services, SemanticModel semanticModel, TextSpan span, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, CancellationToken cancellationToken) 27public static async Task<QuickInfoItem> CreateQuickInfoItemAsync( 52return QuickInfoItem.Create(span, sections: sections.ToImmutable()); 155return QuickInfoItem.Create(span, tags, sections.ToImmutable());
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\Hover\HoverHandler.cs (1)
62var info = await quickInfoService.GetQuickInfoAsync(document, position, options, cancellationToken).ConfigureAwait(false);
Handler\Hover\ILspHoverResultCreationService.cs (3)
21Document document, QuickInfoItem info, ClientCapabilities clientCapabilities, CancellationToken cancellationToken); 33public Task<Hover> CreateHoverAsync(Document document, QuickInfoItem info, ClientCapabilities clientCapabilities, CancellationToken cancellationToken) 36public static async Task<Hover> CreateDefaultHoverAsync(Document document, QuickInfoItem info, ClientCapabilities clientCapabilities, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (8)
QuickInfo\SemanticQuickInfoSourceTests.vb (8)
18Protected Overrides Function TestAsync(markup As String, ParamArray expectedResults() As Action(Of QuickInfoItem)) As Task 22Protected Shared Async Function TestSharedAsync(workspace As TestWorkspace, position As Integer, ParamArray expectedResults() As Action(Of QuickInfoItem)) As Task 42Private Shared Async Function TestSharedAsync(workspace As TestWorkspace, service As QuickInfoService, position As Integer, expectedResults() As Action(Of QuickInfoItem)) As Task 58Private Shared Async Function TestFromXmlAsync(markup As String, ParamArray expectedResults As Action(Of QuickInfoItem)()) As Task 64Private Shared Async Function TestWithReferencesAsync(markup As String, metadataReferences As String(), ParamArray expectedResults() As Action(Of QuickInfoItem)) As Task 74Private Async Function TestWithImportsAsync(markup As String, ParamArray expectedResults() As Action(Of QuickInfoItem)) As Task 84Private Async Function TestInClassAsync(markup As String, ParamArray expectedResults() As Action(Of QuickInfoItem)) As Task 93Private Async Function TestInMethodAsync(markup As String, ParamArray expectedResults() As Action(Of QuickInfoItem)) As Task
Microsoft.CodeAnalysis.VisualBasic.Features (7)
QuickInfo\VisualBasicSemanticQuickInfoProvider.vb (7)
29token As SyntaxToken) As Task(Of QuickInfoItem) 42token As SyntaxToken) As Task(Of QuickInfoItem) 56cancellationToken As CancellationToken) As Task(Of QuickInfoItem) 169cancellationToken As CancellationToken) As Task(Of QuickInfoItem) 196Return QuickInfoItem.Create(token.Span, sections:=ImmutableArray.Create(QuickInfoSection.Create(QuickInfoSectionKinds.Description, ImmutableArray.Create(New TaggedText(TextTags.Text, VBFeaturesResources.Multiple_Types))))) 208cancellationToken As CancellationToken) As QuickInfoItem 238Return QuickInfoItem.Create(
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\LanguageServer\Extensions\SymbolExtensions.cs (1)
58var quickInfo = await QuickInfoUtilities.CreateQuickInfoItemAsync(services, semanticModel, span: default, ImmutableArray.Create(symbol), options, cancellationToken).ConfigureAwait(false);