Skip to content

Commit 6052fd9

Browse files
committed
[ASTGen] NFC: Use allSatisfy instead of all
1 parent 0bdc011 commit 6052fd9

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)