@@ -5259,7 +5259,6 @@ class KeyPathExpr : public Expr {
5259
5259
OptionalWrap,
5260
5260
Identity,
5261
5261
TupleElement,
5262
- DictionaryKey,
5263
5262
};
5264
5263
5265
5264
private:
@@ -5368,16 +5367,6 @@ class KeyPathExpr : public Expr {
5368
5367
propertyType,
5369
5368
loc);
5370
5369
}
5371
-
5372
- // / Create a component for a dictionary key (#keyPath only).
5373
- static Component forDictionaryKey (DeclNameRef UnresolvedName,
5374
- Type valueType,
5375
- SourceLoc loc) {
5376
- return Component (nullptr , UnresolvedName, nullptr , {}, {},
5377
- Kind::DictionaryKey,
5378
- valueType,
5379
- loc);
5380
- }
5381
5370
5382
5371
// / Create a component for a subscript.
5383
5372
static Component forSubscript (ASTContext &ctx,
@@ -5468,7 +5457,6 @@ class KeyPathExpr : public Expr {
5468
5457
case Kind::Property:
5469
5458
case Kind::Identity:
5470
5459
case Kind::TupleElement:
5471
- case Kind::DictionaryKey:
5472
5460
return true ;
5473
5461
5474
5462
case Kind::UnresolvedSubscript:
@@ -5493,7 +5481,6 @@ class KeyPathExpr : public Expr {
5493
5481
case Kind::Property:
5494
5482
case Kind::Identity:
5495
5483
case Kind::TupleElement:
5496
- case Kind::DictionaryKey:
5497
5484
return nullptr ;
5498
5485
}
5499
5486
llvm_unreachable (" unhandled kind" );
@@ -5513,7 +5500,6 @@ class KeyPathExpr : public Expr {
5513
5500
case Kind::Property:
5514
5501
case Kind::Identity:
5515
5502
case Kind::TupleElement:
5516
- case Kind::DictionaryKey:
5517
5503
llvm_unreachable (" no subscript labels for this kind" );
5518
5504
}
5519
5505
llvm_unreachable (" unhandled kind" );
@@ -5536,7 +5522,6 @@ class KeyPathExpr : public Expr {
5536
5522
case Kind::Property:
5537
5523
case Kind::Identity:
5538
5524
case Kind::TupleElement:
5539
- case Kind::DictionaryKey:
5540
5525
return {};
5541
5526
}
5542
5527
llvm_unreachable (" unhandled kind" );
@@ -5548,7 +5533,6 @@ class KeyPathExpr : public Expr {
5548
5533
DeclNameRef getUnresolvedDeclName () const {
5549
5534
switch (getKind ()) {
5550
5535
case Kind::UnresolvedProperty:
5551
- case Kind::DictionaryKey:
5552
5536
return Decl.UnresolvedName ;
5553
5537
5554
5538
case Kind::Invalid:
@@ -5579,7 +5563,6 @@ class KeyPathExpr : public Expr {
5579
5563
case Kind::OptionalForce:
5580
5564
case Kind::Identity:
5581
5565
case Kind::TupleElement:
5582
- case Kind::DictionaryKey:
5583
5566
llvm_unreachable (" no decl ref for this kind" );
5584
5567
}
5585
5568
llvm_unreachable (" unhandled kind" );
@@ -5599,7 +5582,6 @@ class KeyPathExpr : public Expr {
5599
5582
case Kind::Identity:
5600
5583
case Kind::Property:
5601
5584
case Kind::Subscript:
5602
- case Kind::DictionaryKey:
5603
5585
llvm_unreachable (" no field number for this kind" );
5604
5586
}
5605
5587
llvm_unreachable (" unhandled kind" );
0 commit comments