AST-query icon indicating copy to clipboard operation
AST-query copied to clipboard

Feature request: query by character position (range)

Open mattpardee opened this issue 8 years ago • 1 comments

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 avatar May 01 '17 07:05 mattpardee

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

mattpardee avatar May 01 '17 07:05 mattpardee