Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
 public async Task <SyntaxNode> SingleFirstPass(Document document)
 {
     return(await VisualBasicConverter.ConvertCompilationTree(document, _csharpViewOfVbSymbols, _csharpReferenceProject));
 }