-
Notifications
You must be signed in to change notification settings - Fork 20
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
Cursor/Node API suggestions #583
Comments
Will do
This is binding analysis, which is coming
Will do.
some_rule_node::cursor().find_matching(...);
some_rule_node::cursor().find_rule_matching(...);
some_rule_node::cursor().find_rule_with_kind(kind);
some_rule_node::cursor().find_token_matching(...);
some_rule_node::cursor().find_token_with_kind(kind); which only requires the addition of |
About this point
Could you tell me if you're dealing with |
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 tokensGiven some RuleNode, find children with a predicate or matching a kind
The text was updated successfully, but these errors were encountered: