You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah-ha, I see the problem. The string here is being represented by SimpleStringLiteralExprSyntax, which literally (😁) only appears in two places: @available annotations and #sourceLocation directives. And we don't handle that node when we format.
This was probably a recent-ish change in swift-syntax that, being so narrow, we didn't have specific test coverage for.
I'm using
swift-format 509.0.0
. If I prepare the following sample code and runswift-format format
, it formats it into code that cannot be built.This problem did not occur in
swift-format 508.0.0
. Is it a bug inswift-format 509.0.0
?The text was updated successfully, but these errors were encountered: