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

Improve output of AttributeSpec to accept CodeBlocks. #91

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

dnkoutso
Copy link
Collaborator

@dnkoutso dnkoutso commented Dec 9, 2023

A while ago this PR was opened #86 to better handle escaping of strings within attributes.

For Wire we added this temporary commit square/wire@08836c7 to circumvent this issue until a new release of SwiftPoet is ready.

This PR here extends #86 to further use some of the newly added booleans in the Util methods. In particular, AttributeSpec now accepts code blocks to properly format strings etc.

This means that in Wire we can delete the above commit and lean on SwiftPoet to do the right thing. The PR also brings some tests present in KotlinPoet.

@dnkoutso dnkoutso force-pushed the constant_context branch 4 times, most recently from 23c1e8b to 23f62e9 Compare December 9, 2023 14:13
oldergod
oldergod previously approved these changes Dec 11, 2023
@oldergod oldergod merged commit 868a5df into main Dec 12, 2023
1 check passed
@dnkoutso dnkoutso deleted the constant_context branch December 20, 2023 10:13
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.

3 participants