protected override async Task <QuickInfoItem?> BuildQuickInfoAsync(
            QuickInfoContext context,
            SyntaxToken token)
        {
            var document = context.Document;

            return(GetQuickinfoForPragmaWarning(document, token) ??
                   (await GetQuickInfoForSuppressMessageAttributeAsync(document, token, context.CancellationToken).ConfigureAwait(false)));
        }
예제 #2
0
 protected override Task <QuickInfoItem?> BuildQuickInfoAsync(
     QuickInfoContext context,
     SyntaxToken token)
 => Task.FromResult(BuildQuickInfo(token, context.CancellationToken));