예제 #1
0
        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);
        }
예제 #3
0
 public async Task <SyntaxNode> SingleFirstPass(Document document)
 {
     return(await CSharpConverter.ConvertCompilationTree(document, _vbViewOfCsSymbols, _vbReferenceProject));
 }