Fix scope analysis of template literals

This commit is contained in:
Andrew Morris
2023-02-28 13:49:04 +11:00
parent cf2a54d332
commit 6f8afdc7cc

View File

@@ -834,8 +834,14 @@ impl ScopeAnalysis {
Expr::Paren(paren) => {
self.expr(scope, &paren.expr);
}
Expr::Tpl(_) => {}
Expr::TaggedTpl(_) => {}
Expr::Tpl(tpl) => {
for elem in &tpl.exprs {
self.expr(scope, elem);
}
}
Expr::TaggedTpl(_) => {
// TODO (diagnostic emitted elsewhere)
}
Expr::Arrow(arrow) => {
self.arrow(scope, arrow);
}