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 issue where parseType helper didn't handle qualified types like Foo.Bar #1597

Merged
merged 1 commit into from
Dec 23, 2023

Conversation

calda
Copy link
Collaborator

@calda calda commented Dec 13, 2023

This PR fixes an issue where the parseType helper didn't handle qualified types like Foo.Bar or Foo.Bar.Baaz.

This could cause the isStoredProperty(atIntroducerIndex:) helper to return the incorrect result for properties with a qualified type name, like in the example added as a test case.

let input = """
extension SectionContainer: ContentProviding where Section: ContentProviding {
@_disfavoredOverload
public var content: Section.Content {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Before the fix in this PR this example was incorrectly handled as a stored property, causing it to be updated incorrectly to @_disfavoredOverload public var content: Section.Content { ... }.

Copy link

codecov bot commented Dec 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4a072af) 95.11% compared to head (27b7a7a) 95.10%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1597      +/-   ##
===========================================
- Coverage    95.11%   95.10%   -0.01%     
===========================================
  Files           20       20              
  Lines        22112    22122      +10     
===========================================
+ Hits         21032    21040       +8     
- Misses        1080     1082       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@calda calda changed the title Fix issue parseType helper didn't handle qualified types like Foo.Bar Fix issue where parseType helper didn't handle qualified types like Foo.Bar Dec 14, 2023
@nicklockwood nicklockwood merged commit 5383050 into nicklockwood:develop Dec 23, 2023
7 of 9 checks passed
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