mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Apply async semantic token modifier to async/await keywords
Only async semantic token modifier
This commit is contained in:
parent
9803a9a148
commit
b98c119ba6
5 changed files with 17 additions and 0 deletions
|
@ -873,6 +873,10 @@ impl Function {
|
|||
db.function_data(self.id).is_unsafe()
|
||||
}
|
||||
|
||||
pub fn is_async(self, db: &dyn HirDatabase) -> bool {
|
||||
db.function_data(self.id).is_async()
|
||||
}
|
||||
|
||||
pub fn diagnostics(self, db: &dyn HirDatabase, sink: &mut DiagnosticSink) {
|
||||
let krate = self.module(db).id.krate();
|
||||
hir_def::diagnostics::validate_body(db.upcast(), self.id.into(), sink);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue