Skip to content
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

Fix deprecated SwiftSyntax api warnings #558

Merged

Conversation

kitasuke
Copy link
Contributor

@kitasuke kitasuke commented Jul 1, 2023

main branch of SwiftSyntax renamed some properties and functions, so this PR applied them in swift-format and fix the pipeline generator.

@@ -321,28 +321,28 @@ class LintPipeline: SyntaxVisitor {

extension FormatPipeline {

func visit(_ node: Syntax) -> Syntax {
func rewrite(_ node: Syntax) -> Syntax {
Copy link
Member

Choose a reason for hiding this comment

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

This file is generated by https://github.com/apple/swift-format/blob/main/Sources/generate-pipeline/PipelineGenerator.swift. Can you update that code and then rerun it to verify that the generated output here is correct?

Copy link
Contributor Author

@kitasuke kitasuke Jul 4, 2023

Choose a reason for hiding this comment

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

I totally overlooked that... Addressed and combined previous commits into one.

Copy link
Member

@allevato allevato left a comment

Choose a reason for hiding this comment

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

Thanks!

@allevato allevato merged commit ebc0f9a into swiftlang:main Jul 4, 2023
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.

None yet

2 participants