mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-02 12:59:12 +00:00
Merge pull request #19363 from euclio/varargs-detail
display varargs in completion detail
This commit is contained in:
commit
8b5816b4f5
3 changed files with 58 additions and 1 deletions
|
|
@ -2363,6 +2363,10 @@ impl Function {
|
|||
db.function_data(self.id).is_async()
|
||||
}
|
||||
|
||||
pub fn is_varargs(self, db: &dyn HirDatabase) -> bool {
|
||||
db.function_data(self.id).is_varargs()
|
||||
}
|
||||
|
||||
pub fn extern_block(self, db: &dyn HirDatabase) -> Option<ExternBlock> {
|
||||
match self.id.lookup(db.upcast()).container {
|
||||
ItemContainerId::ExternBlockId(id) => Some(ExternBlock { id }),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue