protected override QuickInfoModel CreateExpectedModel(SemanticModel semanticModel) { var syntaxTree = semanticModel.SyntaxTree; var syntax = syntaxTree.Root.DescendantNodes().OfType <CoalesceExpressionSyntax>().Single(); var span = syntax.CoalesceKeyword.Span; var markup = SymbolMarkup.ForCoalesceSymbol(); return(new QuickInfoModel(semanticModel, span, Glyph.Function, markup)); }
protected override QuickInfoModel CreateModel(SemanticModel semanticModel, int position, CoalesceExpressionSyntax node) { var keywordSpan = node.CoalesceKeyword.Span; return(!keywordSpan.ContainsOrTouches(position) ? null : new QuickInfoModel(semanticModel, keywordSpan, Glyph.Function, SymbolMarkup.ForCoalesceSymbol())); }
internal static SignatureItem GetCoalesceSignatureItem() { return(SymbolMarkup.ForCoalesceSymbol().ToSignatureItem(IsCommaToken)); }