Rename Catch variants to TryBlock

(Not `Try` since `QuestionMark` is using that.)
This commit is contained in:
Scott McMurray
2018-07-21 18:47:02 -07:00
parent f28f648a96
commit f2445fb507
11 changed files with 16 additions and 16 deletions

View File

@@ -3458,7 +3458,7 @@ impl<'a> Parser<'a> {
{
let (iattrs, body) = self.parse_inner_attrs_and_block()?;
attrs.extend(iattrs);
Ok(self.mk_expr(span_lo.to(body.span), ExprKind::Catch(body), attrs))
Ok(self.mk_expr(span_lo.to(body.span), ExprKind::TryBlock(body), attrs))
}
// `match` token already eaten