Skip to content

Commit c9fcab1

Browse files
authored
Merge pull request #71389 from hamishknight/all
[ASTGen] NFC: Use `allSatisfy` instead of `all`
2 parents 3a43e7d + 6052fd9 commit c9fcab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ASTGen/Sources/ASTGen/DeclAttrs.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ extension ASTGenVisitor {
945945
if let segments = node.as(SimpleStringLiteralExprSyntax.self)?.segments {
946946
return extractRawText(segments).bridged
947947
} else if let segments = node.as(StringLiteralExprSyntax.self)?.segments,
948-
segments.all({ $0.is(StringSegmentSyntax.self) })
948+
segments.allSatisfy({ $0.is(StringSegmentSyntax.self) })
949949
{
950950
return extractRawText(segments).bridged
951951
}

0 commit comments

Comments
 (0)