1 instantiation of QuickInfoItem
Microsoft.CodeAnalysis.Features (1)
QuickInfo\QuickInfoItem.cs (1)
65return new QuickInfoItem(span, tags, sections, relatedSpans, onTheFlyDocsInfo);
116 references to QuickInfoItem
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (25)
QuickInfo\DiagnosticAnalyzerQuickInfoSourceTests.cs (4)
167var info = await GetQuickinfo(workspace, document, position); 175private static async Task<QuickInfoItem> GetQuickinfo(EditorTestWorkspace workspace, Document document, int position) 179var info = await provider.GetQuickInfoAsync(new QuickInfoContext(document, position, SymbolDescriptionOptions.Default, CancellationToken.None)); 185var info = await GetQuickinfo(workspace, document, position);
QuickInfo\SemanticQuickInfoSourceTests.cs (20)
31params Action<QuickInfoItem>[] expectedResults) 40params Action<QuickInfoItem>[] expectedResults) 46private static async Task TestWithOptionsAsync(EditorTestWorkspace workspace, params Action<QuickInfoItem>[] expectedResults) 73private static async Task TestWithOptionsAsync(Document document, QuickInfoService service, int position, Action<QuickInfoItem>[] expectedResults) 75var info = await service.GetQuickInfoAsync(document, position, SymbolDescriptionOptions.Default, CancellationToken.None); 94params Action<QuickInfoItem>[] expectedResults) 111params Action<QuickInfoItem>[] expectedResults) 126private static async Task VerifyWithMarkupAsync(string xmlString, Action<QuickInfoItem>[] expectedResults) 137var info = await service.GetQuickInfoAsync(document, position, SymbolDescriptionOptions.Default, CancellationToken.None); 156params Action<QuickInfoItem>[] expectedResults) 164params Action<QuickInfoItem>[] expectedResults) 179params Action<QuickInfoItem>[] expectedResults) 187params Action<QuickInfoItem>[] expectedResults) 196params Action<QuickInfoItem>[] expectedResults) 207params Action<QuickInfoItem>[] expectedResults) 224params Action<QuickInfoItem>[] expectedResults) 250params Action<QuickInfoItem>[] expectedResults) 277params Action<QuickInfoItem>[] expectedResults) 295private static async Task VerifyWithReferenceWorkerAsync(string xmlString, params Action<QuickInfoItem>[] expectedResults) 306var info = await service.GetQuickInfoAsync(document, position, SymbolDescriptionOptions.Default, CancellationToken.None);
QuickInfo\SyntacticQuickInfoSourceTests.cs (1)
570var info = await provider.GetQuickInfoAsync(new QuickInfoContext(document, position, SymbolDescriptionOptions.Default, CancellationToken.None));
Microsoft.CodeAnalysis.CSharp.Features (16)
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProvider.cs (8)
32protected override async Task<QuickInfoItem?> BuildQuickInfoAsync( 41protected override Task<QuickInfoItem?> BuildQuickInfoAsync( 47return Task.FromResult<QuickInfoItem?>(null); 50private QuickInfoItem? GetQuickinfoForPragmaWarning(Document document, SyntaxToken token) 89private async Task<QuickInfoItem?> GetQuickInfoForSuppressMessageAttributeAsync( 131private QuickInfoItem? GetQuickInfoFromSupportedDiagnosticsOfProjectAnalyzers(Document document, 146private static QuickInfoItem CreateQuickInfo(TextSpan location, DiagnosticDescriptor descriptor, 157return QuickInfoItem.Create(location, sections:
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (8)
26protected override Task<QuickInfoItem?> BuildQuickInfoAsync( 31protected override Task<QuickInfoItem?> BuildQuickInfoAsync( 36private static QuickInfoItem? BuildQuickInfo(SyntaxToken token, CancellationToken cancellationToken) 54private static QuickInfoItem? BuildQuickInfoCloseBrace(SyntaxToken token) 90return QuickInfoItem.Create(token.Span, relatedSpans: spans); 135private static QuickInfoItem? BuildQuickInfoDirectives(SyntaxToken token, CancellationToken cancellationToken) 143return QuickInfoItem.Create(token.Span, relatedSpans: [regionStart.Span]); 152return QuickInfoItem.Create(token.Span, relatedSpans: matchesBefore);
Microsoft.CodeAnalysis.EditorFeatures (5)
IntelliSense\QuickInfo\IntellisenseQuickInfoBuilder.cs (2)
11using CodeAnalysisQuickInfoItem = Microsoft.CodeAnalysis.QuickInfo.QuickInfoItem; 20CodeAnalysisQuickInfoItem quickInfoItem,
IntelliSense\QuickInfo\Model.cs (2)
15public QuickInfoItem Item { get; } 20QuickInfoItem item,
IntelliSense\QuickInfo\QuickInfoSourceProvider.QuickInfoSource.cs (1)
76var item = await service.GetQuickInfoAsync(document, triggerPoint.Value, options, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (15)
QuickInfo\AbstractSemanticQuickInfoSourceTests.cs (15)
38internal static Action<QuickInfoItem> SymbolGlyph(Glyph expectedGlyph) 41internal static Action<QuickInfoItem> WarningGlyph(Glyph expectedGlyph) 66protected static Action<QuickInfoItem> MainDescription( 73protected static Action<QuickInfoItem> Documentation( 80protected static Action<QuickInfoItem> Remarks( 87protected static Action<QuickInfoItem> Returns( 94protected static Action<QuickInfoItem> Value( 101protected static Action<QuickInfoItem> TypeParameterMap( 108protected static Action<QuickInfoItem> AnonymousTypes( 115protected static Action<QuickInfoItem> NullabilityAnalysis( 122protected static Action<QuickInfoItem> NoTypeParameterMap 125protected static Action<QuickInfoItem> Usage(string expectedText, bool expectsWarningGlyph = false) 142protected static Action<QuickInfoItem> Exceptions(string expectedText) 145protected static Action<QuickInfoItem> Captures(string capturesText) 156protected abstract Task TestAsync(string markup, params Action<QuickInfoItem>[] expectedResults);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (5)
IntelliSense\AbstractIntellisenseQuickInfoBuilderTests.vb (1)
23Protected 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.ExternalAccess.Xaml (2)
External\ConversionHelpers.cs (1)
19public static (string content, bool isMarkdown) CreateMarkdownContent(TextDocument document, QuickInfoItem info, XamlRequestContext context)
Internal\DescriptionService.cs (1)
68var quickInfo = await QuickInfoUtilities.CreateQuickInfoItemAsync(services, semanticModel, span: default, ImmutableArray.Create(symbol), options, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (37)
QuickInfo\AbstractEmbeddedLanguageQuickInfoProvider.cs (3)
29protected override async Task<QuickInfoItem?> BuildQuickInfoAsync(QuickInfoContext context, SyntaxToken token) 40var result = quickInfoProvider.Value.GetQuickInfo(context, semanticModel, token); 48protected override Task<QuickInfoItem?> BuildQuickInfoAsync(CommonQuickInfoContext context, SyntaxToken token)
QuickInfo\CommonQuickInfoProvider.cs (8)
15protected abstract Task<QuickInfoItem?> BuildQuickInfoAsync(QuickInfoContext context, SyntaxToken token); 16protected abstract Task<QuickInfoItem?> BuildQuickInfoAsync(CommonQuickInfoContext context, SyntaxToken token); 18public override async Task<QuickInfoItem?> GetQuickInfoAsync(QuickInfoContext context) 26var info = await GetQuickInfoAsync(context, token).ConfigureAwait(false); 34public async Task<QuickInfoItem?> GetQuickInfoAsync(CommonQuickInfoContext context) 40var info = await GetQuickInfoAsync(context, token).ConfigureAwait(false); 70private async Task<QuickInfoItem?> GetQuickInfoAsync( 83private async Task<QuickInfoItem?> GetQuickInfoAsync(
QuickInfo\CommonSemanticQuickInfoProvider.cs (3)
25protected override async Task<QuickInfoItem?> BuildQuickInfoAsync( 40protected override async Task<QuickInfoItem?> BuildQuickInfoAsync( 156protected static Task<QuickInfoItem> CreateContentAsync(
QuickInfo\IEmbeddedLanguageQuickInfoProvider.cs (3)
12/// Gets the <see cref="QuickInfoItem"/> for the position in an embedded language. 14/// <returns>The <see cref="QuickInfoItem"/> or null if no item is available.</returns> 15QuickInfoItem? GetQuickInfo(
QuickInfo\Presentation\QuickInfoContentBuilder.cs (3)
34QuickInfoItem quickInfoItem, 188private static (Glyph symbolGlyph, bool addWarningGlyph) ComputeGlyphs(QuickInfoItem quickInfoItem) 214QuickInfoItem quickInfoItem,
QuickInfo\QuickInfoItem.cs (2)
49public static QuickInfoItem Create( 58internal 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 (2)
43internal override async Task<QuickInfoItem?> GetQuickInfoAsync(Document document, int position, SymbolDescriptionOptions options, CancellationToken cancellationToken) 50var info = await extensionManager.PerformFunctionAsync(
QuickInfo\QuickInfoUtilities.cs (4)
21public static Task<QuickInfoItem> CreateQuickInfoItemAsync(SolutionServices services, SemanticModel semanticModel, TextSpan span, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, CancellationToken cancellationToken) 24public static async Task<QuickInfoItem> CreateQuickInfoItemAsync( 50return QuickInfoItem.Create(span, sections: sections.ToImmutable()); 147return QuickInfoItem.Create(span, tags, sections.ToImmutable(), relatedSpans: default, onTheFlyDocsInfo);
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Handler\Hover\HoverHandler.cs (3)
97var info = await quickInfoService.GetQuickInfoAsync(document, position, options, cancellationToken).ConfigureAwait(false); 107Document document, QuickInfoItem info, SymbolDescriptionOptions options, CancellationToken cancellationToken) 133TextDocument document, QuickInfoItem info, bool supportsMarkdown, CancellationToken cancellationToken)
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)
55var quickInfo = await QuickInfoUtilities.CreateQuickInfoItemAsync(services, semanticModel, span: default, [symbol], options, cancellationToken).ConfigureAwait(false);