feat: Enable flyimport completions for attributes

This commit is contained in:
Lukas Wirth 2021-12-05 15:57:28 +01:00
parent 9b4ca77572
commit 1f254dd855
8 changed files with 217 additions and 34 deletions

View file

@ -1716,6 +1716,10 @@ impl MacroDef {
MacroKind::Attr | MacroKind::Derive => false,
}
}
pub fn is_attr(&self) -> bool {
matches!(self.kind(), MacroKind::Attr)
}
}
#[derive(Clone, Copy, PartialEq, Eq, Debug, Hash)]