@@ -756,16 +756,16 @@ func testLookInProtoNoDot2() {
756
756
func testLookInProtoNoDot3( ) {
757
757
fooExBarExProtocolInstance#^PROTO_MEMBERS_NO_DOT_3^#
758
758
// PROTO_MEMBERS_NO_DOT_3: Begin completions
759
+ // PROTO_MEMBERS_NO_DOT_3-NEXT: Decl[InstanceMethod]/CurrNominal: .barExInstanceFunc0()[#Double#]{{; name=.+$}}
759
760
// PROTO_MEMBERS_NO_DOT_3-NEXT: Decl[InstanceVar]/Super: .barInstanceVar[#Int#]{{; name=.+$}}
760
761
// PROTO_MEMBERS_NO_DOT_3-NEXT: Decl[InstanceMethod]/Super: .barInstanceFunc0()[#Double#]{{; name=.+$}}
761
762
// PROTO_MEMBERS_NO_DOT_3-NEXT: Decl[InstanceMethod]/Super: .barInstanceFunc1({#(a): Int#})[#Double#]{{; name=.+$}}
762
- // PROTO_MEMBERS_NO_DOT_3-NEXT: Decl[InstanceMethod]/CurrNominal: .barExInstanceFunc0 ()[#Double#]{{; name=.+$}}
763
+ // PROTO_MEMBERS_NO_DOT_3-NEXT: Decl[InstanceMethod]/CurrNominal: .fooExInstanceFunc0 ()[#Double#]{{; name=.+$}}
763
764
// PROTO_MEMBERS_NO_DOT_3-NEXT: Decl[InstanceVar]/Super: .fooInstanceVar1[#Int#]{{; name=.+$}}
764
765
// PROTO_MEMBERS_NO_DOT_3-NEXT: Decl[InstanceVar]/Super: .fooInstanceVar2[#Int#]{{; name=.+$}}
765
766
// PROTO_MEMBERS_NO_DOT_3-NEXT: Decl[InstanceMethod]/Super: .fooInstanceFunc0()[#Double#]{{; name=.+$}}
766
767
// PROTO_MEMBERS_NO_DOT_3-NEXT: Decl[InstanceMethod]/Super: .fooInstanceFunc1({#(a): Int#})[#Double#]{{; name=.+$}}
767
768
// PROTO_MEMBERS_NO_DOT_3-NEXT: Decl[Subscript]/Super: [{#(i): Int#}][#Double#]{{; name=.+$}}
768
- // PROTO_MEMBERS_NO_DOT_3-NEXT: Decl[InstanceMethod]/CurrNominal: .fooExInstanceFunc0()[#Double#]{{; name=.+$}}
769
769
// PROTO_MEMBERS_NO_DOT_3-NEXT: Keyword[self]/CurrNominal: .self[#BarExProtocol & FooExProtocol#]; name=self
770
770
// PROTO_MEMBERS_NO_DOT_3-NEXT: End completions
771
771
}
@@ -799,15 +799,15 @@ func testLookInProto3() {
799
799
fooExBarExProtocolInstance. #^PROTO_MEMBERS_3^#
800
800
// PROTO_MEMBERS_3: Begin completions
801
801
// PROTO_MEMBERS_3-NEXT: Keyword[self]/CurrNominal: self[#BarExProtocol & FooExProtocol#]; name=self
802
+ // PROTO_MEMBERS_3-NEXT: Decl[InstanceMethod]/CurrNominal: barExInstanceFunc0()[#Double#]{{; name=.+$}}
802
803
// PROTO_MEMBERS_3-NEXT: Decl[InstanceVar]/Super: barInstanceVar[#Int#]{{; name=.+$}}
803
804
// PROTO_MEMBERS_3-NEXT: Decl[InstanceMethod]/Super: barInstanceFunc0()[#Double#]{{; name=.+$}}
804
805
// PROTO_MEMBERS_3-NEXT: Decl[InstanceMethod]/Super: barInstanceFunc1({#(a): Int#})[#Double#]{{; name=.+$}}
805
- // PROTO_MEMBERS_3-NEXT: Decl[InstanceMethod]/CurrNominal: barExInstanceFunc0 ()[#Double#]{{; name=.+$}}
806
+ // PROTO_MEMBERS_3-NEXT: Decl[InstanceMethod]/CurrNominal: fooExInstanceFunc0 ()[#Double#]{{; name=.+$}}
806
807
// PROTO_MEMBERS_3-NEXT: Decl[InstanceVar]/Super: fooInstanceVar1[#Int#]{{; name=.+$}}
807
808
// PROTO_MEMBERS_3-NEXT: Decl[InstanceVar]/Super: fooInstanceVar2[#Int#]{{; name=.+$}}
808
809
// PROTO_MEMBERS_3-NEXT: Decl[InstanceMethod]/Super: fooInstanceFunc0()[#Double#]{{; name=.+$}}
809
810
// PROTO_MEMBERS_3-NEXT: Decl[InstanceMethod]/Super: fooInstanceFunc1({#(a): Int#})[#Double#]{{; name=.+$}}
810
- // PROTO_MEMBERS_3-NEXT: Decl[InstanceMethod]/CurrNominal: fooExInstanceFunc0()[#Double#]{{; name=.+$}}
811
811
// PROTO_MEMBERS_3-NEXT: End completions
812
812
}
813
813
@@ -861,15 +861,15 @@ func testResolveFuncParam5<FooExBarEx : FooExProtocol & BarExProtocol>(_ a: FooE
861
861
a. #^RESOLVE_FUNC_PARAM_5^#
862
862
// RESOLVE_FUNC_PARAM_5: Begin completions
863
863
// RESOLVE_FUNC_PARAM_5-NEXT: Keyword[self]/CurrNominal: self[#FooExBarEx#]; name=self
864
+ // RESOLVE_FUNC_PARAM_5-NEXT: Decl[InstanceMethod]/CurrNominal: barExInstanceFunc0()[#Double#]{{; name=.+$}}
864
865
// RESOLVE_FUNC_PARAM_5-NEXT: Decl[InstanceVar]/Super: barInstanceVar[#Int#]{{; name=.+$}}
865
866
// RESOLVE_FUNC_PARAM_5-NEXT: Decl[InstanceMethod]/Super: barInstanceFunc0()[#Double#]{{; name=.+$}}
866
867
// RESOLVE_FUNC_PARAM_5-NEXT: Decl[InstanceMethod]/Super: barInstanceFunc1({#(a): Int#})[#Double#]{{; name=.+$}}
867
- // RESOLVE_FUNC_PARAM_5-NEXT: Decl[InstanceMethod]/CurrNominal: barExInstanceFunc0 ()[#Double#]{{; name=.+$}}
868
+ // RESOLVE_FUNC_PARAM_5-NEXT: Decl[InstanceMethod]/CurrNominal: fooExInstanceFunc0 ()[#Double#]{{; name=.+$}}
868
869
// RESOLVE_FUNC_PARAM_5-NEXT: Decl[InstanceVar]/Super: fooInstanceVar1[#Int#]{{; name=.+$}}
869
870
// RESOLVE_FUNC_PARAM_5-NEXT: Decl[InstanceVar]/Super: fooInstanceVar2[#Int#]{{; name=.+$}}
870
871
// RESOLVE_FUNC_PARAM_5-NEXT: Decl[InstanceMethod]/Super: fooInstanceFunc0()[#Double#]{{; name=.+$}}
871
872
// RESOLVE_FUNC_PARAM_5-NEXT: Decl[InstanceMethod]/Super: fooInstanceFunc1({#(a): Int#})[#Double#]{{; name=.+$}}
872
- // RESOLVE_FUNC_PARAM_5-NEXT: Decl[InstanceMethod]/CurrNominal: fooExInstanceFunc0()[#Double#]{{; name=.+$}}
873
873
// RESOLVE_FUNC_PARAM_5-NEXT: End completions
874
874
}
875
875
@@ -1311,13 +1311,12 @@ func testProtocol3(_ x: P3) {
1311
1311
}
1312
1312
// PROTOCOL_EXT_P3: Begin completions
1313
1313
1314
- // FIXME: the next two should both be " CurrentNominal "
1315
- // PROTOCOL_EXT_P3-DAG: Decl[InstanceMethod]/Super : reqP1 ()[#Void#]{{; name=.+$}}
1316
- // PROTOCOL_EXT_P3-DAG: Decl[InstanceMethod]/Super : reqP2 ()[#Void#]{{; name=.+$}}
1314
+ // PROTOCOL_EXT_P3-DAG: Decl[InstanceMethod]/CurrNominal: reqP1()[#Void#]{{; name=.+$}}
1315
+ // PROTOCOL_EXT_P3-DAG: Decl[InstanceMethod]/CurrNominal : reqP2 ()[#Void#]{{; name=.+$}}
1316
+ // PROTOCOL_EXT_P3-DAG: Decl[InstanceMethod]/CurrNominal : extP3 ()[#Void#]{{; name=.+$}}
1317
1317
1318
1318
// PROTOCOL_EXT_P3-DAG: Decl[InstanceMethod]/Super: extP1()[#Void#]{{; name=.+$}}
1319
1319
// PROTOCOL_EXT_P3-DAG: Decl[InstanceMethod]/Super: extP2()[#Void#]{{; name=.+$}}
1320
- // PROTOCOL_EXT_P3-DAG: Decl[InstanceMethod]/CurrNominal: extP3()[#Void#]{{; name=.+$}}
1321
1320
// PROTOCOL_EXT_P3: End completions
1322
1321
1323
1322
func testConformingConcrete1(_ x: WillConformP1) {
@@ -1372,11 +1371,11 @@ func testGenericConforming3<T: P3>(x: T) {
1372
1371
x.#^PROTOCOL_EXT_GENERICP3^#
1373
1372
}
1374
1373
// PROTOCOL_EXT_GENERICP3: Begin completions
1375
- // PROTOCOL_EXT_GENERICP3-DAG: Decl[InstanceMethod]/Super: reqP1()[#Void#]{{; name=.+$}}
1376
- // PROTOCOL_EXT_GENERICP3-DAG: Decl[InstanceMethod]/Super: reqP2()[#Void#]{{; name=.+$}}
1374
+ // PROTOCOL_EXT_GENERICP3-DAG: Decl[InstanceMethod]/CurrNominal: reqP1()[#Void#]{{; name=.+$}}
1375
+ // PROTOCOL_EXT_GENERICP3-DAG: Decl[InstanceMethod]/CurrNominal: reqP2()[#Void#]{{; name=.+$}}
1376
+ // PROTOCOL_EXT_GENERICP3-DAG: Decl[InstanceMethod]/CurrNominal: extP3()[#Void#]{{; name=.+$}}
1377
1377
// PROTOCOL_EXT_GENERICP3-DAG: Decl[InstanceMethod]/Super: extP1()[#Void#]{{; name=.+$}}
1378
1378
// PROTOCOL_EXT_GENERICP3-DAG: Decl[InstanceMethod]/Super: extP2()[#Void#]{{; name=.+$}}
1379
- // PROTOCOL_EXT_GENERICP3-DAG: Decl[InstanceMethod]/CurrNominal: extP3()[#Void#]{{; name=.+$}}
1380
1379
// PROTOCOL_EXT_GENERICP3: End completions
1381
1380
1382
1381
protocol NoDupReq1 {
@@ -1483,10 +1482,10 @@ func checkOverrideInclusion2(_ arg: Override3) {
1483
1482
// CHECK_NODUP_RESTATED_REQ_NODOT: End completions
1484
1483
1485
1484
// CHECK_NODUP_RESTATED_REQ_TYPE1: Begin completions, 6 items
1486
- // CHECK_NODUP_RESTATED_REQ_TYPE1: Decl[InstanceMethod]/Super: roo({#(self): NoDupReq6#})[#(arg1: Int) -> Void#]; name=roo(:)
1487
1485
// CHECK_NODUP_RESTATED_REQ_TYPE1: Decl[InstanceMethod]/CurrNominal: foo({#(self): NoDupReq6#})[#() -> Void#]; name=foo(:)
1488
1486
// CHECK_NODUP_RESTATED_REQ_TYPE1: Decl[InstanceMethod]/CurrNominal: roo({#(self): NoDupReq6#})[#(arg2: Int) -> Void#]; name=roo(:)
1489
1487
// CHECK_NODUP_RESTATED_REQ_TYPE1: Decl[AssociatedType]/CurrNominal: E; name=E
1488
+ // CHECK_NODUP_RESTATED_REQ_TYPE1: Decl[InstanceMethod]/Super: roo({#(self): NoDupReq6#})[#(arg1: Int) -> Void#]; name=roo(:)
1490
1489
// CHECK_NODUP_RESTATED_REQ_TYPE1: End completions
1491
1490
1492
1491
// CHECK_NODUP_RESTATED_REQ_TYPE2: Begin completions, 6 items
@@ -1503,8 +1502,8 @@ func checkOverrideInclusion2(_ arg: Override3) {
1503
1502
// CHECK_NODUP_RESTATED_REQ_TYPE3: Decl[InstanceMethod]/CurrNominal: roo({#(self): NoDupReq1 & NoDupReq2 & NoDupReq3#})[#(arg2: Int) -> Void#]; name=roo(:)
1504
1503
// CHECK_NODUP_RESTATED_REQ_TYPE3: End completions
1505
1504
1506
- // CHECK_PROT_OVERRIDES: Decl[InstanceMethod]/{{Super|CurrNominal}}: foo({#(arg): NoDupReq1#})[#Void#]; name=foo(:)
1507
- // CHECK_PROT_OVERRIDES: Decl[InstanceMethod]/{{Super|CurrNominal}}: foo({#(arg): NoDupReq2#})[#Void#]; name=foo(:)
1505
+ // CHECK_PROT_OVERRIDES-DAG : Decl[InstanceMethod]/{{Super|CurrNominal}}: foo({#(arg): NoDupReq1#})[#Void#]; name=foo(:)
1506
+ // CHECK_PROT_OVERRIDES-DAG : Decl[InstanceMethod]/{{Super|CurrNominal}}: foo({#(arg): NoDupReq2#})[#Void#]; name=foo(:)
1508
1507
1509
1508
struct OnlyMe {}
1510
1509
protocol P4 {
0 commit comments