Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 19, 2024
1 parent c3b4d9a commit e4b7b9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/oxc_traverse/scripts/lib/walk.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ function generateWalkForStruct(type, types) {

// TODO: Type names shouldn't be hard-coded here. They should be represented in attrs in AST.
let isBlockScope = [
'Program', 'BlockStatement', 'Function', 'ArrowFunctionExpression', 'StaticBlock',
'Program',
'BlockStatement',
'Function',
'ArrowFunctionExpression',
'StaticBlock',
'TSModuleDeclaration',
].includes(type.name);
if (isBlockScope) {
Expand Down

0 comments on commit e4b7b9e

Please sign in to comment.