File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -957,8 +957,6 @@ void Lexer::lexDollarIdent() {
957957 // independent of language mode.
958958 return formToken (tok::identifier, tokStart);
959959 } else {
960- if (LangOpts.EnableDollarIdentifiers && !LangOpts.Playground )
961- return formToken (tok::identifier, tokStart);
962960 return formToken (tok::dollarident, tokStart);
963961 }
964962}
Original file line number Diff line number Diff line change @@ -2923,6 +2923,12 @@ Expr *Parser::parseExprAnonClosureArg() {
29232923 auto closure = dyn_cast_or_null<ClosureExpr>(
29242924 dyn_cast<AbstractClosureExpr>(CurDeclContext));
29252925 if (!closure) {
2926+ if (Context.LangOpts .DebuggerSupport ) {
2927+ auto refKind = DeclRefKind::Ordinary;
2928+ auto identifier = Context.getIdentifier (Name);
2929+ return new (Context) UnresolvedDeclRefExpr (DeclName (identifier), refKind,
2930+ DeclNameLoc (Loc));
2931+ }
29262932 diagnose (Loc, diag::anon_closure_arg_not_in_closure);
29272933 return new (Context) ErrorExpr (Loc);
29282934 }
You can’t perform that action at this time.
0 commit comments