aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_expand
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-01-10 16:31:02 +0000
committerGitHub <[email protected]>2020-01-10 16:31:02 +0000
commit9a44f627be0b3c49184e3ad594849f9b5ed78daa (patch)
treefc08dd836376b0f8d3223e0098388c293f58c40e /crates/ra_hir_expand
parent2068e48c698b93974d1e3261940dbea121ef16c3 (diff)
parentca62d98781f13b6fb82c4d19269ee255208fb3d4 (diff)
Merge #2785
2785: Expand PAREN_EXPR as expression r=matklad a=edwin0cheng Co-authored-by: Edwin Cheng <[email protected]>
Diffstat (limited to 'crates/ra_hir_expand')
-rw-r--r--crates/ra_hir_expand/src/db.rs1
1 files changed, 1 insertions, 0 deletions
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
187 ARG_LIST => FragmentKind::Expr, 187 ARG_LIST => FragmentKind::Expr,
188 TRY_EXPR => FragmentKind::Expr, 188 TRY_EXPR => FragmentKind::Expr,
189 TUPLE_EXPR => FragmentKind::Expr, 189 TUPLE_EXPR => FragmentKind::Expr,
190 PAREN_EXPR => FragmentKind::Expr,
190 ITEM_LIST => FragmentKind::Items, 191 ITEM_LIST => FragmentKind::Items,
191 _ => { 192 _ => {
192 // Unknown , Just guess it is `Items` 193 // Unknown , Just guess it is `Items`