Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Apr 16, 2025

  • Make sure that specifiers are always printed before attributes
  • Don't print @escaping if parameter is inout
  • Always print nonisolated(nonsending) as a first specifier
  • Make sure that attributes are consistently printed as attributes and specifiers as keywords

xedin added 5 commits April 15, 2025 14:52
When `nonisolated(nonsending)` parameter specifier is present
mark the declaration as caller isolated.
…ecifier first

This avoids any possible positioning issues between specifiers
and attributes.
All of the `inout` types are implicitly `@escaping`.
@xedin xedin changed the title [AST] ASTPrinter: Improvement to specifier and attribute printing [AST] ASTPrinter: Improvements to specifier and attribute printing Apr 16, 2025
@xedin
Copy link
Contributor Author

xedin commented Apr 16, 2025

@swift-ci please test

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

@grynspan
Copy link
Contributor

@swift-ci test Linux platform

@xedin xedin merged commit 2f133b3 into swiftlang:main Apr 16, 2025
5 checks passed
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.

4 participants