Exemplo n.º 1
0
        protected override QuickInfoModel CreateExpectedModel(SemanticModel semanticModel)
        {
            var syntaxTree = semanticModel.SyntaxTree;
            var syntax     = syntaxTree.Root.DescendantNodes().OfType <NullIfExpressionSyntax>().Single();
            var span       = syntax.NullIfKeyword.Span;
            var markup     = SymbolMarkup.ForNullIfSymbol();

            return(new QuickInfoModel(semanticModel, span, Glyph.Function, markup));
        }
 internal static SignatureItem GetNullIfSignatureItem()
 {
     return(SymbolMarkup.ForNullIfSymbol().ToSignatureItem(IsCommaToken));
 }
Exemplo n.º 3
0
        protected override QuickInfoModel CreateModel(SemanticModel semanticModel, int position, NullIfExpressionSyntax node)
        {
            var keywordSpan = node.NullIfKeyword.Span;

            return(!keywordSpan.ContainsOrTouches(position)
                       ? null
                       : new QuickInfoModel(semanticModel, keywordSpan, Glyph.Function, SymbolMarkup.ForNullIfSymbol()));
        }