Skip to content

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

@mattpardee

Description

@mattpardee

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] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions