mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Add static semantic token modifier for associated functions with no &self
refactor logic into code_model.rs address comments
This commit is contained in:
parent
14b38e198c
commit
3aa0e40726
1 changed files with 1 additions and 5 deletions
|
@ -802,11 +802,7 @@ impl Function {
|
||||||
.and_then(|s| s.parent())
|
.and_then(|s| s.parent())
|
||||||
.and_then(|s| Some(s.kind()));
|
.and_then(|s| Some(s.kind()));
|
||||||
|
|
||||||
match fn_parent_kind {
|
matches!(fn_parent_kind, Some(SyntaxKind::IMPL) | Some(SyntaxKind::TRAIT))
|
||||||
Some(SyntaxKind::IMPL) => true,
|
|
||||||
Some(SyntaxKind::TRAIT) => true,
|
|
||||||
_ => false,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue