mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
move more macros to hir
This commit is contained in:
parent
57030f587b
commit
b2fec18098
8 changed files with 127 additions and 85 deletions
|
@ -15,7 +15,7 @@ pub(crate) fn highlight(db: &RootDatabase, file_id: FileId) -> Cancelable<Vec<Hi
|
|||
.descendants()
|
||||
.filter_map(ast::MacroCall::cast)
|
||||
{
|
||||
if let Some((off, exp)) = crate::macros::expand(db, file_id, macro_call) {
|
||||
if let Some((off, exp)) = hir::MacroDef::ast_expand(macro_call) {
|
||||
let mapped_ranges = ra_editor::highlight(exp.syntax().borrowed())
|
||||
.into_iter()
|
||||
.filter_map(|r| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue