@@ -83,13 +83,13 @@ struct ConditionMacroTests {
83
83
##"#expect(a, sourceLocation: someValue)"## :
84
84
##"Testing.__checkValue(a, expression: .__fromSyntaxNode("a"), comments: [], isRequired: false, sourceLocation: someValue).__expected()"## ,
85
85
##"#expect(a.isB)"## :
86
- ##"Testing.__checkPropertyAccess(a.self, getting: { $0.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a"), .__fromSyntaxNode( "isB") ), comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
86
+ ##"Testing.__checkPropertyAccess(a.self, getting: { $0.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a"), "isB"), comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
87
87
##"#expect(a???.isB)"## :
88
- ##"Testing.__checkPropertyAccess(a.self, getting: { $0???.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a"), .__fromSyntaxNode( "isB") ), comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
88
+ ##"Testing.__checkPropertyAccess(a.self, getting: { $0???.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a"), "isB"), comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
89
89
##"#expect(a?.b.isB)"## :
90
- ##"Testing.__checkPropertyAccess(a?.b.self, getting: { $0?.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a?.b"), .__fromSyntaxNode( "isB") ), comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
90
+ ##"Testing.__checkPropertyAccess(a?.b.self, getting: { $0?.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a?.b"), "isB"), comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
91
91
##"#expect(a?.b().isB)"## :
92
- ##"Testing.__checkPropertyAccess(a?.b().self, getting: { $0?.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a?.b()"), .__fromSyntaxNode( "isB") ), comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
92
+ ##"Testing.__checkPropertyAccess(a?.b().self, getting: { $0?.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a?.b()"), "isB"), comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
93
93
##"#expect(isolation: somewhere) {}"## :
94
94
##"Testing.__checkClosureCall(performing: {}, expression: .__fromSyntaxNode("{}"), comments: [], isRequired: false, isolation: somewhere, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
95
95
]
@@ -163,13 +163,13 @@ struct ConditionMacroTests {
163
163
##"#require(a, sourceLocation: someValue)"## :
164
164
##"Testing.__checkValue(a, expression: .__fromSyntaxNode("a"), comments: [], isRequired: true, sourceLocation: someValue).__required()"## ,
165
165
##"#require(a.isB)"## :
166
- ##"Testing.__checkPropertyAccess(a.self, getting: { $0.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a"), .__fromSyntaxNode( "isB") ), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
166
+ ##"Testing.__checkPropertyAccess(a.self, getting: { $0.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a"), "isB"), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
167
167
##"#require(a???.isB)"## :
168
- ##"Testing.__checkPropertyAccess(a.self, getting: { $0???.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a"), .__fromSyntaxNode( "isB") ), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
168
+ ##"Testing.__checkPropertyAccess(a.self, getting: { $0???.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a"), "isB"), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
169
169
##"#require(a?.b.isB)"## :
170
- ##"Testing.__checkPropertyAccess(a?.b.self, getting: { $0?.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a?.b"), .__fromSyntaxNode( "isB") ), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
170
+ ##"Testing.__checkPropertyAccess(a?.b.self, getting: { $0?.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a?.b"), "isB"), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
171
171
##"#require(a?.b().isB)"## :
172
- ##"Testing.__checkPropertyAccess(a?.b().self, getting: { $0?.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a?.b()"), .__fromSyntaxNode( "isB") ), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
172
+ ##"Testing.__checkPropertyAccess(a?.b().self, getting: { $0?.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a?.b()"), "isB"), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
173
173
##"#require(isolation: somewhere) {}"## :
174
174
##"Testing.__checkClosureCall(performing: {}, expression: .__fromSyntaxNode("{}"), comments: [], isRequired: true, isolation: somewhere, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
175
175
]
@@ -183,7 +183,7 @@ struct ConditionMacroTests {
183
183
@Test ( " Unwrapping #require() macro " ,
184
184
arguments: [
185
185
##"#require(Optional<Int>.none)"## :
186
- ##"Testing.__checkPropertyAccess(Optional<Int>.self, getting: { $0.none }, expression: .__fromPropertyAccess(.__fromSyntaxNode("Optional<Int>"), .__fromSyntaxNode( "none") ), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
186
+ ##"Testing.__checkPropertyAccess(Optional<Int>.self, getting: { $0.none }, expression: .__fromPropertyAccess(.__fromSyntaxNode("Optional<Int>"), "none"), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
187
187
##"#require(nil ?? 123)"## :
188
188
##"Testing.__checkBinaryOperation(nil, { $0 ?? $1() }, 123, expression: .__fromBinaryOperation(.__fromSyntaxNode("nil"), "??", .__fromSyntaxNode("123")), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
189
189
##"#require(123 ?? nil)"## :
0 commit comments