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

Clean up import rendering in codegen. #286

Merged
merged 2 commits into from
Aug 21, 2022

Conversation

lthibault
Copy link
Collaborator

This is a small refactor that aims for an incremental improvement to fileparts.go's readability.

I had to stare at the imports struct a wee bit longer than I would have liked, owing to the indirection in its initialization. This PR removes the imports.init method and replaces it with a simple newImports constructor. Runtime behavior is unaffected.

⚠️ N.B.: this is branched off of #285, so merge that one first.

@lthibault lthibault requested a review from zenhack August 5, 2022 21:31
@lthibault lthibault marked this pull request as ready for review August 5, 2022 23:55
@zenhack
Copy link
Contributor

zenhack commented Aug 6, 2022

Hm, this still has the commits from #285 on it, even though that's merged... makes the diff hard to follow...

@lthibault
Copy link
Collaborator Author

Rats. I'll rebase and push.

@lthibault lthibault force-pushed the cleanup/refactor-codegen-imports branch from 6334ac6 to ea55d5c Compare August 6, 2022 00:13
@lthibault
Copy link
Collaborator Author

Fixed.

@lthibault
Copy link
Collaborator Author

Bump. Is this okay to merge?

capnpc-go/fileparts.go Outdated Show resolved Hide resolved
@lthibault lthibault merged commit 3c673ab into main Aug 21, 2022
@lthibault lthibault deleted the cleanup/refactor-codegen-imports branch August 21, 2022 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants