protected override QuickInfoModel CreateExpectedModel(SemanticModel semanticModel)
        {
            var syntaxTree = semanticModel.SyntaxTree;
            var syntax     = syntaxTree.Root.DescendantNodes().OfType <CastExpressionSyntax>().Single();
            var span       = syntax.CastKeyword.Span;
            var markup     = SymbolMarkup.ForCastSymbol();

            return(new QuickInfoModel(semanticModel, span, Glyph.Function, markup));
        }
 internal static SignatureItem GetCastSignatureItem()
 {
     return(SymbolMarkup.ForCastSymbol().ToSignatureItem(IsAsKeyword));
 }
        protected override QuickInfoModel CreateModel(SemanticModel semanticModel, int position, CastExpressionSyntax node)
        {
            var keywordSpan = node.CastKeyword.Span;

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