Skip to content

Cursor/Node API suggestions #583

@DrakeEvans

Description

@DrakeEvans

Hi I have been using the current version for some tooling and wanted to suggest some API additions.

On RuleNode and TokenNode, it would be nice to be able to create a cursor
Given some TokenNode of kind Identifier, I would like to find the definition in the larger parse tree
Given some RuleNode, I would like a reconstruct() function which generates the original syntax from the children tokens
Given some RuleNode, find children with a predicate or matching a kind

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions