We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0be713b commit e797fe5Copy full SHA for e797fe5
lib/IDE/CodeCompletion.cpp
@@ -3283,7 +3283,10 @@ class CompletionLookup final : public swift::VisibleDeclConsumer {
3283
// escape and there isn't a better way to allocate scratch Expr nodes.
3284
UnresolvedDeclRefExpr UDRE(op->getName(), DeclRefKind::PostfixOperator,
3285
DeclNameLoc(expr->getSourceRange().End));
3286
- PostfixUnaryExpr opExpr(&UDRE, expr);
+ ParenExpr parenExpr(expr->getSourceRange().Start, expr,
3287
+ expr->getSourceRange().End,
3288
+ /*hasTrailingClosure=*/false);
3289
+ PostfixUnaryExpr opExpr(&UDRE, &parenExpr);
3290
Expr *tempExpr = &opExpr;
3291
ConcreteDeclRef referencedDecl;
3292
if (auto T = getTypeOfCompletionContextExpr(
0 commit comments