Exemplo n.º 1
0
    public override VBasic.VisualBasicSyntaxNode VisitNameMemberCref(CSSyntax.NameMemberCrefSyntax node)
    {
        var Name           = node.Name.Accept(this);
        var CrefParameters = new List <VBSyntax.CrefSignaturePartSyntax>();

        VBSyntax.CrefSignatureSyntax Signature = null;
        if (node.Parameters != null)
        {
            foreach (CSSyntax.CrefParameterSyntax p in node.Parameters.Parameters)
            {
                VBSyntax.TypeSyntax TypeSyntax1 = (VBSyntax.TypeSyntax)p.Accept(this);
                CrefParameters.Add(VBFactory.CrefSignaturePart(modifier: default(SyntaxToken), TypeSyntax1));
            }
            Signature = VBFactory.CrefSignature(CrefParameters.ToArray());
        }
        return(VBFactory.CrefReference((VBSyntax.TypeSyntax)Name, signature: Signature, asClause: null));
    }