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() {
957
957
// independent of language mode.
958
958
return formToken (tok::identifier, tokStart);
959
959
} else {
960
- if (LangOpts.EnableDollarIdentifiers && !LangOpts.Playground )
961
- return formToken (tok::identifier, tokStart);
962
960
return formToken (tok::dollarident, tokStart);
963
961
}
964
962
}
Original file line number Diff line number Diff line change @@ -2923,6 +2923,12 @@ Expr *Parser::parseExprAnonClosureArg() {
2923
2923
auto closure = dyn_cast_or_null<ClosureExpr>(
2924
2924
dyn_cast<AbstractClosureExpr>(CurDeclContext));
2925
2925
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
+ }
2926
2932
diagnose (Loc, diag::anon_closure_arg_not_in_closure);
2927
2933
return new (Context) ErrorExpr (Loc);
2928
2934
}
You can’t perform that action at this time.
0 commit comments