Skip to content

Conversation

@ahoppen
Copy link
Member

@ahoppen ahoppen commented Apr 23, 2023

  • Explanation: createUniqueName and location(…) -> SourceLocation? were both introduced with SwiftSyntax 509 and are immediately marked as deprecated. For createUniqueName, that’s not a gigantic issue, just a weirdness but for location(…) -> SourceLocation? shadows the non-deprecated @_disfavoredOverload location(…) -> AbstractSourceLocation?, which means that to use the non-deprecated function, you need to add explicit type annotations. Remove the deprecated methods since nobody should be using them up until now anyway.
  • Scope: Removal of methods that are marked as deprecated
  • Risk: All issues will be found at compile time
  • Testing: Ran unit tests
  • Issue: rdar://110192219
  • Reviewer: @DougGregor

Cherry-pick #1555 to release/5.9.

@ahoppen
Copy link
Member Author

ahoppen commented Apr 23, 2023

swiftlang/swift#65385

@swift-ci Please test

@ahoppen ahoppen changed the title Remove deprecated methods from SwiftSyntaxMacros [5.9] Remove deprecated methods from SwiftSyntaxMacros Apr 24, 2023
@ahoppen
Copy link
Member Author

ahoppen commented Apr 24, 2023

swiftlang/swift#65385

@swift-ci Please test macOS

@ahoppen
Copy link
Member Author

ahoppen commented May 15, 2023

swiftlang/swift#65385

@swift-ci Please test

@ahoppen ahoppen force-pushed the ahoppen/5.9/no-deprecations branch from f3e7d20 to af4d597 Compare June 2, 2023 22:27
@ahoppen ahoppen force-pushed the ahoppen/5.9/no-deprecations branch from af4d597 to 30409dd Compare June 2, 2023 22:33
@ahoppen
Copy link
Member Author

ahoppen commented Jun 3, 2023

swiftlang/swift#65385

@swift-ci Please test

1 similar comment
@ahoppen
Copy link
Member Author

ahoppen commented Jun 3, 2023

swiftlang/swift#65385

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jun 6, 2023

swiftlang/swift#65385

@swift-ci Please test Windows

@ahoppen ahoppen merged commit 7982ea6 into swiftlang:release/5.9 Jun 7, 2023
@ahoppen ahoppen deleted the ahoppen/5.9/no-deprecations branch June 7, 2023 15:48
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