mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Fix scope analysis of template literals
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user