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

ArrowFunction vs Function #22

Closed
fuhrmanator opened this issue May 23, 2024 · 2 comments
Closed

ArrowFunction vs Function #22

fuhrmanator opened this issue May 23, 2024 · 2 comments

Comments

@fuhrmanator
Copy link
Owner

Should the metamodel distinguish between a Function and an ArrowFunction?

ts-morph certainly does (currently the importer doesn't find ArrowFunction as far as I know).

Compared to Functions, ArrowFunctions don't have a name, and there's a "this" context/binding (not sure if it's important in a MM).

@fuhrmanator fuhrmanator mentioned this issue May 23, 2024
2 tasks
@NicolasAnquetil
Copy link

if ts-morph distinguishes them, then it is probably a good idea to do it also in the meta-model

@fuhrmanator
Copy link
Owner Author

fixed in #18

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

No branches or pull requests

2 participants