public SyntaxTree SingleFirstPass(Compilation sourceCompilation, SyntaxTree tree)
        {
            var converted     = CSharpConverter.ConvertCompilationTree((CSharpCompilation)sourceCompilation, (CSharpSyntaxTree)tree);
            var convertedTree = VBSyntaxFactory.SyntaxTree(converted);

            return(convertedTree);
        }
        public async Task <Document> SingleFirstPass(Document document)
        {
            var convertedTree = await CSharpConverter.ConvertCompilationTree(document);

            var convertedDocument = _convertedVbProject.AddDocument(document.FilePath, convertedTree);

            _convertedVbProject = convertedDocument.Project;
            return(convertedDocument);
        }
 public async Task <SyntaxNode> SingleFirstPass(Document document)
 {
     return(await CSharpConverter.ConvertCompilationTree(document, _vbViewOfCsSymbols, _vbReferenceProject));
 }