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

Add rowan::api::SyntaxNode::new_root_mut() #159

Merged
merged 1 commit into from
May 10, 2024

Conversation

jelmer
Copy link
Contributor

@jelmer jelmer commented Oct 4, 2023

Add rowan::api::SyntaxNode::new_root_mut()

This is a convenience method that allows creating a new mutable root node,
consistent with what exists on the cursor::SyntaxNode API.

Without this, I find myself using SyntaxNode::new_root(...).clone_for_update()
quite a lot.

@jelmer jelmer marked this pull request as ready for review October 4, 2023 14:32
@jelmer
Copy link
Contributor Author

jelmer commented May 9, 2024

@Veykril any opinions on this PR? I'm keen to get this merged since I use Rowan in various projects.

@Veykril Veykril merged commit 62bd09b into rust-analyzer:master May 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants