Skip to content

Commit b29ab93

Browse files
committed
Update a couple of comments per @stmontgomery
1 parent b2eb738 commit b29ab93

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Sources/TestingMacros/ConditionMacro.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ extension _ConditionMacro {
8080
do {
8181
if let trailingClosureIndex {
8282

83-
// Include all arguments other than the "comment" argument here.
83+
// Include all arguments other than the "comment" and "sourceLocation"
84+
// arguments here.
8485
checkArguments += macroArguments.indices.lazy
8586
.filter { $0 != commentIndex }
8687
.filter { $0 != sourceLocationArgumentIndex }
@@ -99,8 +100,8 @@ extension _ConditionMacro {
99100
let conditionArgument = parseCondition(from: macroArguments.first!.expression, for: macro, in: context)
100101
checkArguments += conditionArgument.arguments
101102

102-
// Include all arguments other than the "condition" and "comment"
103-
// arguments here.
103+
// Include all arguments other than the "condition", "comment", and
104+
// "sourceLocation" arguments here.
104105
checkArguments += macroArguments.dropFirst().indices.lazy
105106
.filter { $0 != commentIndex }
106107
.filter { $0 != sourceLocationArgumentIndex }

0 commit comments

Comments
 (0)