@@ -237,7 +237,7 @@ public func __checkEscapedCondition(
237
237
sourceLocation: SourceLocation
238
238
) -> Result < Void , any Error > {
239
239
var expectationContext = __ExpectationContext ( )
240
- expectationContext. sourceCode [ " " ] = sourceCode
240
+ expectationContext. sourceCode [ . root ] = sourceCode
241
241
242
242
return check (
243
243
condition,
@@ -266,7 +266,7 @@ public func __checkEscapedCondition<T>(
266
266
sourceLocation: SourceLocation
267
267
) -> Result < T , any Error > where T: ~ Copyable {
268
268
var expectationContext = __ExpectationContext ( )
269
- expectationContext. sourceCode [ " " ] = sourceCode
269
+ expectationContext. sourceCode [ . root ] = sourceCode
270
270
271
271
let result = check (
272
272
optionalValue != nil ,
@@ -393,7 +393,7 @@ public func __checkClosureCall(
393
393
}
394
394
395
395
var expectationContext = __ExpectationContext ( )
396
- expectationContext. sourceCode [ " " ] = sourceCode
396
+ expectationContext. sourceCode [ . root ] = sourceCode
397
397
return check (
398
398
success,
399
399
expectationContext: expectationContext,
@@ -433,7 +433,7 @@ public func __checkClosureCall(
433
433
}
434
434
435
435
var expectationContext = __ExpectationContext ( )
436
- expectationContext. sourceCode [ " " ] = sourceCode
436
+ expectationContext. sourceCode [ . root ] = sourceCode
437
437
return check (
438
438
success,
439
439
expectationContext: expectationContext,
@@ -519,7 +519,7 @@ public func __checkClosureCall<R>(
519
519
sourceLocation: SourceLocation
520
520
) -> Result < Void , any Error > {
521
521
var expectationContext = __ExpectationContext ( )
522
- expectationContext. sourceCode [ " " ] = sourceCode
522
+ expectationContext. sourceCode [ . root ] = sourceCode
523
523
524
524
var errorMatches = false
525
525
var mismatchExplanationValue : String ? = nil
@@ -532,7 +532,7 @@ public func __checkClosureCall<R>(
532
532
}
533
533
mismatchExplanationValue = explanation
534
534
} catch {
535
- expectationContext. runtimeValues [ " " ] = { Expression . Value ( reflecting: error) }
535
+ expectationContext. runtimeValues [ . root ] = { Expression . Value ( reflecting: error) }
536
536
let secondError = Issue . withErrorRecording ( at: sourceLocation) {
537
537
errorMatches = try errorMatcher ( error)
538
538
}
@@ -571,7 +571,7 @@ public func __checkClosureCall<R>(
571
571
sourceLocation: SourceLocation
572
572
) async -> Result < Void , any Error > {
573
573
var expectationContext = __ExpectationContext ( )
574
- expectationContext. sourceCode [ " " ] = sourceCode
574
+ expectationContext. sourceCode [ . root ] = sourceCode
575
575
576
576
var errorMatches = false
577
577
var mismatchExplanationValue : String ? = nil
@@ -584,7 +584,7 @@ public func __checkClosureCall<R>(
584
584
}
585
585
mismatchExplanationValue = explanation
586
586
} catch {
587
- expectationContext. runtimeValues [ " " ] = { Expression . Value ( reflecting: error) }
587
+ expectationContext. runtimeValues [ . root ] = { Expression . Value ( reflecting: error) }
588
588
let secondError = await Issue . withErrorRecording ( at: sourceLocation) {
589
589
errorMatches = try await errorMatcher ( error)
590
590
}
0 commit comments