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

Is There a ts-morph API Function to Retrieve the Next Property in a Sequence? #1500

Open
jon9090 opened this issue Feb 3, 2024 · 0 comments

Comments

@jon9090
Copy link

jon9090 commented Feb 3, 2024

Apologies, it's not a bug; rather, I have an inquiry.

Is there an API function in ts-morph for retrieving the next property in the sequence foo.bar.baz? Specifically, I am positioned at bar, and I would like to obtain the subsequent property, which in this example is baz but could also be ['baz'].

Currently, I examine the AST tree by checking the parent and child relationships to determine the next property, but I'm curious if ts-morph offers a built-in solution for this.

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

1 participant