Rust: integrate Rust Analyzer's Semantic module into extractor

This commit is contained in:
Arthur Baars
2024-09-24 10:12:55 +02:00
parent 6ede20cccc
commit cad2b74137
7 changed files with 176 additions and 62 deletions

View File

@@ -428,7 +428,7 @@ use ra_ap_syntax::ast::{{
}};
use ra_ap_syntax::{{ast, AstNode}};
impl Translator {{
impl Translator<'_> {{
fn emit_else_branch(&mut self, node: ast::ElseBranch) -> Label<generated::Expr> {{
match node {{
ast::ElseBranch::IfExpr(inner) => self.emit_if_expr(inner).into(),