public SyntaxTree SingleFirstPass(Compilation sourceCompilation, SyntaxTree tree) { _sourceCompilation = sourceCompilation; var converted = VisualBasicConverter.ConvertCompilationTree((VisualBasicCompilation)sourceCompilation, (VisualBasicSyntaxTree)tree); var convertedTree = SyntaxFactory.SyntaxTree(converted); _firstPassResults.Add(convertedTree); return(convertedTree); }
public async Task <Document> SingleFirstPass(Document document) { var converted = await VisualBasicConverter.ConvertCompilationTree(document, _csharpViewOfVbSymbols, _csharpReferenceProject); var convertedDocument = _convertedCsProject.AddDocument(document.FilePath, converted); _convertedCsProject = convertedDocument.Project; return(convertedDocument); }
public async Task <SyntaxNode> SingleFirstPass(Document document) { return(await VisualBasicConverter.ConvertCompilationTree(document, _csharpViewOfVbSymbols, _csharpReferenceProject)); }