Add static semantic token modifier for associated functions with no &self

refactor logic into code_model.rs
This commit is contained in:
Anatol Liu 2020-11-04 20:08:46 -08:00
parent 771c0d8c08
commit 14b38e198c

View file

@ -790,7 +790,7 @@ impl Function {
/// whether this function is associated with some trait/impl
pub fn is_associated(self, db: &dyn HirDatabase) -> bool {
if let Some(_) = self.self_param(db) {
if self.self_param(db).is_some() {
return false;
}