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 for newly optional return type of withDigits. #237

Merged
merged 1 commit into from Oct 7, 2020

Conversation

dylansturg
Copy link
Contributor

The withDigits method was updated to return an optional, which causes this to fail to build. I think a nil value here would indicate an error in swift-format's numeric grouping that resulted in an invalid numeric literal.

withDigits was udpated in a recent swift-syntax change:
apple/swift-syntax@94fc5ae#diff-8c79a56bd4eb3d1313169ca412f5e11eL2387

The `withDigits` method was updated to return an optional, which causes this to fail to build. I think a nil value here would indicate an error in swift-format's numeric grouping that resulted in an invalid numeric literal.

`withDigits` was udpated in a recent swift-syntax change:
apple/swift-syntax@94fc5ae#diff-8c79a56bd4eb3d1313169ca412f5e11eL2387
@allevato allevato merged commit 9ecc5e2 into apple:main Oct 7, 2020
aaditya-chandrasekhar pushed a commit to val-verde/swift-format that referenced this pull request May 20, 2021
* Set source range for symbols

* Adopt Equatable, Comparable, and Hashable in extension on SourceRange

* Refactor with sourceRange(using:) helper method

* Deprecate sourceLocation

Replace existing use of sourceLocation in DCOV extension

* Add changelog entries for apple#237
@dylansturg dylansturg deleted the maybe_break_fix branch May 4, 2022 23:17
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