about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-09-27 05:44:11 +0000
committerbors <bors@rust-lang.org>2024-09-27 05:44:11 +0000
commit0d70f9f0dd77a16ffe0a1fc0672efd7603eb6cb8 (patch)
tree88cb59308090ec08c86e5eba600bc3879ea8f9a9 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent5fcfd95dbf7ad63b9c3ddd9f45590616a891bce8 (diff)
parentd6d1b4af8a7b8c111a9bfc55f4773b07d186203e (diff)
downloadrust-0d70f9f0dd77a16ffe0a1fc0672efd7603eb6cb8.tar.gz
rust-0d70f9f0dd77a16ffe0a1fc0672efd7603eb6cb8.zip
Auto merge of #18196 - DropDemBits:sed-syntax-factory, r=Veykril
internal: Add `SyntaxFactory` to ease generating nodes with syntax mappings

Part of [#​15710](https://github.com/rust-lang/rust-analyzer/issues/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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions