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

Feature request: query by character position (range) #34

Open
mattpardee opened this issue May 1, 2017 · 1 comment
Open

Feature request: query by character position (range) #34

mattpardee opened this issue May 1, 2017 · 1 comment

Comments

@mattpardee
Copy link

I'd love to tell someone what something is where their cursor is. Is it possible to query by "range"? For example, I could pass tree.atPosition(48) and it would return

Node {
       type: 'CallExpression',
       start: 47,
       end: 62,
       range: [Object],
       callee: [Object],
       arguments: [Object] }
@mattpardee
Copy link
Author

Great tool by the way, thank you for building it!

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