diff options
| author | bors <bors@rust-lang.org> | 2024-09-27 05:44:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-09-27 05:44:11 +0000 |
| commit | 0d70f9f0dd77a16ffe0a1fc0672efd7603eb6cb8 (patch) | |
| tree | 88cb59308090ec08c86e5eba600bc3879ea8f9a9 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 5fcfd95dbf7ad63b9c3ddd9f45590616a891bce8 (diff) | |
| parent | d6d1b4af8a7b8c111a9bfc55f4773b07d186203e (diff) | |
| download | rust-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
