Support destructuring patterns

This commit is contained in:
Kirill Bulatov 2019-07-28 00:50:26 +03:00
parent de278d1649
commit b8f95f42e1
3 changed files with 314 additions and 50 deletions

View file

@ -900,6 +900,9 @@ pub fn handle_inlay_hints(
ra_ide_api::InlayKind::ForExpressionBindingType => {
InlayKind::ForExpressionBindingType
}
ra_ide_api::InlayKind::IfExpressionType => InlayKind::IfExpressionType,
ra_ide_api::InlayKind::WhileLetExpressionType => InlayKind::WhileLetExpressionType,
ra_ide_api::InlayKind::MatchArmType => InlayKind::MatchArmType,
},
})
.collect())

View file

@ -216,6 +216,9 @@ pub enum InlayKind {
LetBindingType,
ClosureParameterType,
ForExpressionBindingType,
IfExpressionType,
WhileLetExpressionType,
MatchArmType,
}
#[derive(Debug, Deserialize, Serialize)]