mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-18 18:53:04 +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
@ -802,11 +802,7 @@ impl Function {
|
||||
.and_then(|s| s.parent())
|
||||
.and_then(|s| Some(s.kind()));
|
||||
|
||||
match fn_parent_kind {
|
||||
Some(SyntaxKind::IMPL) => true,
|
||||
Some(SyntaxKind::TRAIT) => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(fn_parent_kind, Some(SyntaxKind::IMPL) | Some(SyntaxKind::TRAIT))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user