Skip to content

[5.8] Cherry-pick most changes from main to release/5.8 #1285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jan 27, 2023

There have been major API redesigns in swift-syntax in the last couple of weeks. To make transitioning clients to the new API easier, we are cherry-picking all of those changes to release/5.8. That way, only one adjustment is needed when updating to 5.8 instead of having to update when adopting 5.8 and requiring more significant changes when updating to 5.9.

The only PR that will not be cherry-picked to release/5.8 is #1167 because it requires significant changes in apple/swift. @hborla Could you verify that I correctly reverted that patch in 841c0ec? I am fairly confident I did it correctly, but it’s always good to double-check.

kimdv and others added 30 commits January 9, 2023 07:07
…r-from-gyb-to-code-gen

Move SyntaxVisitor from gyb to codegen
Make use of AttributedSyntax to handle all declarations with macro
attributes.
While doing this, also move CODEOWNERS to .github folder
These nodes weren’t used in SwiftParser, so we can remove them.

rdar://103448455
…eralize

Generalize macro expansion for macros written as attributes
Make Doug code owner of macros and Swift operators
This property isn't used anywhere, dates back to the old parser and isn't public. Let's remove it.
simba909 and others added 13 commits January 26, 2023 21:09
…StringLiteral`

This removes the implicit expressibility by string literals for all decl/stmt/... nodes, which parsed the node as a decl/stmt/... and then cast it to the expected type.

rdar://104090218
Fixes swiftlang#1119
rdar://103048943
…eywords

Remove pound keywords token kinds
…-colored-diagnostics

Implement support for automatically coloring output in DiagnosticsFormatter
…s-expressible-by-string

Don’t automaticaly conform all decl/stmt/etc. nodes to `ExpressibleByStringLiteral`
…ibute-recovery

Improve recovery of misplaced attributes on statements
…ement-diagnostic

Improve diagnostic if where clause is missing a requirement
…word-raw-values

Don't output raw values for `Keyword` enum members
…syntax"

This reverts commit d856f48, reversing
changes made to f5f45e2.

This PR requires non-trivial changes in apple/swift that we don’t want to cherry-pick to release/5.8.
@ahoppen
Copy link
Member Author

ahoppen commented Jan 27, 2023

@ahoppen
Copy link
Member Author

ahoppen commented Jan 27, 2023

@ahoppen ahoppen requested a review from airspeedswift January 27, 2023 18:38
Copy link
Member

@hborla hborla left a comment

Choose a reason for hiding this comment

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

The variadic generics revert looks right to me 👍

@ahoppen
Copy link
Member Author

ahoppen commented Feb 1, 2023

After some discussion we decided that this is too risky to cherry-pick into 5.8.

@ahoppen ahoppen closed this Feb 1, 2023
@ahoppen ahoppen deleted the ahoppen/5.8-swiftsyntax-forward branch February 1, 2023 14:58
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.

7 participants