Skip to content

Commit

Permalink
fix: handle class static block delclaration
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Jul 9, 2024
1 parent 051d7e5 commit 367f9bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,10 @@ export function checkNode(node: ts.Node | undefined, context: FileContext): void
checkNode(node.type, context)
return
}
if (ts.isClassStaticBlockDeclaration(node)) {
checkNode(node.body, context)
return
}
const { line, character } = ts.getLineAndCharacterOfPosition(context.sourceFile, node.getStart(context.sourceFile))
console.log(`warning: unhandled node kind: ${node.kind} in ${context.file}:${line + 1}:${character + 1}`)
}
Expand Down

0 comments on commit 367f9bd

Please sign in to comment.