Skip to content

Perform a couple of renames on differentiability attribute nodes #1954

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

Merged

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jul 27, 2023

Mostly change parameter to argument where the parameter is actually an argument.

@ahoppen ahoppen requested a review from bnbarham July 27, 2023 15:25
@ahoppen
Copy link
Member Author

ahoppen commented Jul 27, 2023

@swift-ci Please test

Comment on lines +54 to +55
message: "expected ':' and arguments in '@differentiable' argument",
fixIts: ["insert ':' and arguments"]
Copy link
Contributor

@bnbarham bnbarham Jul 27, 2023

Choose a reason for hiding this comment

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

I guess this doesn't read any worse than before. But... it is a bit odd 😅. The problem is that Clause (containing wrt and Arguments), Arguments (which contains the parentheses), and ArgumentList (between the parentheses) all have basically the same name for diagnostics (+- an s).

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. If there was more use of the @differentiable attribute, I would probably agree but for now, I’d suggest we keep it as-is.

Mostly change parameter to argument where the parameter is actually an argument.
@ahoppen
Copy link
Member Author

ahoppen commented Jul 27, 2023

swiftlang/swift-format#574

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jul 27, 2023

swiftlang/swift-format#574

@swift-ci Please test Windows

@ahoppen ahoppen merged commit c2f6b9d into swiftlang:main Jul 27, 2023
@ahoppen ahoppen deleted the ahoppen/rename-differentiability-nodes branch July 27, 2023 23:43
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