Skip to content

Commit 8743e4d

Browse files
authored
Fix an incomplete comment. (#182)
1 parent b6254bc commit 8743e4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/TestingMacros/Support/ConditionArgumentParsing.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ private func _exprFromOptionalChainedExpr(_ expr: some ExprSyntaxProtocol) -> (E
276276
questionMarkCount += 1
277277
}
278278

279-
// If the rightmost expression Check if any of the member accesses in the expression use optional
280-
// chaining and, if one does, ensure we preserve optional chaining in the
281-
// macro expansion.
279+
// If the rightmost expression is not itself optional-chained, check if any of
280+
// the member accesses in the expression use optional chaining and, if one
281+
// does, ensure we preserve optional chaining in the macro expansion.
282282
if questionMarkCount == 0 {
283283
func isOptionalChained(_ expr: some ExprSyntaxProtocol) -> Bool {
284284
if expr.is(OptionalChainingExprSyntax.self) {

0 commit comments

Comments
 (0)