Example #1
0
        protected override SignatureHelpModel GetModel(SemanticModel semanticModel, CoalesceExpressionSyntax node, int position)
        {
            var span           = node.Span;
            var signature      = SignatureHelpExtensions.GetCoalesceSignatureItem();
            var signatures     = new[] { signature };
            var parameterIndex = node.ArgumentList.GetParameterIndex(position);

            return(new SignatureHelpModel(span, signatures, signature, parameterIndex));
        }
 protected override IEnumerable <SignatureItem> GetExpectedSignatures(SemanticModel semanticModel)
 {
     yield return(SignatureHelpExtensions.GetCoalesceSignatureItem());
 }