Skip to content

Conversation

@kimdv
Copy link
Contributor

@kimdv kimdv commented Apr 20, 2023

  • Explanation: SourceLocation.line, SourceLocation.column and SourceLocation.file were optional because at some point we intended for them to be lazily computed (or something of the sort). But that never really turned out to be useful, and we were left with optional variables that were never nil if created from SwiftSyntax itself. Make them non-optional
  • Scope: Changes the SourceLocation API
  • Risk: This has the potential of breaking SwiftSyntax clients because it’s an API change but any issues from this change will be caught at compile time
  • Testing: Verified that all open source clients of SwiftSyntax in the Swift project still build
  • Issue: rdar://107971233, SourceLocation should not have an optional line and column #1525
  • Reviewer: @ahoppen on Remove force unwrapping for source location swift-stress-tester#233

@kimdv
Copy link
Contributor Author

kimdv commented May 18, 2023

@kimdv
Copy link
Contributor Author

kimdv commented May 22, 2023

3 similar comments
@kimdv
Copy link
Contributor Author

kimdv commented May 22, 2023

@kimdv
Copy link
Contributor Author

kimdv commented May 22, 2023

@kimdv
Copy link
Contributor Author

kimdv commented May 22, 2023

@ahoppen ahoppen merged commit ebb29ad into swiftlang:release/5.9 May 24, 2023
@kimdv kimdv deleted the kimdv/cherry-pick-remove-computed-location branch May 25, 2023 06:09
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