You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…kril
internal: Add `SyntaxFactory` to ease generating nodes with syntax mappings
Part of [#15710](rust-lang/rust-analyzer#15710)
Instead of requiring passing a `&mut SyntaxEditor` to every make constructor to generate mappings, we instead wrap that logic in `SyntaxFactory`, and afterwards add all the mappings to the `SyntaxEditor`.
Includes an example of using `SyntaxEditor` & `SyntaxFactory` in the `extract_variable` assist.
std::ptr::RawPtr is already there.
The text was updated successfully, but these errors were encountered: