File tree 2 files changed +6
-6
lines changed
Tests/SwiftLexicalLookupTest
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ enum NameExpectation: ExpectedName {
63
63
case declaration( String )
64
64
case implicit( ImplicitNameExpectation )
65
65
case dollarIdentifier( String , String )
66
- case compositeName ( [ NameExpectation ] )
66
+ case equivalentNames ( [ NameExpectation ] )
67
67
68
68
var marker : [ String ] {
69
69
switch self {
@@ -73,7 +73,7 @@ enum NameExpectation: ExpectedName {
73
73
return [ marker]
74
74
case . implicit( let implicitName) :
75
75
return [ implicitName. marker]
76
- case . compositeName ( let expectedNames) :
76
+ case . equivalentNames ( let expectedNames) :
77
77
return
78
78
expectedNames
79
79
. flatMap { expectedName in
@@ -93,7 +93,7 @@ enum NameExpectation: ExpectedName {
93
93
actualStr == expectedStr,
94
94
" For marker \( marker) , actual identifier \( actualStr) doesn't match expected \( expectedStr) "
95
95
)
96
- case ( . equivalentNames( let actualNames) , . compositeName ( let expectedNames) ) :
96
+ case ( . equivalentNames( let actualNames) , . equivalentNames ( let expectedNames) ) :
97
97
XCTAssert (
98
98
actualNames. count == expectedNames. count,
99
99
" For marker \( marker) , actual composite name count \( actualNames. count) doesn't match expected \( expectedNames. count) "
Original file line number Diff line number Diff line change @@ -827,15 +827,15 @@ final class testNameLookup: XCTestCase {
827
827
. fromScope(
828
828
SwitchCaseSyntax . self,
829
829
expectedNames: [
830
- NameExpectation . compositeName ( [ . identifier( " 1️⃣ " ) , . identifier( " 3️⃣ " ) ] ) ,
831
- NameExpectation . compositeName ( [ . identifier( " 2️⃣ " ) , . identifier( " 4️⃣ " ) ] ) ,
830
+ NameExpectation . equivalentNames ( [ . identifier( " 1️⃣ " ) , . identifier( " 3️⃣ " ) ] ) ,
831
+ NameExpectation . equivalentNames ( [ . identifier( " 2️⃣ " ) , . identifier( " 4️⃣ " ) ] ) ,
832
832
]
833
833
)
834
834
] ,
835
835
" 9️⃣ " : [
836
836
. fromScope(
837
837
SwitchCaseSyntax . self,
838
- expectedNames: [ NameExpectation . compositeName ( [ . identifier( " 7️⃣ " ) , . identifier( " 8️⃣ " ) ] ) ]
838
+ expectedNames: [ NameExpectation . equivalentNames ( [ . identifier( " 7️⃣ " ) , . identifier( " 8️⃣ " ) ] ) ]
839
839
)
840
840
] ,
841
841
] ,
You can’t perform that action at this time.
0 commit comments