Skip to content

Added support for class methods & constructors, closes #21#28

Open
almost-jay wants to merge 1 commit intowhyboris:mainfrom
almost-jay:main
Open

Added support for class methods & constructors, closes #21#28
almost-jay wants to merge 1 commit intowhyboris:mainfrom
almost-jay:main

Conversation

@almost-jay
Copy link
Copy Markdown

added support for class methods, including constructors, by adding a new branch to extract.ts which handles .isConstructorDeclaration(), .isCallExpression(), etc. Also changed node.getChildAt(0, sourceFile) to use node.expression, because it seemed cleaner and was necessary to parse classes properly

Have only tested this on three projects so it might have bugs I haven't noticed...

@whyboris
Copy link
Copy Markdown
Owner

Thank you @almost-jay for the contribution! 🙇‍♂️

I'm hoping to get back to coding & merging PRs in spring of 2026 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants