@@ -46,7 +46,7 @@ static GuardStmt *returnComparisonIfNotEqualGuard(ASTContext &C,
46
46
// First, generate the statement for the body of the guard.
47
47
// return lhs < rhs
48
48
auto ltFuncExpr = new (C) UnresolvedDeclRefExpr (
49
- DeclName (C.getIdentifier ( " < " ) ), DeclRefKind::BinaryOperator,
49
+ DeclNameRef (C.Id_LessThanOperator ), DeclRefKind::BinaryOperator,
50
50
DeclNameLoc ());
51
51
auto ltArgsTuple = TupleExpr::create (C, SourceLoc (),
52
52
{ lhsExpr, rhsExpr },
@@ -60,7 +60,7 @@ static GuardStmt *returnComparisonIfNotEqualGuard(ASTContext &C,
60
60
// Next, generate the condition being checked.
61
61
// lhs == rhs
62
62
auto cmpFuncExpr = new (C) UnresolvedDeclRefExpr (
63
- DeclName (C.getIdentifier ( " == " ) ), DeclRefKind::BinaryOperator,
63
+ DeclNameRef (C.Id_EqualsOperator ), DeclRefKind::BinaryOperator,
64
64
DeclNameLoc ());
65
65
auto cmpArgsTuple = TupleExpr::create (C, SourceLoc (),
66
66
{ lhsExpr, rhsExpr },
@@ -202,8 +202,8 @@ deriveBodyComparable_enum_hasAssociatedValues_lt(AbstractFunctionDecl *ltDecl, v
202
202
auto lhsSubpattern = enumElementPayloadSubpattern (elt, ' l' , ltDecl,
203
203
lhsPayloadVars);
204
204
auto lhsElemPat = new (C) EnumElementPattern (TypeLoc::withoutLoc (enumType),
205
- SourceLoc (), SourceLoc (),
206
- Identifier (), elt,
205
+ SourceLoc (), DeclNameLoc (),
206
+ DeclNameRef (), elt,
207
207
lhsSubpattern);
208
208
lhsElemPat->setImplicit ();
209
209
@@ -212,8 +212,8 @@ deriveBodyComparable_enum_hasAssociatedValues_lt(AbstractFunctionDecl *ltDecl, v
212
212
auto rhsSubpattern = enumElementPayloadSubpattern (elt, ' r' , ltDecl,
213
213
rhsPayloadVars);
214
214
auto rhsElemPat = new (C) EnumElementPattern (TypeLoc::withoutLoc (enumType),
215
- SourceLoc (), SourceLoc (),
216
- Identifier (), elt,
215
+ SourceLoc (), DeclNameLoc (),
216
+ DeclNameRef (), elt,
217
217
rhsSubpattern);
218
218
rhsElemPat->setImplicit ();
219
219
0 commit comments