public override VBasic.VisualBasicSyntaxNode VisitQualifiedCref(CSSyntax.QualifiedCrefSyntax QualifiedCref) { var IdentifierOrTypeName = QualifiedCref.Container.Accept(this); VBSyntax.CrefReferenceSyntax Value = (VBSyntax.CrefReferenceSyntax)QualifiedCref.Member.Accept(this); VBSyntax.NameSyntax Identifier; Identifier = IdentifierOrTypeName is VBSyntax.NameSyntax ? (VBSyntax.NameSyntax)IdentifierOrTypeName : VBFactory.IdentifierName(IdentifierOrTypeName.ToString()); var QualifiedNameSyntax = VBFactory.QualifiedName(left: Identifier, VisualBasicSyntaxFactory.DotToken, right: (VBSyntax.SimpleNameSyntax)Value.Name); if (Value.Signature == null) { return(QualifiedNameSyntax); } return(VBFactory.CrefReference(QualifiedNameSyntax, Value.Signature, null)); }
public override VBasic.VisualBasicSyntaxNode VisitIdentifierName(CSSyntax.IdentifierNameSyntax node) { var Identifier = VBFactory.IdentifierName(node.Identifier.ToString()); return(Identifier); }