public async Task <SeparatedSyntaxList <TOut> > AcceptAsync <TIn, TOut>(SeparatedSyntaxList <TIn> vbNodes, SourceTriviaMapKind sourceTriviaMap) where TIn : VisualBasicSyntaxNode where TOut : CSharpSyntaxNode { var convertedNodes = await vbNodes.SelectAsync(n => ConvertHandledAsync <TOut>(n, sourceTriviaMap)); var convertedSeparators = vbNodes.GetSeparators().Select(s => CS.SyntaxFactory.Token(CS.SyntaxKind.CommaToken) .WithConvertedTrailingTriviaFrom(s, false) .WithSourceMappingFrom(s)); return(CS.SyntaxFactory.SeparatedList(convertedNodes, convertedSeparators)); }