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

Support unnamed nodes capture #31

Merged
merged 2 commits into from
Jul 24, 2023
Merged

Support unnamed nodes capture #31

merged 2 commits into from
Jul 24, 2023

Conversation

juli1
Copy link
Collaborator

@juli1 juli1 commented Jul 24, 2023

What problem are you trying to solve?

We want to be able to capture unnamed nodes from the tree-sitter queries.

What is your solution?

Our solution is to capture unnamed node in the initial called to map_node. Doing so allows us to capture unnamed node. For all the children of the node captures, we only capture named nodes.

What the reviewer should know

Added a test from the JIRA ticket to make sure this is correctly captured/handled.

kernel/src/analysis/tree_sitter.rs Outdated Show resolved Hide resolved
kernel/src/analysis/tree_sitter.rs Outdated Show resolved Hide resolved
kernel/src/analysis/tree_sitter.rs Outdated Show resolved Hide resolved
@juli1 juli1 requested a review from dastrong July 24, 2023 19:00
@juli1 juli1 merged commit 2b6ba14 into main Jul 24, 2023
@jasonforal jasonforal deleted the juli1/STAT-442 branch November 8, 2024 09:36
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

Successfully merging this pull request may close these issues.

2 participants