Skip to content

Conversation

@mportiz08
Copy link
Contributor

  • Explanation: Improves Swift declaration formatting by rendering all attributes on their own line
  • Scope: Small targeted JS change that runs for every Swift decl
  • Issue: rdar://108798969
  • Risk: Medium, small change but impacts all Swift decls
  • Testing: Added/updated unit tests and manually tested various kinds of declarations with attributes to look for any obvious regressions in formatting
  • Reviewer: @dobromir-hristov
  • Original PR: Render all attributes for Swift symbol declarations on a single line #633

…wiftlang#633)

A previous change was made so that each attribute was broken onto its
own line, but this attempts to collapse all attributes onto their own
single line.

Example:

```swift
// before
@discardableResult @objc(bar) func foo() -> Int

// after
@discardableResult @objc(bar)
func foo() -> Int
```

Resolves: rdar://108798969
@mportiz08 mportiz08 requested a review from franklinsch May 5, 2023 17:31
@mportiz08
Copy link
Contributor Author

@swift-ci test

@mportiz08 mportiz08 merged commit 172d529 into swiftlang:release/5.9 May 9, 2023
@mportiz08 mportiz08 deleted the 5.9/render-all-attributes-on-one-line branch May 9, 2023 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants