From ca62d98781f13b6fb82c4d19269ee255208fb3d4 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sat, 11 Jan 2020 00:29:00 +0800 Subject: Expand PAREN_EXPR as expression --- crates/ra_hir_expand/src/db.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/ra_hir_expand/src') diff --git a/crates/ra_hir_expand/src/db.rs b/crates/ra_hir_expand/src/db.rs index 2e12e126f..d41b34161 100644 --- a/crates/ra_hir_expand/src/db.rs +++ b/crates/ra_hir_expand/src/db.rs @@ -187,6 +187,7 @@ fn to_fragment_kind(db: &dyn AstDatabase, macro_call_id: MacroCallId) -> Fragmen ARG_LIST => FragmentKind::Expr, TRY_EXPR => FragmentKind::Expr, TUPLE_EXPR => FragmentKind::Expr, + PAREN_EXPR => FragmentKind::Expr, ITEM_LIST => FragmentKind::Items, _ => { // Unknown , Just guess it is `Items` -- cgit v1.2.3