Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(scope-manager): correct decorators(.length) check in ClassVisitor for methods #7334

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/scope-manager/src/referencer/ClassVisitor.ts
Expand Up @@ -192,7 +192,7 @@ class ClassVisitor extends Visitor {
if (
!withMethodDecorators &&
methodNode.kind === 'constructor' &&
this.#classNode.decorators
this.#classNode.decorators.length
) {
withMethodDecorators = true;
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.