2323@freestanding ( expression) public macro expect(
2424 _ condition: Bool ,
2525 _ comment: @autoclosure ( ) -> Comment ? = nil ,
26- sourceLocation: SourceLocation = SourceLocation ( )
26+ sourceLocation: SourceLocation = #_sourceLocation
2727) = #externalMacro( module: " TestingMacros " , type: " ExpectMacro " )
2828
2929/// Check that an expectation has passed after a condition has been evaluated
4444@freestanding ( expression) public macro require(
4545 _ condition: Bool ,
4646 _ comment: @autoclosure ( ) -> Comment ? = nil ,
47- sourceLocation: SourceLocation = SourceLocation ( )
47+ sourceLocation: SourceLocation = #_sourceLocation
4848) = #externalMacro( module: " TestingMacros " , type: " RequireMacro " )
4949
5050// MARK: - Optional checking
6868@freestanding ( expression) public macro require< T> (
6969 _ optionalValue: T ? ,
7070 _ comment: @autoclosure ( ) -> Comment ? = nil ,
71- sourceLocation: SourceLocation = SourceLocation ( )
71+ sourceLocation: SourceLocation = #_sourceLocation
7272) -> T = #externalMacro( module: " TestingMacros " , type: " RequireMacro " )
7373
7474/// Unwrap an optional boolean value or, if it is `nil`, fail and throw an
9898public macro require(
9999 _ optionalValue: Bool ? ,
100100 _ comment: @autoclosure ( ) -> Comment ? = nil ,
101- sourceLocation: SourceLocation = SourceLocation ( )
101+ sourceLocation: SourceLocation = #_sourceLocation
102102) -> Bool = #externalMacro( module: " TestingMacros " , type: " AmbiguousRequireMacro " )
103103
104104// MARK: - Matching errors by type
@@ -136,7 +136,7 @@ public macro require(
136136@freestanding ( expression) public macro expect< E, R> (
137137 throws errorType: E . Type ,
138138 _ comment: @autoclosure ( ) -> Comment ? = nil ,
139- sourceLocation: SourceLocation = SourceLocation ( ) ,
139+ sourceLocation: SourceLocation = #_sourceLocation ,
140140 performing expression: ( ) async throws -> R
141141) = #externalMacro( module: " TestingMacros " , type: " ExpectMacro " ) where E: Error
142142
@@ -175,7 +175,7 @@ public macro require(
175175@freestanding ( expression) public macro expect< R> (
176176 throws _: Never . Type ,
177177 _ comment: @autoclosure ( ) -> Comment ? = nil ,
178- sourceLocation: SourceLocation = SourceLocation ( ) ,
178+ sourceLocation: SourceLocation = #_sourceLocation ,
179179 performing expression: ( ) async throws -> R
180180) = #externalMacro( module: " TestingMacros " , type: " ExpectMacro " )
181181
@@ -217,7 +217,7 @@ public macro require(
217217@freestanding ( expression) public macro require< E, R> (
218218 throws errorType: E . Type ,
219219 _ comment: @autoclosure ( ) -> Comment ? = nil ,
220- sourceLocation: SourceLocation = SourceLocation ( ) ,
220+ sourceLocation: SourceLocation = #_sourceLocation ,
221221 performing expression: ( ) async throws -> R
222222) = #externalMacro( module: " TestingMacros " , type: " RequireMacro " ) where E: Error
223223
@@ -236,7 +236,7 @@ public macro require(
236236@freestanding ( expression) public macro require< R> (
237237 throws _: Never . Type ,
238238 _ comment: @autoclosure ( ) -> Comment ? = nil ,
239- sourceLocation: SourceLocation = SourceLocation ( ) ,
239+ sourceLocation: SourceLocation = #_sourceLocation ,
240240 performing expression: ( ) async throws -> R
241241) = #externalMacro( module: " TestingMacros " , type: " RequireMacro " )
242242
@@ -272,7 +272,7 @@ public macro require(
272272@freestanding ( expression) public macro expect< E, R> (
273273 throws error: E ,
274274 _ comment: @autoclosure ( ) -> Comment ? = nil ,
275- sourceLocation: SourceLocation = SourceLocation ( ) ,
275+ sourceLocation: SourceLocation = #_sourceLocation ,
276276 performing expression: ( ) async throws -> R
277277) = #externalMacro( module: " TestingMacros " , type: " ExpectMacro " ) where E: Error & Equatable
278278
@@ -309,7 +309,7 @@ public macro require(
309309@freestanding ( expression) public macro require< E, R> (
310310 throws error: E ,
311311 _ comment: @autoclosure ( ) -> Comment ? = nil ,
312- sourceLocation: SourceLocation = SourceLocation ( ) ,
312+ sourceLocation: SourceLocation = #_sourceLocation ,
313313 performing expression: ( ) async throws -> R
314314) = #externalMacro( module: " TestingMacros " , type: " RequireMacro " ) where E: Error & Equatable
315315
@@ -352,7 +352,7 @@ public macro require(
352352/// ``expect(throws:_:sourceLocation:performing:)-5lzjz`` instead.
353353@freestanding ( expression) public macro expect< R> (
354354 _ comment: @autoclosure ( ) -> Comment ? = nil ,
355- sourceLocation: SourceLocation = SourceLocation ( ) ,
355+ sourceLocation: SourceLocation = #_sourceLocation ,
356356 performing expression: ( ) async throws -> R ,
357357 throws errorMatcher: ( any Error ) async throws -> Bool
358358) = #externalMacro( module: " TestingMacros " , type: " ExpectMacro " )
@@ -400,7 +400,7 @@ public macro require(
400400/// this macro. The test will then fail if an error is thrown.
401401@freestanding ( expression) public macro require< R> (
402402 _ comment: @autoclosure ( ) -> Comment ? = nil ,
403- sourceLocation: SourceLocation = SourceLocation ( ) ,
403+ sourceLocation: SourceLocation = #_sourceLocation ,
404404 performing expression: ( ) async throws -> R ,
405405 throws errorMatcher: ( any Error ) async throws -> Bool
406406) = #externalMacro( module: " TestingMacros " , type: " RequireMacro " )
@@ -474,7 +474,7 @@ public macro require(
474474@freestanding ( expression) public macro expect(
475475 exitsWith expectedExitCondition: ExitCondition ,
476476 _ comment: @autoclosure ( ) -> Comment ? = nil ,
477- sourceLocation: SourceLocation = SourceLocation ( ) ,
477+ sourceLocation: SourceLocation = #_sourceLocation ,
478478 performing expression: @convention ( thin) ( ) async throws -> Void
479479) = #externalMacro( module: " TestingMacros " , type: " ExitTestExpectMacro " )
480480
@@ -549,6 +549,6 @@ public macro require(
549549@freestanding ( expression) public macro require(
550550 exitsWith expectedExitCondition: ExitCondition ,
551551 _ comment: @autoclosure ( ) -> Comment ? = nil ,
552- sourceLocation: SourceLocation = SourceLocation ( ) ,
552+ sourceLocation: SourceLocation = #_sourceLocation ,
553553 performing expression: @convention ( thin) ( ) async -> Void
554554) = #externalMacro( module: " TestingMacros " , type: " ExitTestRequireMacro " )
0 commit comments