We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
enter_kind
CatchParameter
1 parent 7284b76 commit 1bda570Copy full SHA for 1bda570
crates/oxc_semantic/src/builder.rs
@@ -2078,6 +2078,7 @@ impl<'a> Visit<'a> for SemanticBuilder<'a> {
2078
fn visit_catch_parameter(&mut self, param: &CatchParameter<'a>) {
2079
let kind = AstKind::CatchParameter(self.alloc(param));
2080
self.enter_node(kind);
2081
+ param.bind(self);
2082
self.visit_span(¶m.span);
2083
self.visit_binding_pattern(¶m.pattern);
2084
if let Some(type_annotation) = ¶m.type_annotation {
@@ -2242,9 +2243,6 @@ impl<'a> SemanticBuilder<'a> {
2242
2243
/* cfg */
2244
2245
match kind {
- AstKind::CatchParameter(param) => {
2246
- param.bind(self);
2247
- }
2248
AstKind::TSModuleDeclaration(module_declaration) => {
2249
module_declaration.bind(self);
2250
}
0 commit comments