public override SyntaxList <VBSyntax.StatementSyntax> DefaultVisit(SyntaxNode node)
 {
     try {
         var converted = _wrappedVisitor.Visit(node);
         return(converted.WithSourceMappingFrom(node));
     } catch (Exception e) {
         var dummyStatement             = VBasic.SyntaxFactory.EmptyStatement();
         var withVbTrailingErrorComment = dummyStatement.WithVbTrailingErrorComment <VBSyntax.StatementSyntax>((CS.CSharpSyntaxNode)node, e);
         return(VBasic.SyntaxFactory.SingletonList(withVbTrailingErrorComment));
     }
 }
        private SyntaxList <VBSyntax.StatementSyntax> ConvertWithTrivia(SyntaxNode node)
        {
            var convertedNodes = _wrappedVisitor.Visit(node);

            if (!convertedNodes.Any())
            {
                return(convertedNodes);
            }
            // Port trivia to the last statement in the list
            var lastWithConvertedTrivia = _triviaConverter.PortConvertedTrivia(node, convertedNodes.LastOrDefault());

            return(convertedNodes.Replace(convertedNodes.LastOrDefault(), lastWithConvertedTrivia));
        }