Add static semantic token modifier for associated functions with no &self
refactor logic into code_model.rs
This commit is contained in:
parent
771c0d8c08
commit
14b38e198c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user